Beispiel #1
0
void main(void)
{
  setup((t_messlist **)&resent_class, (method)resent_new, 
  (method)resent_free, (short)sizeof(t_resent), 0L,A_GIMME,0);
  addmess((method)resent_dsp, "dsp", A_CANT, 0);
  addmess((method)resent_assist,"assist",A_CANT,0);
  addbang((method)resent_acquire_sample);
  addmess((method)resent_mute, "mute", A_FLOAT, 0);
  addmess((method)resent_linespeed, "linespeed", A_GIMME, 0);
  addmess((method)resent_linephase, "linephase", A_GIMME, 0);
  addmess((method)resent_randspeed, "randspeed", A_GIMME, 0);
  addmess((method)resent_randphase, "randphase", A_GIMME, 0);
  addmess((method)resent_bin, "bin", A_DEFFLOAT, A_DEFFLOAT, 0);
  addmess((method)resent_setphase, "setphase",  A_DEFFLOAT, 0);
  addmess((method)resent_addphase, "addphase",  A_DEFFLOAT, 0);
  addmess((method)resent_setspeed, "setspeed",  A_DEFFLOAT, 0);
  addmess((method)resent_addspeed, "addspeed",  A_DEFFLOAT, 0);
  addmess((method)resent_playthrough, "playthrough",  A_DEFFLOAT, 0);
  addmess((method)resent_store_incr, "store_incr",0);
  addmess((method)resent_fftinfo, "fftinfo",0);
  addmess((method)resent_overlap, "overlap",A_FLOAT,0);
  addmess((method)resent_winfac, "winfac",A_FLOAT,0);
  addmess((method)resent_setspeed_and_phase, "setspeed_and_phase",  A_DEFFLOAT, A_DEFFLOAT, 0);
  addmess((method)resent_size, "size", A_FLOAT,0);
//  addmess((method)resent_verbose, "verbose", A_FLOAT,0);
  addmess((method)resent_overlap,"overlap",A_DEFFLOAT,0);
  addmess((method)resent_winfac,"winfac",A_DEFFLOAT,0);
  addmess((method)resent_fftinfo,"fftinfo",0);
  dsp_initclass();
  post("%s %s",OBJECT_NAME,FFTEASE_ANNOUNCEMENT);
}
Beispiel #2
0
void flext_base::AddMessageMethods(t_class *c,bool dsp,bool dspin)
{
    add_loadbang(c,cb_loadbang);

#if FLEXT_SYS == FLEXT_SYS_PD
    class_addmethod(c,(t_method)cb_click,gensym(const_cast<char *>("click")),A_FLOAT,A_FLOAT,A_FLOAT,A_FLOAT,A_FLOAT,A_NULL);
#elif FLEXT_SYS == FLEXT_SYS_MAX
    add_assist(c,cb_assist);
    add_dblclick(c,cb_click);
#endif

    SetProxies(c,dsp);
    StartQueue();
    
    if(dsp) {
#if FLEXT_SYS == FLEXT_SYS_MAX
        add_dsp(c,cb_dsp);
        dsp_initclass();
#elif FLEXT_SYS == FLEXT_SYS_PD
        if(dspin)
            CLASS_MAINSIGNALIN(c,flext_hdr,defsig); // float messages going into the left inlet are converted to signal
        add_dsp(c,cb_dsp);
#else
#error Platform not supported!
#endif
    }
}
Beispiel #3
0
int main(void)
{
	setup((t_messlist **)&gendyn_class, (method)gendyn_new, (method)gendyn_free, (short)sizeof(t_gendyn), 0L, A_GIMME, 0); 
	
	version(0);

	addmess((method) version, "version", 0);
	addmess((method)gendyn_dsp, "dsp", A_CANT, 0);
	addmess((method)gendyn_anything, "anything", A_GIMME, 0);
	addint((method)gendyn_int);
	addmess((method)gendyn_assist, "assist", A_CANT, 0);
	addmess((method)gendyn_tellmeeverything, "tellmeeverything", 0);
	addmess((method)whichamp, "whichamp", A_LONG, 0);
	addmess((method)whichdur, "whichdur", A_LONG, 0);
	addmess((method)aamp, "aamp", A_FLOAT, 0);
	addmess((method)adur, "adur", A_FLOAT, 0);
	addmess((method)minfreq, "minfreq", A_FLOAT, 0);
	addmess((method)maxfreq, "maxfreq", A_FLOAT, 0);
	addmess((method)scaleamp, "scaleamp", A_FLOAT, 0);
	addmess((method)scaledur, "scaledur", A_FLOAT, 0);
	addmess((method)freq, "freq", A_FLOAT, 0);
	
	dsp_initclass();
		
	return 0;
}
Beispiel #4
0
void
main(void)
	
	{
	LITTER_CHECKTIMEOUT(kClassName);
	
	// Standard Max/MSP initialization mantra
	setup(	&gObjectClass,				// Pointer to our class definition
			(method) NewPink,			// Instance creation function
			(method) dsp_free,			// Default deallocation function
			sizeof(tPink),				// Class object size
			NIL,						// No menu function
			A_NOTHING,					// No arguments
			0);		
	
	dsp_initclass();
	
	// Messages
	addmess	((method) DoTattle,		"dblclick",	A_CANT, 0);
	addmess	((method) DoTattle,		"tattle",	A_NOTHING);
	addmess	((method) DoAssist,		"assist",	A_CANT, 0);
	addmess	((method) DoInfo,		"info",		A_CANT, 0);
	
	// MSP-Level messages
	LITTER_TIMEBOMB addmess	((method) BuildDSPChain, "dsp",		A_CANT, 0);

	// Initialize Litter Library
	LitterInit(kClassName, 0);
	Taus88Init();

	
	}
Beispiel #5
0
        /*
         * fexpr~ initialization
         */
        fexpr_tilde_class = class_new(gensym("fexpr~"), (t_newmethod)expr_new,
            (t_method)expr_ff, sizeof(t_expr), 0, A_GIMME, 0);
        class_addmethod(fexpr_tilde_class, nullfn, gensym("signal"), 0);
        class_addmethod(fexpr_tilde_class,(t_method)expr_start,
                                                        gensym("start"), 0);
        class_addmethod(fexpr_tilde_class,(t_method)expr_stop,
                                                        gensym("stop"), 0);

        class_addmethod(fexpr_tilde_class,(t_method)expr_dsp,gensym("dsp"), 0);
        class_addmethod(fexpr_tilde_class, (t_method)fexpr_tilde_set,
                        gensym("set"), A_GIMME, 0);
        class_addmethod(fexpr_tilde_class, (t_method)fexpr_tilde_clear,
                        gensym("clear"), A_GIMME, 0);
        class_addmethod(fexpr_tilde_class,(t_method)expr_verbose,
                                                        gensym("verbose"), 0);
        class_addmethod(fexpr_tilde_class,(t_method)expr_version,
                                                        gensym("version"), 0);
        class_sethelpsymbol(fexpr_tilde_class, gensym("expr"));

}

void
expr_tilde_setup(void)
{
        expr_setup();
}

