Skip to content
Snippets Groups Projects
Commit 9921397d authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

Merge branch 'aggraef/purr-data-various-bugfixes'

parents ecce2894 a2540dc9
No related branches found
No related tags found
1 merge request!515Various bugfixes
Pipeline #2708 failed
...@@ -311,7 +311,7 @@ static void bassemu_list(t_bassemu *x, t_symbol *s, int argc, t_atom *argv) ...@@ -311,7 +311,7 @@ static void bassemu_list(t_bassemu *x, t_symbol *s, int argc, t_atom *argv)
} }
if (argc >= 1) if (argc >= 1)
{ {
if(argv[0].a_type = A_FLOAT && (atom_getfloatarg(0,argc,argv) != -1)) if(argv[0].a_type == A_FLOAT && (atom_getfloatarg(0,argc,argv) != -1))
{ // note { // note
x->thisnote = atom_getfloatarg(0,argc,argv)-57; x->thisnote = atom_getfloatarg(0,argc,argv)-57;
x->vco_inc = ((x->tune/x->sr)*pow(2, (x->thisnote)*(1.0/12.0)) / 2.); x->vco_inc = ((x->tune/x->sr)*pow(2, (x->thisnote)*(1.0/12.0)) / 2.);
......
...@@ -1118,9 +1118,9 @@ int sigfiddle_doinit(t_sigfiddle *x, long npoints, long npitch, ...@@ -1118,9 +1118,9 @@ int sigfiddle_doinit(t_sigfiddle *x, long npoints, long npitch,
int i; int i;
if (!npeakanal && !npeakout) npeakanal = DEFNPEAK, npeakout = 0; if (!npeakanal && !npeakout) npeakanal = DEFNPEAK, npeakout = 0;
if (!npeakanal < 0) npeakanal = 0; if (npeakanal < 0) npeakanal = 0;
else if (npeakanal > MAXPEAK) npeakanal = MAXPEAK; else if (npeakanal > MAXPEAK) npeakanal = MAXPEAK;
if (!npeakout < 0) npeakout = 0; if (npeakout < 0) npeakout = 0;
else if (npeakout > MAXPEAK) npeakout = MAXPEAK; else if (npeakout > MAXPEAK) npeakout = MAXPEAK;
if (npitch <= 0) npitch = 0; if (npitch <= 0) npitch = 0;
else if (npitch > MAXNPITCH) npitch = MAXNPITCH; else if (npitch > MAXNPITCH) npitch = MAXNPITCH;
......
...@@ -105,7 +105,8 @@ static void import_output(t_import* x) ...@@ -105,7 +105,8 @@ static void import_output(t_import* x)
* namespace, [import] will output the new element on the next bang. */ * namespace, [import] will output the new element on the next bang. */
if(x->x_current) if(x->x_current)
{ {
strncpy(buffer, x->x_current->nl_string, MAXPDSTRING); strncpy(buffer, x->x_current->nl_string, MAXPDSTRING-1);
buffer[MAXPDSTRING-1] = 0;
outlet_symbol( x->x_data_outlet, gensym(buffer)); outlet_symbol( x->x_data_outlet, gensym(buffer));
x->x_current = x->x_current->nl_next; x->x_current = x->x_current->nl_next;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment