本文整理汇总了C++中pd_list函数的典型用法代码示例。如果您正苦于以下问题:C++ pd_list函数的具体用法?C++ pd_list怎么用?C++ pd_list使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了pd_list函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: list2send_list
static void list2send_list(t_list2send *x, t_symbol *s, int ac, t_atom *av)
{
if((ac >= 2) && (IS_A_FLOAT(av,0)))
{
int identifier_index = (int)atom_getintarg(0, ac, av);
if(identifier_index < x->x_max)
{
if(x->x_snd_able[identifier_index])
{
t_symbol *sender = x->x_send_entries[identifier_index];
if(sender->s_thing)
{
if(ac == 2)
{
if(IS_A_FLOAT(av, 1))
pd_float(sender->s_thing, atom_getfloatarg(1, ac, av));
else if(IS_A_SYMBOL(av, 1))
pd_symbol(sender->s_thing, atom_getsymbolarg(1, ac, av));
}
else
pd_list(sender->s_thing, &s_list, ac-1, av+1);
}
}
}
}
}
示例2: bindlist_list
static void bindlist_list(t_bindlist *x, t_symbol *s,
int argc, t_atom *argv)
{
t_bindelem *e;
for (e = x->b_list; e; e = e->e_next)
pd_list(e->e_who, s, argc, argv);
}
示例3: inmidi_clk
void inmidi_clk(double timing)
{
static t_float prev = 0;
static t_float count = 0;
t_float cur,diff;
if (pd_this->pd_midiclkin_sym->s_thing)
{
t_atom at[2];
diff =timing - prev;
count++;
if (count == 3)
{ /* 24 count per quoter note */
SETFLOAT(at, 1 );
count = 0;
}
else SETFLOAT(at, 0);
SETFLOAT(at+1, diff);
pd_list(pd_this->pd_midiclkin_sym->s_thing, &s_list, 2, at);
prev = timing;
}
}
示例4: radio_output
void radio_output(t_radio *x)
{
int i;
t_atom av[256];
if(x->f_mode)
{
for(i = 0; i < x->f_nitems; i++)
atom_setfloat(av+i, (float)x->f_items[i]);
outlet_list(x->f_out, &s_list, x->f_nitems, av);
if(ebox_getsender((t_ebox *) x))
pd_list(ebox_getsender((t_ebox *) x), &s_list, x->f_nitems, av);
}
else
{
for(i = 0; i < x->f_nitems; i++)
{
if(x->f_items[i] != 0)
{
outlet_float(x->f_out, (float)i);
if(ebox_getsender((t_ebox *) x))
pd_float(ebox_getsender((t_ebox *) x), (float)i);
}
}
}
}
示例5: outlet_list
void outlet_list(t_outlet *x, t_symbol *s, int argc, t_atom *argv)
{
t_outconnect *oc;
char c;
if (&c < stacklimit)
outlet_stackerror(x);
else for (oc = x->o_connections; oc; oc = oc->oc_next)
pd_list(oc->oc_to, s, argc, argv);
}
示例6: dist_list
static void dist_list(t_dist *x, t_symbol *s, int argc, t_atom *argv)
{
int i;
for(i = 0; i <= x->x_rec; i++)
{
if (x->x_sym[i]->s_thing) pd_list(x->x_sym[i]->s_thing, s, argc, argv);
}
}
示例7: inlet_list
static void inlet_list(t_inlet *x, t_symbol *s, int argc, t_atom *argv)
{
t_atom at;
if (x->i_symfrom == &s_list || x->i_symfrom == &s_float
|| x->i_symfrom == &s_symbol || x->i_symfrom == &s_pointer)
typedmess(x->i_dest, x->i_symto, argc, argv);
else if (!x->i_symfrom) pd_list(x->i_dest, s, argc, argv);
else inlet_wrong(x, &s_list);
}
示例8: inmidi_sysex
void inmidi_sysex(int portno, int byte)
{
t_atom at[2];
if (pd_this->pd_sysexin_sym->s_thing)
{
SETFLOAT(at, byte);
SETFLOAT(at+1, portno);
pd_list(pd_this->pd_sysexin_sym->s_thing, 0, 2, at);
}
}
示例9: inmidi_realtimein
void inmidi_realtimein(int portno, int SysMsg)
{
if (pd_this->pd_midirealtimein_sym->s_thing)
{
t_atom at[2];
SETFLOAT(at, portno);
SETFLOAT(at+1, SysMsg);
pd_list(pd_this->pd_midirealtimein_sym->s_thing, &s_list, 2, at);
}
}
示例10: outlet_list
void outlet_list(t_outlet *x, t_symbol *s, int argc, t_atom *argv)
{
t_outconnect *oc;
if(++stackcount >= STACKITER)
outlet_stackerror(x);
else
for (oc = x->o_connections; oc; oc = oc->oc_next)
pd_list(oc->oc_to, s, argc, argv);
--stackcount;
}
示例11: grab_list
static void grab_list(t_grab *x, t_symbol *s, int ac, t_atom *av)
{
t_pd *grabbed;
grab_start(x);
while (grabbed = grab_next(x))
{
pd_list(grabbed, s, ac, av);
grab_restore(x);
}
}
示例12: inmidi_programchange
void inmidi_programchange(int portno, int channel, int value)
{
if (pd_this->pd_pgmin_sym->s_thing)
{
t_atom at[2];
SETFLOAT(at, value + 1);
SETFLOAT(at+1, (channel + (portno << 4) + 1));
pd_list(pd_this->pd_pgmin_sym->s_thing, &s_list, 2, at);
}
}
示例13: inmidi_aftertouch
void inmidi_aftertouch(int portno, int channel, int value)
{
if (pd_this->pd_touchin_sym->s_thing)
{
t_atom at[2];
SETFLOAT(at, value);
SETFLOAT(at+1, (channel + (portno << 4) + 1));
pd_list(pd_this->pd_touchin_sym->s_thing, &s_list, 2, at);
}
}
示例14: inmidi_pitchbend
void inmidi_pitchbend(int portno, int channel, int value)
{
if (bendin_sym->s_thing)
{
t_atom at[2];
SETFLOAT(at, value);
SETFLOAT(at+1, (channel + (portno << 4) + 1));
pd_list(bendin_sym->s_thing, &s_list, 2, at);
}
}
示例15: inmidi_byte
void inmidi_byte(int portno, int byte)
{
t_atom at[2];
if (midiin_sym->s_thing)
{
SETFLOAT(at, byte);
SETFLOAT(at+1, portno + 1);
pd_list(midiin_sym->s_thing, 0, 2, at);
}
}