void
fexpr_tilde_setup(void)
{
        expr_setup();
}
#else /* MSP */
void
main(void)
{
        setup((t_messlist **)&expr_tilde_class, (method)Nexpr_new,
                (method)expr_ff, (short)sizeof(t_expr), 0L, A_GIMME, 0);
        addmess((method)expr_dsp, "dsp", A_CANT, 0); // dsp method
        dsp_initclass();
}
Beispiel #6
0
void main(void)
{
    setup((struct messlist **)&dcblock_class, (method)dcblock_new, (method)dsp_free, (short)sizeof(t_dcblock), 0L, A_DEFFLOAT, 0);
    addmess((method)dcblock_dsp, "dsp", A_CANT, 0);
    addmess((method)dcblock_assist,"assist",A_CANT,0);
    dsp_initclass();
    rescopy('STR#',3214);
}
Beispiel #7
0
//primary MSP funcs
void main(void)
{
    setup((struct messlist **)&bowedbar_class, (method)bowedbar_new, (method)bowedbar_free, (short)sizeof(t_bowedbar), 0L, A_DEFFLOAT, 0);
    addmess((method)bowedbar_dsp, "dsp", A_CANT, 0);
    addmess((method)bowedbar_assist,"assist",A_CANT,0);
    addfloat((method)bowedbar_float);
    dsp_initclass();
    rescopy('STR#',9979);
}
Beispiel #8
0
//----------------------------------------------------------------------------------------------
void main(void) {
	setup((t_messlist **)&this_class, (method)f0ext_new, (method)dsp_free, (short)sizeof(x_f0ext), 0L, A_DEFFLOAT, 0);
	dsp_initclass();
	addmess((method)f0ext_dsp, "dsp", A_CANT, 0);
	addfloat((method)f0ext_float);
	addmess((method)f0ext_assist, "assist", A_CANT, 0);
	finder_addclass("All Objects", "f0.round~");
	finder_addclass("MSP Modifiers", "f0.round~");
	post("f0.round~ v1.0-ub; distributed under GNU GPL license");		//target specific
}
//primary MSP funcs
void main(void)
{
    setup((struct messlist **)&cabasa_class, (method)cabasa_new, (method)dsp_free, (short)sizeof(t_cabasa), 0L, A_DEFFLOAT, 0);
    addmess((method)cabasa_dsp, "dsp", A_CANT, 0);
    addmess((method)cabasa_assist,"assist",A_CANT,0);
    addfloat((method)cabasa_float);
    addint((method)cabasa_int);
    addbang((method)cabasa_bang);
    dsp_initclass();
    rescopy('STR#',9332);
}
Beispiel #10
0
void main(void)
{
    setup(&sigflip_class, sigflip_new, (method)dsp_free, (short)sizeof(t_sigflip), 0L, A_DEFFLOAT, 0);
    addmess((method)sigflip_dsp, "dsp", A_CANT, 0);
    addfloat((method)sigflip_float);
    addint((method)sigflip_int);
    addmess((method)sigflip_assist,"assist",A_CANT,0);
    dsp_initclass();
    
    post("flip~: by r. luke dubois, cmc");
}
Beispiel #11
0
void main(void) {
	post("pitcher~ version " PITCHER_VERSION " by Brian K. Vogel");
	post("Copyright © 1999 Regents of the University of California.  ");

    setup((t_messlist **)&pitcher_class, (method)pitcher_new, (method)pitcher_free, (short)sizeof(t_pitcher),
          0L, A_GIMME, 0);
    addmess((method)pitcher_dsp, "dsp", A_CANT, 0);
    addmess((method)pitcher_assist,"assist",A_CANT,0);
    dsp_initclass();
    rescopy('STR#',3241);
}
Beispiel #12
0
//primary MSP funcs
void main(void)
{
    setup((struct messlist **)&marimba_class, (method)marimba_new, (method)marimba_free, (short)sizeof(t_marimba), 0L, A_DEFFLOAT, 0);
    addmess((method)marimba_dsp, "dsp", A_CANT, 0);
    addmess((method)marimba_assist,"assist",A_CANT,0);
    addmess((method)marimba_noteon, "noteon", A_GIMME, 0);
    addmess((method)marimba_noteoff, "noteoff", A_GIMME, 0);
    addfloat((method)marimba_float);
    dsp_initclass();
    rescopy('STR#',9278);
}
void main(void)
{
    setup((t_messlist **)&channel_class, (method)channel_new, (method)dsp_free, 
		  (short)sizeof(t_channel), 0, A_GIMME, 0);
    addmess((method)channel_dsp, "dsp", A_CANT, 0);
    addmess((method)channel_assist,"assist",A_CANT,0);
    addmess((method)channel_channel,"channel",A_FLOAT,0);
    	addinx((method)channel_int, 1);
    dsp_initclass();
    post("%s %s",OBJECT_NAME, LYONPOTPOURRI_MSG);
}
Beispiel #14
0
void main(void)
{
	setup(&fir_class, fir_new, (method)dsp_free, (short)sizeof(t_fir), 0L, A_LONG, 0);
	addmess((method)fir_dsp, "dsp", A_CANT, 0);
	addbang((method)fir_bang);
	addmess((method)fir_set, "set", A_GIMME, 0);
	addmess((method)fir_clear, "clear", 0);
	addmess((method)fir_assist, "assist", A_CANT, 0);
	dsp_initclass();
	rescopy('STR#',RES_ID);
}
Beispiel #15
0
//primary MSP funcs
void main(void)
{
    setup((struct messlist **)&guiro_class, (method)guiro_new, (method)dsp_free, (short)sizeof(t_guiro), 0L, A_DEFFLOAT, 0);
    addmess((method)guiro_dsp, "dsp", A_CANT, 0);
    addmess((method)guiro_assist,"assist",A_CANT,0);
    addfloat((method)guiro_float);
    addint((method)guiro_int);
    addbang((method)guiro_bang);
    dsp_initclass();
    rescopy('STR#',9333);
}
Beispiel #16
0
void main(void)
{
    setup(&random_class, random_new, random_free, (short)sizeof(t_random), 0L, A_DEFLONG, A_DEFLONG, 0);

	// declare the methods
    addmess((method)random_dsp, "dsp", A_CANT, 0);
    addmess((method)random_assist,"assist",A_CANT,0);
	addmess((method)random_range, "range", A_DEFLONG, 0);
    dsp_initclass(); // required for msp

	post("random~: by r. luke dubois, cmc");
}
Beispiel #17
0
void main(void)
{
	setup(&terrain_class, terrain_new, (method)dsp_free, (short)sizeof(t_terrain), 0L, 
		A_SYM, A_DEFLONG, A_DEFLONG, 0);
	addmess((method)terrain_dsp, "dsp", A_CANT, 0);
	addmess((method)terrain_set, "set", A_SYM, 0);
	addmess((method)terrain_assist, "assist", A_CANT, 0);
	addmess((method)terrain_size, "size", A_DEFLONG, 0);
	addmess((method)terrain_frames, "frames", A_DEFLONG, 0);
	dsp_initclass();
	ps_buffer = gensym("buffer~");
}
Beispiel #18
0
int main(void)				// main recieves a copy of the Max function macros table
{
	setup((t_messlist **)&teabox_class, (method)teabox_new, (method)dsp_free, (short)sizeof(t_teabox), 0L, 0);
	    					
	addmess((method)teabox_dsp, 		"dsp", A_CANT, 0);		// Bind method "teabox_dsp" to the DSP call from MSP
	addmess((method)teabox_assist,		"assist", A_CANT, 0);	// Bind method "teabox_assist" to assistance calls
	addmess((method)teabox_getversion, 	"getversion", 0);
	addmess((method)teabox_getstatus,	"getstatus", 0);
	
	dsp_initclass();											// Setup object's class to work with MSP
	return 0;
}
Beispiel #19
0
void main(void)
{
	setup(&stft_class, stft_new, (method)stft_free, (short)sizeof(t_stft), 
		0L, A_GIMME, 0);
	addmess((method)stft_dsp, "dsp", A_CANT, 0);
	addmess((method)stft_assist, "assist", A_CANT, 0);
	addbang((method)stft_bang);

	ps_sdifstftbuffconnect = gensym("sdifstftbuffconnect");
	rescopy('STR#',RES_ID);
	dsp_initclass();
}
Beispiel #20
0
void main(void)
{
	setup(&fft_class, fft_new, (method)fft_free, (short)sizeof(t_fft), 
		0L, A_GIMME, 0);
	addmess((method)fft_dsp, "dsp", A_CANT, 0);
	addmess((method)fft_assist, "assist", A_CANT, 0);
	ps_fft = gensym("fft~");
	ps_ifft = gensym("ifft~");
	rescopy('STR#',3210);
	dsp_initclass();
	fts_mode = (long)dsp_fts_mode;
}
Beispiel #21
0
void main(void) {

	setup( (t_messlist **)&stringpitch_class, stringpitch_new, (method)stringpitch_free,
			(short)sizeof(t_stringpitch), 0L, A_GIMME, 0);
		
	addmess((method)stringpitch_dsp, "dsp", A_CANT, 0);
	addmess((method)stringpitch_assist, "assist", A_CANT, 0);
	addfloat((method)stringpitch_float);
	addint((method)stringpitch_int);
	dsp_initclass();

	rescopy('STR#', RES_ID);
}
Beispiel #22
0
void main(void)
{
	setup(&fft_class, fft_new, (method)fft_free, (short)sizeof(t_fft), 
		0L, A_GIMME, 0);
	addmess((method)fft_dsp, "dsp", A_CANT, 0);
	addmess((method)fft_assist, "assist", A_CANT, 0);
	addbang((method)fft_bang);
	ps_rfft = gensym("fftÅ");
	ps_rifft = gensym("ifftÅ");
	ps_fftbuffconnect = gensym("fftbuffconnect");
	rescopy('STR#',3210);
	dsp_initclass();
}
Beispiel #23
0
void main(void)
{
	setup((t_messlist **)&xsyn_class, (method) xsyn_new, (method)xsyn_dsp_free, 
		  (short)sizeof(t_xsyn), 0, A_GIMME, 0);
	addmess((method)xsyn_dsp, "dsp", A_CANT, 0);
	addmess((method)xsyn_assist,"assist",A_CANT,0);
	addmess((method)xsyn_mute,"mute",A_FLOAT,0);
	addmess((method)xsyn_overlap,"overlap",A_FLOAT,0);
	addmess((method)xsyn_winfac,"winfac",A_DEFFLOAT,0);
	addmess((method)xsyn_fftinfo,"fftinfo",0);
	dsp_initclass();
	post("%s %s",OBJECT_NAME,FFTEASE_ANNOUNCEMENT);
}
Beispiel #24
0
void main(void) {

	setup( (t_messlist **)&getonset_class, getonset_new, (method)getonset_free,
			(short)sizeof(t_getonset), 0L, A_GIMME, 0);
		
	addmess((method)getonset_dsp, "dsp", A_CANT, 0);
	addmess((method)getonset_assist, "assist", A_CANT, 0);
	addfloat((method)getonset_float);
	addint((method)getonset_int);
	dsp_initclass();

	rescopy('STR#', RES_ID);
}
Beispiel #25
0
int main(void)
{
	setup((t_messlist **)&index_class, (method)index_new, (method)dsp_free, (short)sizeof(t_index), 0L, 
		A_SYM, A_DEFLONG, 0);
	addmess((method)index_dsp, "dsp", A_CANT, 0);
	addmess((method)index_set, "set", A_SYM, 0);
	addinx((method)index_in1,1);
	addmess((method)index_assist, "assist", A_CANT, 0);
	addmess((method)index_dblclick, "dblclick", A_CANT, 0);
	dsp_initclass();
	ps_buffer = gensym("buffer~");

	return 0;
}
Beispiel #26
0
void main(void)
{
    setup((t_messlist **)&markov_class,(method) markov_new, (method)markov_free, (short)sizeof(t_markov), 0L, A_DEFFLOAT, 0);
    addmess((method)markov_dsp, "dsp", A_CANT, 0);
    addmess((method)markov_assist,"assist",A_CANT,0);
    addmess((method)markov_subdiv,"subdiv",A_FLOAT,0);
    addmess((method)markov_tempo,"tempo",A_FLOAT,0);
    addmess((method)markov_values,"values",A_GIMME,0);
    addmess((method)markov_event_odds,"event_odds",A_GIMME,0);
    addmess((method)markov_set_length,"set_length",A_FLOAT,0);
    addmess((method)markov_manual_override,"manual_override",A_FLOAT,0);
    addbang((method)markov_bang);
    dsp_initclass();
	post("%s %s",OBJECT_NAME, LYONPOTPOURRI_MSG);}
