Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • jwilkes/purr-data
  • aggraef/purr-data
  • samthursfield/purr-data
  • prakhar/purr-data
  • yadu05/purr-data
  • NegiAkash890/purr-data
  • prateekpardeshi/purr-data
  • Shruti3004/purr-data
  • hidimpu/purr-data
  • Atseosi/purr-data
  • piyushjasaiwal/purr-data
  • deveshprasad/purr-data
  • skm_7/purr-data
  • sankt/purr-data
  • ashim_tom/purr-data
  • dineshsoni02/purr-data
  • chaitanya1-coder/purr-data
  • Nitish0007/purr-data
  • nitin/purr-data
  • shuvam09/purr-data
  • gabrielabittencourt/purr-data
  • sivasai/purr-data
  • flachyjoe/purr-data
  • ishankaler/purr-data
  • prateek/purr-data
  • RukshanJS/purr-data
  • rajatshrm648/purr-data
  • Srashti/purr-data
  • Paarth/purr-data
  • AniruddhaGawali/purr-data
  • brittneyjuliet/purr-data
  • prakharagarwal1/purr-data
  • Shreyanshpaliwalcmsmn/purr-data
  • k_amrut/purr-data
  • AyushAnand/purr-data
  • Va16hav07/purr-data
36 results
Show changes
Showing
with 36 additions and 34 deletions
......@@ -68,7 +68,8 @@ static t_int *filterortho_perform(t_int *w)
static void filterortho_dsp(t_filterortho *x, t_signal **sp)
{
dsp_add(filterortho_perform, 4, x->filterortho, sp[0]->s_n, sp[0]->s_vec, sp[1]->s_vec);
dsp_add(filterortho_perform, 4, x->filterortho, (t_int)sp[0]->s_n,
sp[0]->s_vec, sp[1]->s_vec);
}
void filterortho_free(t_filterortho *x)
......
......@@ -30,7 +30,7 @@ static t_int *abs_perform(t_int *w)
static void abs_dsp(t_abs *x, t_signal **sp)
{
dsp_add(abs_perform, 4, x, sp[0]->s_vec, sp[1]->s_vec, sp[0]->s_n);
dsp_add(abs_perform, 4, x, sp[0]->s_vec, sp[1]->s_vec, (t_int)sp[0]->s_n);
}
static void *abs_new(void)
......
......@@ -215,7 +215,7 @@ static void bdiag_dsp(t_bdiag *x, t_signal **sp)
}
dsp_add(bdiag_perform, 4, &x->x_ctl, sp[0]->s_n,
dsp_add(bdiag_perform, 4, &x->x_ctl, (t_int)sp[0]->s_n,
sp[0]->s_vec, sp[1]->s_vec);
}
......
......@@ -177,7 +177,7 @@ static void bfft_dsp(t_bfft *x, t_signal **sp)
in = out;
}
dsp_add(bfft_perform, 4, &x->x_ctl, n, in, out);
dsp_add(bfft_perform, 4, &x->x_ctl, (t_int)n, in, out);
}
......@@ -196,7 +196,7 @@ static void ibfft_dsp(t_bfft *x, t_signal **sp)
in = out;
}
dsp_add(ibfft_perform, 4, &x->x_ctl, n, in, out);
dsp_add(ibfft_perform, 4, &x->x_ctl, (t_int)n, in, out);
}
......@@ -214,7 +214,7 @@ static void fht_dsp(t_bfft *x, t_signal **sp)
in = out;
}
dsp_add(fht_perform, 4, &x->x_ctl, n, in, out);
dsp_add(fht_perform, 4, &x->x_ctl, (t_int)n, in, out);
}
......
......@@ -71,7 +71,7 @@ static void bitsplit_dsp(t_bitsplit *x, t_signal **sp)
for (i=0;i<x->x_ctl.c_outputs;i++){
x->x_ctl.c_output[i] = sp[i+1]->s_vec;
}
dsp_add(bitsplit_perform, 2, &x->x_ctl, sp[0]->s_n);
dsp_add(bitsplit_perform, 2, &x->x_ctl, (t_int)sp[0]->s_n);
}
......
......@@ -90,7 +90,7 @@ static void blocknorm_dsp(t_blocknorm *x, t_signal **sp)
x->x_ctl.c_input[i] = sp[i]->s_vec;
x->x_ctl.c_output[i] = sp[c+i]->s_vec;
}
dsp_add(blocknorm_perform, 2, &x->x_ctl, sp[0]->s_n);
dsp_add(blocknorm_perform, 2, &x->x_ctl, (t_int)sp[0]->s_n);
}
......
......@@ -49,7 +49,7 @@ static void matrix_load(t_matrix *x, t_symbol *s)
if(s && s->s_name)
{
post("matrix: loading %s",s->s_name);
if(matrix = fopen(s->s_name, "r"))
if(matrix = sys_fopen(s->s_name, "r"))
{
int n = x->x_ctl.c_order;
fread(x->x_ctl.c_A, sizeof(t_float), n*n, matrix);
......@@ -77,7 +77,7 @@ static t_int *matrix_perform(t_int *w)
memcpy(x, in, sizeof(t_float)*n);
in = x;
}
bzero(out, sizeof(t_float)*n); /* init output */
memset(out, 0, sizeof(t_float)*n); /* init output */
for (j=0; j<n; j++)
for (i=0; i<n; i++)
......@@ -102,7 +102,8 @@ static void matrix_dsp(t_matrix *x, t_signal **sp)
for (i=0;i<n;i++) x->x_ctl.c_A[i] = 1;
dsp_add(matrix_perform, 4, &x->x_ctl, sp[0]->s_n, sp[0]->s_vec, sp[1]->s_vec);
dsp_add(matrix_perform, 4, &x->x_ctl, (t_int)sp[0]->s_n, sp[0]->s_vec,
sp[1]->s_vec);
}
......
......@@ -138,7 +138,7 @@ static void window_dsp(t_window *x, t_signal **sp)
window_type(x, x->x_type, x->x_typearg);
}
dsp_add(window_perform, 4, x, sp[0]->s_vec, sp[1]->s_vec, n);
dsp_add(window_perform, 4, x, sp[0]->s_vec, sp[1]->s_vec, (t_int)n);
}
static void window_free(t_window *x)
......
......@@ -91,7 +91,7 @@ static t_int *cheby_perform(t_int *w)
static void cheby_dsp(t_cheby *x, t_signal **sp)
{
dsp_add(cheby_perform, 4, &x->x_ctl, sp[0]->s_n,
dsp_add(cheby_perform, 4, &x->x_ctl, (t_int)sp[0]->s_n,
sp[0]->s_vec, sp[1]->s_vec);
}
......
......@@ -126,7 +126,7 @@ static t_int *cmath_perform_nifft(t_int *w)
static void cmath_dsp(t_cmath *x, t_signal **sp)
{
dsp_add(x->x_perf, 5, sp[0]->s_n, sp[0]->s_vec, sp[1]->s_vec, sp[2]->s_vec, sp[3]->s_vec);
dsp_add(x->x_perf, 5, (t_int)sp[0]->s_n, sp[0]->s_vec, sp[1]->s_vec, sp[2]->s_vec, sp[3]->s_vec);
}
void cmath_free(void)
......
......@@ -160,7 +160,7 @@ static void diag_dsp(t_diag *x, t_signal **sp)
dsp_add(diag_perform, 4, &x->x_ctl, sp[0]->s_n, sp[0]->s_vec, sp[1]->s_vec);
dsp_add(diag_perform, 4, &x->x_ctl, (t_int)sp[0]->s_n, sp[0]->s_vec, sp[1]->s_vec);
}
......
......@@ -237,7 +237,7 @@ static t_int *dist_perform(t_int *w)
static void dist_dsp(t_dist *x, t_signal **sp)
{
dsp_add(dist_perform, 4, &x->x_ctl, sp[0]->s_n,
dsp_add(dist_perform, 4, &x->x_ctl, (t_int)sp[0]->s_n,
sp[0]->s_vec, sp[1]->s_vec);
}
......
......@@ -716,16 +716,16 @@ static void dwt_dsp(t_dwt *x, t_signal **sp)
switch(x->x_ctl.c_type){
case DWT:
dsp_add(dwt_perform, 4, &x->x_ctl, sp[0]->s_n, sp[0]->s_vec, sp[1]->s_vec);
dsp_add(dwt_perform, 4, &x->x_ctl, (t_int)sp[0]->s_n, sp[0]->s_vec, sp[1]->s_vec);
break;
case IDWT:
dsp_add(idwt_perform, 4, &x->x_ctl, sp[0]->s_n, sp[0]->s_vec, sp[1]->s_vec);
dsp_add(idwt_perform, 4, &x->x_ctl, (t_int)sp[0]->s_n, sp[0]->s_vec, sp[1]->s_vec);
break;
case DWT16:
dsp_add(dwt16_perform, 4, &x->x_ctl, sp[0]->s_n, sp[0]->s_vec, sp[1]->s_vec);
dsp_add(dwt16_perform, 4, &x->x_ctl, (t_int)sp[0]->s_n, sp[0]->s_vec, sp[1]->s_vec);
break;
case IDWT16:
dsp_add(idwt16_perform, 4, &x->x_ctl, sp[0]->s_n, sp[0]->s_vec, sp[1]->s_vec);
dsp_add(idwt16_perform, 4, &x->x_ctl, (t_int)sp[0]->s_n, sp[0]->s_vec, sp[1]->s_vec);
break;
......@@ -747,8 +747,8 @@ t_class *dwt_class, *idwt_class, *dwt16_class, *idwt16_class;
static void dwt_reset(t_dwt *x)
{
bzero(x->x_ctl.c_update, 16*sizeof(t_float));
bzero(x->x_ctl.c_predict, 16*sizeof(t_float));
memset(x->x_ctl.c_update, 0, 16*sizeof(t_float));
memset(x->x_ctl.c_predict, 0, 16*sizeof(t_float));
x->x_ctl.c_update[7] = .25;
x->x_ctl.c_update[8] = .25;
......
......@@ -262,7 +262,7 @@ static void dynwav_dsp(t_dynwav *x, t_signal **sp)
}
dsp_add(dynwav_perform_8point, 5, &x->x_ctl, sp[0]->s_n,
dsp_add(dynwav_perform_8point, 5, &x->x_ctl, (t_int)sp[0]->s_n,
sp[0]->s_vec, sp[1]->s_vec, sp[2]->s_vec);
......
......@@ -122,7 +122,7 @@ static t_int *eadsr_perform(t_int *w)
static void eadsr_dsp(t_eadsr *x, t_signal **sp)
{
x->x_sr = sp[0]->s_sr;
dsp_add(eadsr_perform, 3, &x->x_ctl, sp[0]->s_n, sp[0]->s_vec);
dsp_add(eadsr_perform, 3, &x->x_ctl, sp[0]->s_n, (t_int)sp[0]->s_vec);
}
void eadsr_free(void)
......
......@@ -107,7 +107,7 @@ static t_int *ead_perform(t_int *w)
static void ead_dsp(t_ead *x, t_signal **sp)
{
dsp_add(ead_perform, 3, &x->x_ctl, sp[0]->s_n, sp[0]->s_vec);
dsp_add(ead_perform, 3, &x->x_ctl, (t_int)sp[0]->s_n, sp[0]->s_vec);
}
/* destructor */
......
......@@ -95,7 +95,7 @@ static t_int *ear_perform(t_int *w)
static void ear_dsp(t_ear *x, t_signal **sp)
{
x->x_sr = sp[0]->s_sr;
dsp_add(ear_perform, 3, &x->x_ctl, sp[0]->s_n, sp[0]->s_vec);
dsp_add(ear_perform, 3, &x->x_ctl, (t_int)sp[0]->s_n, sp[0]->s_vec);
}
void ear_free(void)
......
......@@ -503,7 +503,7 @@ static void eblosc_dsp(t_eblosc *x, t_signal **sp)
if (x->x_ctl.c_waveform == gensym("syncsaw")){
x->x_ctl.c_scale = 1.0f;
x->x_ctl.c_scale_update = 1.0f;
dsp_add(eblosc_perform_hardsync_saw, 5, &x->x_ctl, sp[0]->s_n,
dsp_add(eblosc_perform_hardsync_saw, 5, &x->x_ctl, (t_int)sp[0]->s_n,
sp[0]->s_vec, sp[1]->s_vec, sp[2]->s_vec);
}
......@@ -511,26 +511,26 @@ static void eblosc_dsp(t_eblosc *x, t_signal **sp)
else if (x->x_ctl.c_waveform == gensym("pulse")){
x->x_ctl.c_scale = 1.0f;
x->x_ctl.c_scale_update = 1.0f;
dsp_add(eblosc_perform_pulse, 4, &x->x_ctl, sp[0]->s_n,
dsp_add(eblosc_perform_pulse, 4, &x->x_ctl, (t_int)sp[0]->s_n,
sp[0]->s_vec, sp[1]->s_vec);
}
else if (x->x_ctl.c_waveform == gensym("pulse2")){
x->x_ctl.c_phase_inc_scale *= 2;
x->x_ctl.c_scale = 1.0f;
x->x_ctl.c_scale_update = -1.0f;
dsp_add(eblosc_perform_pulse, 4, &x->x_ctl, sp[0]->s_n,
dsp_add(eblosc_perform_pulse, 4, &x->x_ctl, (t_int)sp[0]->s_n,
sp[0]->s_vec, sp[1]->s_vec);
}
else if (x->x_ctl.c_waveform == gensym("comparator")){
x->x_ctl.c_scale = 1.0f;
x->x_ctl.c_scale_update = 1.0f;
dsp_add(eblosc_perform_comparator, 4, &x->x_ctl,
sp[0]->s_n, sp[0]->s_vec, sp[1]->s_vec);
(t_int)sp[0]->s_n, sp[0]->s_vec, sp[1]->s_vec);
}
else{
x->x_ctl.c_scale = 1.0f;
x->x_ctl.c_scale_update = 1.0f;
dsp_add(eblosc_perform_saw, 4, &x->x_ctl, sp[0]->s_n,
dsp_add(eblosc_perform_saw, 4, &x->x_ctl, (t_int)sp[0]->s_n,
sp[0]->s_vec, sp[1]->s_vec);
}
......
......@@ -255,7 +255,7 @@ static void fdn_dsp(t_fdn *x, t_signal **sp)
dsp_add(fdn_perform,
5,
&x->x_ctl,
sp[0]->s_n,
(t_int)sp[0]->s_n,
sp[0]->s_vec,
sp[1]->s_vec,
sp[2]->s_vec);
......
......@@ -145,9 +145,9 @@ static void junction_dsp(t_junction *x, t_signal **sp)
x->x_ctl.c_norm = norm;
dsp_add(junction_perform, 2, &x->x_ctl, sp[0]->s_n);
dsp_add(junction_perform, 2, &x->x_ctl, (t_int)sp[0]->s_n);
/* dsp_add(junction_perform, 4, &x->x_ctl, sp[0]->s_n, sp[0]->s_vec, sp[1]->s_vec);*/
/* dsp_add(junction_perform, 4, &x->x_ctl, (t_int)sp[0]->s_n, sp[0]->s_vec, sp[1]->s_vec);*/
}
......