void drag_dsp_free (t_drag *x) { dsp_free((t_pxobject *)x); t_freebytes(x->hz, x->voice_count * sizeof(t_double *)); t_freebytes(x->out, x->voice_count * sizeof(t_double *)); t_freebytes(x->symm, x->voice_count * sizeof(t_double *)); t_freebytes(x->hzFloat, x->voice_count * sizeof(t_double )); t_freebytes(x->hzActual, x->voice_count * sizeof(t_double )); t_freebytes(x->grad, x->voice_count * sizeof(t_double )); t_freebytes(x->ball_loc, x->voice_count * sizeof(t_double )); t_freebytes(x->shape, x->voice_count * sizeof(t_double )); t_freebytes(x->crash, x->voice_count * sizeof(t_double )); t_freebytes(x->lastcrash, x->voice_count * sizeof(t_double )); t_freebytes(x->direction, x->voice_count * sizeof(t_int )); t_freebytes(x->hz_conn, x->voice_count * sizeof(t_int )); t_freebytes(x->symm_conn, x->voice_count * sizeof(t_int )); t_freebytes(x->dcblock_on, x->voice_count * sizeof(t_int )); t_freebytes(x->dc_prev_in, x->voice_count * sizeof(t_double )); t_freebytes(x->dc_prev_out, x->voice_count * sizeof(t_double )); t_freebytes(x->sin, LKTBL_LNGTH * sizeof(t_double )); t_freebytes(x->sinh, LKTBL_LNGTH * sizeof(t_double )); t_freebytes(x->isfree, x->voice_count * sizeof(t_bool )); }
void uwemsp_free(t_uwemsp *x) { dsp_free((t_pxobject *)x); // needs to be called for MSP objects on free // delete our array of signal pointers sysmem_freeptr(x->u_buffers); }
void hoa_rotate_free(t_hoa_rotate *x) { dsp_free((t_pxobject *)x); delete x->f_rotate; delete [] x->f_ins; delete [] x->f_outs; }
void hoa_vector_free(t_hoa_vector *x) { dsp_free((t_pxobject *)x); delete x->f_vector; delete [] x->f_sig_ins; delete [] x->f_sig_outs; }
void hoa_scope_free(t_hoa_scope *x) { clock_free((t_object *)x->f_clock); dsp_free((t_pxobject *)x); delete x->f_scope; delete [] x->f_signals; }
void hoa_optim_free(t_hoa_optim *x) { dsp_free((t_pxobject *)x); delete x->f_optim; delete [] x->f_ins; delete [] x->f_outs; }
void bthresher_free( t_bthresher *x ){ #if MSP dsp_free( (t_pxobject *) x); #endif freebytes(x->Wanal,0); freebytes(x->Wsyn,0); freebytes(x->Hwin,0); freebytes(x->buffer,0); freebytes(x->channel,0); freebytes(x->input,0); freebytes(x->output,0); freebytes(x->trigland,0); freebytes(x->bitshuffle,0); /* full phase vocoder */ freebytes(x->c_lastphase_in,0); freebytes(x->c_lastphase_out,0); /* external-specific memory */ freebytes(x->composite_frame,0); freebytes(x->frames_left,0); freebytes(x->move_threshold,0); freebytes(x->damping_factor,0); freebytes(x->list_data,0); }
// Memory Deallocation void op_free(t_op *x) { dsp_free((t_pxobject *)x); TTObjectBaseRelease(&x->op); TTObjectBaseRelease(&x->audioIn); TTObjectBaseRelease(&x->audioOut); }
void wlet_free(t_wlet *x) { dsp_free((t_pxobject *)x); free(x->w_tmp); gsl_wavelet_free(x->w_wavelet); gsl_wavelet_workspace_free(x->w_workspace); }
void gendy_free(t_gendy *x){ dsp_free((t_pxobject *)x); sysmem_freeptr(x->mMemoryAmp); sysmem_freeptr(x->mMemoryDur); }
// Destroy void zerox_free(t_zerox *x) { dsp_free((t_pxobject *)x); TTObjectBaseRelease(&x->zeroxUnit); TTObjectBaseRelease(&x->signalIn); TTObjectBaseRelease(&x->signalOut); }
// Memory Deallocation void balance_free(t_balance *x) { dsp_free((t_pxobject *)x); TTObjectRelease(&x->balance); TTObjectRelease(&x->audioIn); TTObjectRelease(&x->audioOut); }
void hoa_map_free(t_hoa_map *x) { dsp_free((t_pxobject *)x); delete x->f_map; delete [] x->f_sig_ins; delete [] x->f_sig_outs; }
// Destroy void allpassmod_free(t_allpassmod *x) { dsp_free((t_pxobject *)x); TTValue none; TTAddress address; address = x->name.appendAddress("/model"); MaxApplication.send("ObjectUnregister", address, none); address = x->name.appendAddress("/coefficient"); MaxApplication.send("ObjectUnregister", address, none); address = x->name.appendAddress("/delay"); MaxApplication.send("ObjectUnregister", address, none); address = x->name.appendAddress("/clear"); MaxApplication.send("ObjectUnregister", address, none); address = x->name.appendAddress("/in.left"); MaxApplication.send("ObjectUnregister", address, none); address = x->name.appendAddress("/in.right"); MaxApplication.send("ObjectUnregister", address, none); address = x->name.appendAddress("/out.left"); MaxApplication.send("ObjectUnregister", address, none); address = x->name.appendAddress("/out.right"); MaxApplication.send("ObjectUnregister", address, none); address = x->name.appendAddress("/preset"); MaxApplication.send("ObjectUnregister", address, none); }
void bounce_dsp_free (t_bounce *x) { int i; dsp_free((t_pxobject *)x); t_freebytes(x->hz, x->voice_count * sizeof(t_double *)); t_freebytes(x->out, x->voice_count * sizeof(t_double *)); t_freebytes(x->symm, x->voice_count * sizeof(t_double *)); t_freebytes(x->hzFloat, x->voice_count * sizeof(t_double )); t_freebytes(x->grad, x->voice_count * sizeof(t_double )); t_freebytes(x->ball_loc, x->voice_count * sizeof(t_double )); t_freebytes(x->shape, x->voice_count * sizeof(t_double )); t_freebytes(x->direction, x->voice_count * sizeof(t_int )); t_freebytes(x->hz_conn, x->voice_count * sizeof(t_int )); t_freebytes(x->symm_conn, x->voice_count * sizeof(t_int )); t_freebytes(x->dcblock_on, x->voice_count * sizeof(t_int )); t_freebytes(x->dc_prev_in, x->voice_count * sizeof(t_double )); t_freebytes(x->dc_prev_out, x->voice_count * sizeof(t_double )); t_freebytes(x->sin, LKTBL_LNGTH * sizeof(t_double )); t_freebytes(x->sinh, LKTBL_LNGTH * sizeof(t_double )); for (i =0; i < x->voice_count; i++){ t_freebytes(x->fm[i], x->voice_count * sizeof(t_double)); } t_freebytes(x->fm, x->voice_count * sizeof(t_double *)); }
void multigrain_dsp_free(t_multigrain *x) { dsp_free((t_pxobject *)x); t_freebytes(x->grains, MAXGRAINS * sizeof(t_grain)); t_freebytes(x->pitchscale, MAXSCALE * sizeof(float)); t_freebytes(x->changroup, x->output_channels * sizeof(long)); }
void hoa_3d_decoder_free(t_hoa_3d_decoder *x) { dsp_free((t_pxobject *)x); delete [] x->f_ins; delete [] x->f_outs; delete [] x->f_ins_bin; }
void hoa_projector_free(t_hoa_projector *x) { dsp_free((t_pxobject *)x); delete x->f_projector; delete [] x->f_ins; delete [] x->f_outs; }
void grans_free(t_grans *x) { dsp_free((t_pxobject *)x); free(x->sincwindow); free(x->dampedsinetab); free(x->expdecaytab); free(x->wind_costab); free(x->sinetab); free(x->base); // free(x->modbase); long i; for(i = 0; i < NSHAPINGTABS; i++){ free(x->exptab[i]); x->exptab[i] = NULL; } free(x->exptab); x->exptab = NULL; // x->modbase = NULL; x->sincwindow = NULL; x->dampedsinetab = NULL; x->expdecaytab = NULL; x->wind_costab = NULL; x->base = NULL; x->sinetab = NULL; }
void vd_free(t_vd *x) { #if MSP dsp_free((t_pxobject *)x); #endif free(x->delay_line); }
void getonset_free(t_getonset *x) { if (x->Buf1) t_freebytes(x->Buf1, x->BufSize * sizeof(float)); if (x->Buf2) t_freebytes(x->Buf2, x->BufSize * sizeof(float)); if (x->BufFFT) t_freebytes(x->BufFFT, x->FFTSize * sizeof(float)); if (x->memFFT) t_freebytes(x->memFFT, CMAX * x->FFTSize * sizeof(float)); freeobject((t_object *)x->g_clock); dsp_free((t_pxobject *)x); }
// Destroy void FFTFree(FFTPtr self) { dsp_free((t_pxobject*)self); // Always call dsp_free first in this routine TTObjectRelease(&self->fft); TTObjectRelease(&self->audioIn); TTObjectRelease(&self->audioOut); }
void jsusfx_free(t_jsusfx *x) { if ( x->m_editor ) object_method(x->m_editor, gensym("w_close")); dsp_free((t_pxobject*)x); critical_free(x->critical); delete x->fx; }
void bowedbar_free(t_bowedbar *x) { int i; for(i=0;i<4;i++) { DLineN_free(&x->delay[i]); } dsp_free((t_pxobject *)x); }
void shoehorn_free(t_shoehorn *x) { dsp_free((t_pxobject *) x); free(x->inarr); free(x->pangains1); free(x->pangains2); free(x->indexList); }
void errfilt_free(t_errfilt *x) { dsp_free((t_pxobject *) x); freebytes16((char *)x->a_b, MAX_ORDER * sizeof(t_float)); freebytes(x->a_bBuff, MAX_ORDER * sizeof(t_float)); freebytes16((char *)x->a_x, MAX_ORDER * sizeof(t_float)); freebytes(x->a_A, MAX_ORDER * sizeof(t_float)); freebytes16((char *)x->a_tempVec, MAX_ORDER * sizeof(t_float)); }
void rtlsdr_free( t_rtlsdr *x) { // here we will need to free up allocated buffer memory, once it is made local to the object dsp_free((t_pxobject *) x); rtlsdr_already_loaded = 0; // make room for another object }
static void teabox_free(t_teabox *x) { #ifdef PD ; // nothing to free #else dsp_free((t_pxobject *)x); #endif }
void randomvals_free(t_randomvals *x) { #ifdef MSP_VERSION dsp_free(&x->a_obj); #endif }
void irextract_free(t_irextract *x) { dsp_free((t_pxobject *)x); free_mem_swap(&x->out_mem); free_HIRT_common_attributes(x); }