Beispiel #27
0
void main(void)
{
    setup( (t_messlist **) &shapee_class, (method) shapee_new,
    		(method) shapee_free, (short) sizeof(t_shapee), 0, A_GIMME, 0);
    		
    addmess((method)shapee_dsp, "dsp", A_CANT, 0);
    addmess((method)shapee_assist,"assist",A_CANT,0);
    addfloat((method)shapee_float);	
    addmess((method)shapee_mute,"mute",A_FLOAT,0);
	addmess((method)shapee_overlap,"overlap",A_FLOAT,0);
	addmess((method)shapee_winfac,"winfac",A_FLOAT,0);
	addmess((method)shapee_fftinfo,"fftinfo",0);
    dsp_initclass();
  post("%s %s",OBJECT_NAME,FFTEASE_ANNOUNCEMENT);
  }
Beispiel #28
0
void main(void) {
    setup(
        (t_messlist **) &emd_class,
        (method) emd_new,
        (method) emd_free,
        (short) sizeof(t_emd),
        (method) NULL,
        A_DEFLONG, A_DEFLONG, A_DEFLONG, 0);

    addmess((method) emd_dsp, "dsp", A_CANT, 0);
    addmess((method) emd_assist, "assist", A_CANT, 0);
    addmess((method) emd_locality, "locality", A_DEFLONG, 0);
    addmess((method) emd_iterations, "iterations", A_DEFLONG, 0);
    dsp_initclass();
}
Beispiel #29
0
void main(void)
{
  setup((t_messlist **)&crossx_class, (method)crossx_new, (method)dsp_free, 
  (short)sizeof(t_crossx), 0L, A_GIMME, 0);
  addmess((method)crossx_dsp, "dsp", A_CANT, 0);
  addmess((method)crossx_assist,"assist",A_CANT,0);
  addmess((method)crossx_mute,"mute",A_DEFFLOAT,0);
  addmess((method)crossx_overlap, "overlap",  A_DEFFLOAT, 0);
  addmess((method)crossx_winfac, "winfac",  A_DEFFLOAT, 0);
  addmess((method)crossx_fftinfo, "fftinfo", 0);
  addmess((method)crossx_autonorm, "autonorm",  A_DEFFLOAT, 0);
  addfloat((method)crossx_float);
  dsp_initclass();
   	post("%s %s",OBJECT_NAME,FFTEASE_ANNOUNCEMENT);
}
Beispiel #30
0
void main(void)
{
	setup((t_messlist **)&bvplay_class, (method)bvplay_new, (method)dsp_free, 
	(short)sizeof(t_bvplay), 0, A_SYM, A_DEFLONG, A_DEFFLOAT, 0);
	addmess((method)bvplay_dsp, "dsp", A_CANT, 0);
	addmess((method)bvplay_notelist, "list", A_GIMME, 0);
	addmess((method)bvplay_assist, "assist", A_CANT, 0);
	addmess((method)bvplay_dblclick, "dblclick", A_CANT, 0);
	addmess((method)bvplay_verbose, "verbose", A_FLOAT, 0);
	addmess((method)bvplay_mute, "mute", A_FLOAT, 0);
	addmess((method)bvplay_taper, "taper", A_FLOAT, 0);
	dsp_initclass();
	ps_buffer = gensym("buffer~");
	post("%s %s",OBJECT_NAME, LYONPOTPOURRI_MSG);
}