Beispiel #1
0
void space_preset(t_space *x)
{
    
    void* z;
    if(!(z = gensym("_preset")->s_thing))
        return;

    binbuf_vinsert(z, gensym("ossl")->s_name, x, object_classname(x), gensym("nmics"), x->f_number_of_microphones);
    binbuf_vinsert(z, gensym("ossffffffffffffffffffffffffffffff")->s_name, x, object_classname(x), gensym("coeffs"), (float)x->f_microphonesValues[0], (float)x->f_microphonesValues[1], (float)x->f_microphonesValues[2], (float)x->f_microphonesValues[3], (float)x->f_microphonesValues[4], (float)x->f_microphonesValues[5], (float)x->f_microphonesValues[6], (float)x->f_microphonesValues[7], (float)x->f_microphonesValues[8], (float)x->f_microphonesValues[9], (float)x->f_microphonesValues[10], (float)x->f_microphonesValues[11], (float)x->f_microphonesValues[12], (float)x->f_microphonesValues[13], (float)x->f_microphonesValues[14], (float)x->f_microphonesValues[15], (float)x->f_microphonesValues[16], (float)x->f_microphonesValues[17], (float)x->f_microphonesValues[18], (float)x->f_microphonesValues[19], (float)x->f_microphonesValues[20], (float)x->f_microphonesValues[21], (float)x->f_microphonesValues[22], (float)x->f_microphonesValues[23], (float)x->f_microphonesValues[24], (float)x->f_microphonesValues[25], (float)x->f_microphonesValues[26], (float)x->f_microphonesValues[27], (float)x->f_microphonesValues[28], (float)x->f_microphonesValues[29]);
}
void hoa_gain_preset(t_hoa_gain *x)
{
    void *z = gensym("_preset")->s_thing;
    if (z)
    {
        binbuf_vinsert(z,(char*)"osslf", x, object_classname(x), gensym("contextvalue"), x->f_inputMode, hoa_gain_get_input_mode_value(x));
    }
}
Beispiel #3
0
void LCD_save(Lcd *x, void *w)
{
	Rect *r;
	
	EnterCallback();
	r = &x->lcd_box.b_rect;
	
	if (x->lcd_box.b_hidden) {
		binbuf_vinsert(w,"ssssllll", gensym("#P"),gensym("hidden"),gensym("user"),
			gensym("LCD"), (long)(r->left), (long)(r->top),
				(long)(r->right - r->left), (long)(r->bottom - r->top));
	} else {
		binbuf_vinsert(w,"sssllll", gensym("#P"),gensym("user"), 
			gensym("LCD"), (long)(r->left), (long)(r->top),
				(long)(r->right - r->left), (long)(r->bottom - r->top));
	}
	ExitCallback();		
}
Beispiel #4
0
void space_preset(t_space *x)
{
    
    void* z;
    if(!(z = gensym("_preset")->s_thing))
        return;
    
    for(int i = 0; i < x->f_number_of_microphones; i++)
        binbuf_vinsert(z, gensym("osslf")->s_name, x, object_classname(x), gensym("coeffs"), i, (float)x->f_microphonesValues[i]);
}