本文整理汇总了C++中pd_list函数的典型用法代码示例。如果您正苦于以下问题:C++ pd_list函数的具体用法?C++ pd_list怎么用?C++ pd_list使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了pd_list函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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);
}
}
}
}
}
开发者ID:Angeldude,项目名称:pd,代码行数:28,代码来源:list2send.c
示例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);
}
开发者ID:amurtet,项目名称:pure-data,代码行数:7,代码来源:m_pd.c
示例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;
}
}
开发者ID:DataPaulette,项目名称:pd-vanilla,代码行数:25,代码来源:x_midi.c
示例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);
}
}
}
}
开发者ID:rvega,项目名称:CicmWrapper,代码行数:25,代码来源:c.radio.cpp
示例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);
}
开发者ID:4nykey,项目名称:rockbox,代码行数:9,代码来源:m_obj.c
示例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);
}
}
开发者ID:IcaroL2ORK,项目名称:pd,代码行数:9,代码来源:dist.c
示例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);
}
开发者ID:toto,项目名称:ipd,代码行数:9,代码来源:m_obj.c
示例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);
}
}
开发者ID:DataPaulette,项目名称:pd-vanilla,代码行数:10,代码来源:x_midi.c
示例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);
}
}
开发者ID:DataPaulette,项目名称:pd-vanilla,代码行数:10,代码来源:x_midi.c
示例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;
}
开发者ID:porres,项目名称:pure-data,代码行数:10,代码来源:m_obj.c
示例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);
}
}
开发者ID:Git689,项目名称:libpd-cyclone-ios,代码行数:10,代码来源:grab.c
示例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);
}
}
开发者ID:DataPaulette,项目名称:pd-vanilla,代码行数:10,代码来源:x_midi.c
示例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);
}
}
开发者ID:DataPaulette,项目名称:pd-vanilla,代码行数:10,代码来源:x_midi.c
示例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);
}
}
开发者ID:rfabbri,项目名称:pd-extended-core,代码行数:10,代码来源:e_midi.c
示例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);
}
}
开发者ID:rfabbri,项目名称:pd-extended-core,代码行数:10,代码来源:e_midi.c
示例16: pd_forwardmess
void pd_forwardmess(t_pd *x, int argc, t_atom *argv)
{
if (argc)
{
t_atomtype t = argv->a_type;
if (t == A_SYMBOL) pd_typedmess(x, argv->a_w.w_symbol, argc-1, argv+1);
else if (t == A_POINTER)
{
if (argc == 1) pd_pointer(x, argv->a_w.w_gpointer);
else pd_list(x, &s_list, argc, argv);
}
else if (t == A_FLOAT)
{
if (argc == 1) pd_float(x, argv->a_w.w_float);
else pd_list(x, &s_list, argc, argv);
}
else bug("pd_forwardmess");
}
}
开发者ID:Angeldude,项目名称:pd,代码行数:20,代码来源:m_class.c
示例17: bindlist_list
static void bindlist_list(t_bindlist *x, t_symbol *s,
int argc, t_atom *argv)
{
t_bindelem *e;
change_bindlist_via_graph = 1;
for (e = x->b_list; e; e = e->e_next)
if (e->e_who != NULL) pd_list(e->e_who, s, argc, argv);
if (change_bindlist_via_graph > 1)
bindlist_cleanup(x);
change_bindlist_via_graph = 0;
}
开发者ID:Tzero2,项目名称:pd,代码行数:11,代码来源:m_pd.c
示例18: inmidi_polyaftertouch
void inmidi_polyaftertouch(int portno, int channel, int pitch, int value)
{
if (pd_this->pd_polytouchin_sym->s_thing)
{
t_atom at[3];
SETFLOAT(at, pitch);
SETFLOAT(at+1, value);
SETFLOAT(at+2, (channel + (portno << 4) + 1));
pd_list(pd_this->pd_polytouchin_sym->s_thing, &s_list, 3, at);
}
}
开发者ID:DataPaulette,项目名称:pd-vanilla,代码行数:11,代码来源:x_midi.c
示例19: inmidi_noteon
void inmidi_noteon(int portno, int channel, int pitch, int velo)
{
if (pd_this->pd_notein_sym->s_thing)
{
t_atom at[3];
SETFLOAT(at, pitch);
SETFLOAT(at+1, velo);
SETFLOAT(at+2, (channel + (portno << 4) + 1));
pd_list(pd_this->pd_notein_sym->s_thing, &s_list, 3, at);
}
}
开发者ID:DataPaulette,项目名称:pd-vanilla,代码行数:11,代码来源:x_midi.c
示例20: inmidi_controlchange
void inmidi_controlchange(int portno, int channel, int ctlnumber, int value)
{
if (pd_this->pd_ctlin_sym->s_thing)
{
t_atom at[3];
SETFLOAT(at, ctlnumber);
SETFLOAT(at+1, value);
SETFLOAT(at+2, (channel + (portno << 4) + 1));
pd_list(pd_this->pd_ctlin_sym->s_thing, &s_list, 3, at);
}
}
开发者ID:DataPaulette,项目名称:pd-vanilla,代码行数:11,代码来源:x_midi.c
注:本文中的pd_list函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论