本文整理汇总了C++中dsp_add函数的典型用法代码示例。如果您正苦于以下问题:C++ dsp_add函数的具体用法?C++ dsp_add怎么用?C++ dsp_add使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了dsp_add函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: randomvals_dsp
void randomvals_dsp(t_randomvals *x, t_signal **sp, short *count)
{
dsp_add(randomvals_perform, 4, sp[0]->s_vec, sp[1]->s_vec, sp[0]->s_n, x);
}
开发者ID:AlexHarker,项目名称:AHarker_Externals,代码行数:4,代码来源:randomvals.c
示例2: pdp_scope_dsp
static void pdp_scope_dsp(t_pdp_scope *x, t_signal **sp)
{
dsp_add(pdp_scope_perform, 3, x, sp[0]->s_n, sp[0]->s_vec);
}
开发者ID:Angeldude,项目名称:pd,代码行数:5,代码来源:pdp_scope.c
示例3: triangle_dsp
static void triangle_dsp(t_triangle *x, t_signal **sp)
{
dsp_add(triangle_perform, 5, x, sp[0]->s_n,
sp[0]->s_vec, sp[1]->s_vec, sp[2]->s_vec);
}
开发者ID:EQ4,项目名称:Pd-for-LibPd,代码行数:5,代码来源:triangle.c
示例4: fade_tilde_dsp
static void fade_tilde_dsp(t_fade_tilde *x, t_signal **sp)
{
dsp_add(fade_tilde_perform, 4, sp[0]->s_vec, sp[1]->s_vec, x, sp[0]->s_n);
}
开发者ID:Angeldude,项目名称:pd,代码行数:4,代码来源:fade~.c
示例5: dcombsR_dsp
static void dcombsR_dsp(t_dcombsR *x, t_signal **sp)
{
dsp_add(dcombsR_perform, 4, x, sp[0]->s_vec, sp[1]->s_vec, sp[0]->s_n);
}
开发者ID:baordog,项目名称:memorycorruption,代码行数:4,代码来源:dcombsR~.c
示例6: foldback_tilde_dsp
static void foldback_tilde_dsp(t_foldback_tilde *x, t_signal **sp)
{
dsp_add(foldback_tilde_perform, 4, x, sp[0]->s_vec, sp[1]->s_vec, sp[0]->s_n);
}
开发者ID:Angeldude,项目名称:pd,代码行数:4,代码来源:foldback~.c
示例7: sigzero_dsp
static void sigzero_dsp(t_sigzero *x, t_signal **sp)
{
dsp_add(sigzero_perform, 3, sp[0]->s_vec, x, sp[0]->s_n);
}
开发者ID:iem-projects,项目名称:pd-zexy,代码行数:4,代码来源:sigzero~.c
示例8: aubiotempo_tilde_dsp
static void aubiotempo_tilde_dsp(t_aubiotempo_tilde *x, t_signal **sp)
{
dsp_add(aubiotempo_tilde_perform, 3, x, sp[0]->s_vec, sp[0]->s_n);
}
开发者ID:joshelser,项目名称:Instrument-Trainer,代码行数:4,代码来源:aubiotempo~.c
示例9: intg_dsp
static void intg_dsp(t_intg *intg, t_signal **sp) {
dsp_add(intg_perform, 4,
&intg->intg, sp[0]->s_n, sp[1]->s_vec, sp[0]->s_vec);
}
开发者ID:ebuswell,项目名称:smpd,代码行数:4,代码来源:intg~.c
示例10: median_dsp
static void median_dsp(t_median *x, t_signal **sp){
dsp_add(median_perform, 4, x, sp[0]->s_n, sp[0]->s_vec, sp[1]->s_vec);
}
开发者ID:flschiavoni,项目名称:puredata-median,代码行数:3,代码来源:median~.c
示例11: decibels_dsp
// ../../../../Jamoma/Core/DSP/library/build/JamomaDSP.dylib Method
void decibels_dsp(t_decibels *x, t_signal **sp, short *count)
{
if (count[0] && count[1])
dsp_add(decibels_perform, 4, x, sp[0]->s_vec, sp[1]->s_vec, sp[0]->s_n);
}
开发者ID:imclab,项目名称:TapTools,代码行数:6,代码来源:tap.decibels~.cpp
示例12: trapezoid_dsp
static void trapezoid_dsp(t_trapezoid *x, t_signal **sp)
{
dsp_add(trapezoid_perform, 6, x, sp[0]->s_n,
sp[0]->s_vec, sp[1]->s_vec, sp[2]->s_vec, sp[3]->s_vec);
}
开发者ID:emviveros,项目名称:pd-cyclone,代码行数:5,代码来源:trapezoid.c
示例13: rminus_dsp
// ---------------------------------------------------
// DSP Function
// ---------------------------------------------------
static void rminus_dsp(t_rminus *x, t_signal **sp)
{
dsp_add(rminus_perform, 4, sp[0]->s_n,
sp[0]->s_vec, sp[1]->s_vec, sp[2]->s_vec);
}
开发者ID:porres,项目名称:pd-cyclone,代码行数:8,代码来源:rminus.c
示例14: sigdelwrite_dsp
static void sigdelwrite_dsp(t_sigdelwrite *x, t_signal **sp)
{
dsp_add(sigdelwrite_perform, 3, sp[0]->s_vec, &x->x_cspace, sp[0]->s_n);
x->x_sortno = ugen_getsortno();
sigdelwrite_checkvecsize(x, sp[0]->s_n);
}
开发者ID:gdunstone,项目名称:pd-macambira,代码行数:6,代码来源:delwrite~.c
示例15: distortion_dsp
void distortion_dsp(t_distortion *x, t_signal **sp)
{
dsp_add(distortion2_perform, 6, x, sp[0]->s_vec, sp[1]->s_vec, sp[2]->s_vec, sp[3]->s_vec,sp[0]->s_n);
}
开发者ID:ericlyon,项目名称:lyonpotpourri3.0-32bit,代码行数:6,代码来源:distortion~.c
示例16: stringpitch_dsp
void stringpitch_dsp(t_stringpitch *x, t_signal **sp, short *connect) {
int vs = sys_getblksize();
if (vs > x->BufSize) post(" You need to use a smaller signal vector size...",0);
else if (connect[0]) dsp_add(stringpitch_perform, 3, sp[0]->s_vec, x, sp[0]->s_n);
}
开发者ID:CNMAT,项目名称:CNMAT-Externs,代码行数:6,代码来源:stringpitch~.c
示例17: gendyn_dsp
void gendyn_dsp(t_gendyn *x, t_signal **sp, short *count){
dsp_add(gendyn_perform, 4, x, sp[0]->s_vec, sp[1]->s_vec, sp[0]->s_n);
}
开发者ID:CNMAT,项目名称:CNMAT-Externs,代码行数:3,代码来源:gendyn~.c
示例18: log_dsp
static void log_dsp(t_log *x, t_signal **sp)
{
dsp_add(log_perform, 4, sp[0]->s_n, sp[0]->s_vec, sp[1]->s_vec,
&x->x_rcplogbase);
}
开发者ID:emviveros,项目名称:pd-cyclone,代码行数:5,代码来源:log.c
示例19: channel_dsp
void channel_dsp(t_channel *x, t_signal **sp, short *count)
{
dsp_add(channel_perform, 4, x, sp[0]->s_vec, sp[1]->s_vec, sp[0]->s_n);
}
开发者ID:ericlyon,项目名称:LyonPotpourri-MaxMSP,代码行数:4,代码来源:channel~.c
示例20: vinlet_dspprolog
/* set up prolog DSP code */
void vinlet_dspprolog(struct _vinlet *x, t_signal **parentsigs,
int myvecsize, int calcsize, int phase, int period, int frequency,
int downsample, int upsample, int reblock, int switched)
{
t_signal *insig;
/* no buffer means we're not a signal inlet */
if (!x->x_buf)
return;
x->x_updown.downsample = downsample;
x->x_updown.upsample = upsample;
/* if the "reblock" flag is set, arrange to copy data in from the
parent. */
if (reblock)
{
int parentvecsize, bufsize, oldbufsize, prologphase;
int re_parentvecsize; /* resampled parentvectorsize */
/* this should never happen: */
if (!x->x_buf) return;
/* the prolog code counts from 0 to period-1; the
phase is backed up by one so that AFTER the prolog code
runs, the "x_fill" phase is in sync with the "x_read" phase. */
prologphase = (phase - 1) & (period - 1);
if (parentsigs)
{
insig = parentsigs[inlet_getsignalindex(x->x_inlet)];
parentvecsize = insig->s_vecsize;
re_parentvecsize = parentvecsize * upsample / downsample;
}
else
{
insig = 0;
parentvecsize = 1;
re_parentvecsize = 1;
}
bufsize = re_parentvecsize;
if (bufsize < myvecsize) bufsize = myvecsize;
if (bufsize != (oldbufsize = x->x_bufsize))
{
t_float *buf = x->x_buf;
t_freebytes(buf, oldbufsize * sizeof(*buf));
buf = (t_float *)t_getbytes(bufsize * sizeof(*buf));
memset((char *)buf, 0, bufsize * sizeof(*buf));
x->x_bufsize = bufsize;
x->x_endbuf = buf + bufsize;
x->x_buf = buf;
}
if (parentsigs)
{
x->x_hop = period * re_parentvecsize;
x->x_fill = prologphase ?
x->x_endbuf - (x->x_hop - prologphase * re_parentvecsize) :
x->x_endbuf;
if (upsample * downsample == 1)
dsp_add(vinlet_doprolog, 3, x, insig->s_vec,
re_parentvecsize);
else {
int method = (x->x_updown.method == 3?
(pd_compatibilitylevel < 44 ? 0 : 1) : x->x_updown.method);
resamplefrom_dsp(&x->x_updown, insig->s_vec, parentvecsize,
re_parentvecsize, method);
dsp_add(vinlet_doprolog, 3, x, x->x_updown.s_vec,
re_parentvecsize);
}
/* if the input signal's reference count is zero, we have
to free it here because we didn't in ugen_doit(). */
if (!insig->s_refcount)
signal_makereusable(insig);
}
else memset((char *)(x->x_buf), 0, bufsize * sizeof(*x->x_buf));
x->x_directsignal = 0;
}
else
{
/* no reblocking; in this case our output signal is "borrowed"
and merely needs to be pointed to the real one. */
x->x_directsignal = parentsigs[inlet_getsignalindex(x->x_inlet)];
}
}
开发者ID:danomatika,项目名称:ofxPd,代码行数:85,代码来源:g_io.c
注:本文中的dsp_add函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论