838 lines
No EOL
2 MiB
838 lines
No EOL
2 MiB
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"/><meta name="viewport" content="width=device-width, initial-scale=0.8"/><title>2 rsc3: ugens</title><link rel="stylesheet" type="text/css" href="scribble.css" title="default"/><link rel="stylesheet" type="text/css" href="racket.css" title="default"/><link rel="stylesheet" type="text/css" href="manual-style.css" title="default"/><link rel="stylesheet" type="text/css" href="manual-racket.css" title="default"/><script type="text/javascript" src="scribble-common.js"></script><script type="text/javascript" src="manual-racket.js"></script><!--[if IE 6]><style type="text/css">.SIEHidden { overflow: hidden; }</style><![endif]--></head><body id="scribble-racket-lang-org"><div class="tocset"><div class="tocview"><div class="tocviewlist tocviewlisttopspace"><div class="tocviewtitle"><table cellspacing="0" cellpadding="0"><tr><td style="width: 1em;"><a href="javascript:void(0);" title="Expand/Collapse" class="tocviewtoggle" onclick="TocviewToggle(this,"tocview_0");">▼</a></td><td></td><td><a href="index.html" class="tocviewlink" data-pltdoc="x">rsc3:<span class="mywbr"> </span> racket/<span class="mywbr"> </span>scheme/<span class="mywbr"> </span>supercollider</a></td></tr></table></div><div class="tocviewsublisttop" style="display: block;" id="tocview_0"><table cellspacing="0" cellpadding="0"><tr><td align="right">1 </td><td><a href="rsc3__server_commands.html" class="tocviewlink" data-pltdoc="x">rsc3:<span class="mywbr"> </span> server commands</a></td></tr><tr><td align="right">2 </td><td><a href="rsc3__ugens.html" class="tocviewselflink" data-pltdoc="x">rsc3:<span class="mywbr"> </span> ugens</a></td></tr><tr><td align="right">3 </td><td><a href="rsc3__tutorials.html" class="tocviewlink" data-pltdoc="x">rsc3:<span class="mywbr"> </span> tutorials</a></td></tr><tr><td align="right"></td><td><a href="doc-index.html" class="tocviewlink" data-pltdoc="x">Index</a></td></tr></table></div></div><div class="tocviewlist"><table cellspacing="0" cellpadding="0"><tr><td style="width: 1em;"><a href="javascript:void(0);" title="Expand/Collapse" class="tocviewtoggle" onclick="TocviewToggle(this,"tocview_1");">►</a></td><td>2 </td><td><a href="rsc3__ugens.html" class="tocviewselflink" data-pltdoc="x">rsc3:<span class="mywbr"> </span> ugens</a></td></tr></table><div class="tocviewsublistbottom" style="display: none;" id="tocview_1"><table cellspacing="0" cellpadding="0"><tr><td align="right">2.1 </td><td><a href="rsc3__ugens.html#%28part.__.Rlpf_in_freq_rq_%29" class="tocviewlink" data-pltdoc="x">(Rlpf in freq rq)</a></td></tr><tr><td align="right">2.2 </td><td><a href="rsc3__ugens.html#%28part.__fold_in_lo_hi_%29" class="tocviewlink" data-pltdoc="x">(fold in lo hi)</a></td></tr><tr><td align="right">2.3 </td><td><a href="rsc3__ugens.html#%28part.__formlet_in_freq_attack.Time_decay.Time_%29" class="tocviewlink" data-pltdoc="x">(formlet in freq attack<span class="mywbr"> </span>Time decay<span class="mywbr"> </span>Time)</a></td></tr><tr><td align="right">2.4 </td><td><a href="rsc3__ugens.html#%28part.__lin-lin_in_srclo_srchi_dstlo_dsthi_%29" class="tocviewlink" data-pltdoc="x">(lin-<wbr></wbr>lin in srclo srchi dstlo dsthi)</a></td></tr><tr><td align="right">2.5 </td><td><a href="rsc3__ugens.html#%28part.__fos_in_a0_a1_b1_%29" class="tocviewlink" data-pltdoc="x">(fos in a0 a1 b1)</a></td></tr><tr><td align="right">2.6 </td><td><a href="rsc3__ugens.html#%28part.__bpf_in_freq_rq_%29" class="tocviewlink" data-pltdoc="x">(bpf in freq rq)</a></td></tr><tr><td align="right">2.7 </td><td><a href="rsc3__ugens.html#%28part.__wrap_in_lo_hi_%29" class="tocviewlink" data-pltdoc="x">(wrap in lo hi)</a></td></tr><tr><td align="right">2.8 </td><td><a href="rsc3__ugens.html#%28part.__bpz2_in_%29" class="tocviewlink" data-pltdoc="x">(bpz2 in)</a></td></tr><tr><td align="right">2.9 </td><td><a href="rsc3__ugens.html#%28part.__amp-comp_freq_root_exp_%29" class="tocviewlink" data-pltdoc="x">(amp-<wbr></wbr>comp freq root exp)</a></td></tr><tr><td align="right">2.10 </td><td><a href="rsc3__ugens.html#%28part.__lag2_in_lag.Time_%29" class="tocviewlink" data-pltdoc="x">(lag2 in lag<span class="mywbr"> </span>Time)</a></td></tr><tr><td align="right">2.11 </td><td><a href="rsc3__ugens.html#%28part.__one-zero_in_coef_%29" class="tocviewlink" data-pltdoc="x">(one-<wbr></wbr>zero in coef)</a></td></tr><tr><td align="right">2.12 </td><td><a href="rsc3__ugens.html#%28part.__klank_in_freq.Scale_freq.Offset_decay.Scale_spec_%29" class="tocviewlink" data-pltdoc="x">(klank in freq<span class="mywbr"> </span>Scale freq<span class="mywbr"> </span>Offset decay<span class="mywbr"> </span>Scale spec)</a></td></tr><tr><td align="right">2.13 </td><td><a href="rsc3__ugens.html#%28part.__lpz2_ar_in_%29" class="tocviewlink" data-pltdoc="x">(lpz2 ar in)</a></td></tr><tr><td align="right">2.14 </td><td><a href="rsc3__ugens.html#%28part.__lin-exp_in_srclo_srchi_dstlo_dsthi_%29" class="tocviewlink" data-pltdoc="x">(lin-<wbr></wbr>exp in srclo srchi dstlo dsthi)</a></td></tr><tr><td align="right">2.15 </td><td><a href="rsc3__ugens.html#%28part.__hpz2_in_%29" class="tocviewlink" data-pltdoc="x">(hpz2 in)</a></td></tr><tr><td align="right">2.16 </td><td><a href="rsc3__ugens.html#%28part.__leak-dc_in_coef_%29" class="tocviewlink" data-pltdoc="x">(leak-<wbr></wbr>dc in coef)</a></td></tr><tr><td align="right">2.17 </td><td><a href="rsc3__ugens.html#%28part.__hpf_in_freq_%29" class="tocviewlink" data-pltdoc="x">(hpf in freq)</a></td></tr><tr><td align="right">2.18 </td><td><a href="rsc3__ugens.html#%28part.__sos_in_a0_a1_a2_b1_b2_%29" class="tocviewlink" data-pltdoc="x">(sos in a0 a1 a2 b1 b2)</a></td></tr><tr><td align="right">2.19 </td><td><a href="rsc3__ugens.html#%28part.__normalizer_in_level_dur_%29" class="tocviewlink" data-pltdoc="x">(normalizer in level dur)</a></td></tr><tr><td align="right">2.20 </td><td><a href="rsc3__ugens.html#%28part.__two-zero_in_freq_radius_%29" class="tocviewlink" data-pltdoc="x">(two-<wbr></wbr>zero in freq radius)</a></td></tr><tr><td align="right">2.21 </td><td><a href="rsc3__ugens.html#%28part.__clip_in_lo_hi_%29" class="tocviewlink" data-pltdoc="x">(clip in lo hi)</a></td></tr><tr><td align="right">2.22 </td><td><a href="rsc3__ugens.html#%28part.__limiter_input_level_look.Ahead.Time_%29" class="tocviewlink" data-pltdoc="x">(limiter input level look<span class="mywbr"> </span>Ahead<span class="mywbr"> </span>Time)</a></td></tr><tr><td align="right">2.23 </td><td><a href="rsc3__ugens.html#%28part.__median_length_in_%29" class="tocviewlink" data-pltdoc="x">(median length in)</a></td></tr><tr><td align="right">2.24 </td><td><a href="rsc3__ugens.html#%28part.__lag3_in_lag.Time_%29" class="tocviewlink" data-pltdoc="x">(lag3 in lag<span class="mywbr"> </span>Time)</a></td></tr><tr><td align="right">2.25 </td><td><a href="rsc3__ugens.html#%28part.__amp-comp.A_freq_root_min.Amp_root.Amp_%29" class="tocviewlink" data-pltdoc="x">(amp-<wbr></wbr>comp<span class="mywbr"> </span>A freq root min<span class="mywbr"> </span>Amp root<span class="mywbr"> </span>Amp)</a></td></tr><tr><td align="right">2.26 </td><td><a href="rsc3__ugens.html#%28part.__two-pole_in_freq_radius_%29" class="tocviewlink" data-pltdoc="x">(two-<wbr></wbr>pole in freq radius)</a></td></tr><tr><td align="right">2.27 </td><td><a href="rsc3__ugens.html#%28part.__lpf_in_freq_%29" class="tocviewlink" data-pltdoc="x">(lpf in freq)</a></td></tr><tr><td align="right">2.28 </td><td><a href="rsc3__ugens.html#%28part.__hpz1_in_%29" class="tocviewlink" data-pltdoc="x">(hpz1 in)</a></td></tr><tr><td align="right">2.29 </td><td><a href="rsc3__ugens.html#%28part.__freq-shift_input_shift_phase_%29" class="tocviewlink" data-pltdoc="x">(freq-<wbr></wbr>shift input shift phase)</a></td></tr><tr><td align="right">2.30 </td><td><a href="rsc3__ugens.html#%28part.__lpz1_ar_in_%29" class="tocviewlink" data-pltdoc="x">(lpz1 ar in)</a></td></tr><tr><td align="right">2.31 </td><td><a href="rsc3__ugens.html#%28part.__moog-ff_in_freq_gain_reset_%29" class="tocviewlink" data-pltdoc="x">(moog-<wbr></wbr>ff in freq gain reset)</a></td></tr><tr><td align="right">2.32 </td><td><a href="rsc3__ugens.html#%28part.__resonz_in_freq_bwr_%29" class="tocviewlink" data-pltdoc="x">(resonz in freq bwr)</a></td></tr><tr><td align="right">2.33 </td><td><a href="rsc3__ugens.html#%28part.__brz2_in_%29" class="tocviewlink" data-pltdoc="x">(brz2 in)</a></td></tr><tr><td align="right">2.34 </td><td><a href="rsc3__ugens.html#%28part.__.Rhpf_in_freq_rq_%29" class="tocviewlink" data-pltdoc="x">(Rhpf in freq rq)</a></td></tr><tr><td align="right">2.35 </td><td><a href="rsc3__ugens.html#%28part.__brf_in_freq_rq_%29" class="tocviewlink" data-pltdoc="x">(brf in freq rq)</a></td></tr><tr><td align="right">2.36 </td><td><a href="rsc3__ugens.html#%28part.__one-pole_in_coef_%29" class="tocviewlink" data-pltdoc="x">(one-<wbr></wbr>pole in coef)</a></td></tr><tr><td align="right">2.37 </td><td><a href="rsc3__ugens.html#%28part.__lag_in_lag.Time_%29" class="tocviewlink" data-pltdoc="x">(lag in lag<span class="mywbr"> </span>Time)</a></td></tr><tr><td align="right">2.38 </td><td><a href="rsc3__ugens.html#%28part.__ringz_in_freq_decay.Time_%29" class="tocviewlink" data-pltdoc="x">(ringz in freq decay<span class="mywbr"> </span>Time)</a></td></tr><tr><td align="right">2.39 </td><td><a href="rsc3__ugens.html#%28part.__dyn-klank_in_freq.Scale_freq.Offset_decay.Scale_spec_%29" class="tocviewlink" data-pltdoc="x">(dyn-<wbr></wbr>klank in freq<span class="mywbr"> </span>Scale freq<span class="mywbr"> </span>Offset decay<span class="mywbr"> </span>Scale spec)</a></td></tr><tr><td align="right">2.40 </td><td><a href="rsc3__ugens.html#%28part.__.Grainin_nc_tr_dur_in_pan_envbuf_%29" class="tocviewlink" data-pltdoc="x">(Grainin nc tr dur in pan envbuf)</a></td></tr><tr><td align="right">2.41 </td><td><a href="rsc3__ugens.html#%28part.__grain-buf_nc_tr_dur_sndbuf_rate_pos_interp_pan_envbuf_%29" class="tocviewlink" data-pltdoc="x">(grain-<wbr></wbr>buf nc tr dur sndbuf rate pos interp pan envbuf)</a></td></tr><tr><td align="right">2.42 </td><td><a href="rsc3__ugens.html#%28part.__grain-sin_nc_tr_dur_freq_pan_envbuf_%29" class="tocviewlink" data-pltdoc="x">(grain-<wbr></wbr>sin nc tr dur freq pan envbuf)</a></td></tr><tr><td align="right">2.43 </td><td><a href="rsc3__ugens.html#%28part.__warp1_nc_buf_ptr_freq.Scale_window.Size_envbuf_overlaps_windowrand.Ratio_interp_%29" class="tocviewlink" data-pltdoc="x">(warp1 nc buf ptr freq<span class="mywbr"> </span>Scale window<span class="mywbr"> </span>Size envbuf overlaps windowrand<span class="mywbr"> </span>Ratio interp)</a></td></tr><tr><td align="right">2.44 </td><td><a href="rsc3__ugens.html#%28part.__grain-fm_nc_tr_dur_carfreq_modfreq_index_pan_envbuf_%29" class="tocviewlink" data-pltdoc="x">(grain-<wbr></wbr>fm nc tr dur carfreq modfreq index pan envbuf)</a></td></tr><tr><td align="right">2.45 </td><td><a href="rsc3__ugens.html#%28part.__disk-in_num-channels_rate_bufnum_%29" class="tocviewlink" data-pltdoc="x">(disk-<wbr></wbr>in num-<wbr></wbr>channels rate bufnum)</a></td></tr><tr><td align="right">2.46 </td><td><a href="rsc3__ugens.html#%28part.__disk-out_bufnum_channels_%29" class="tocviewlink" data-pltdoc="x">(disk-<wbr></wbr>out bufnum channels)</a></td></tr><tr><td align="right">2.47 </td><td><a href="rsc3__ugens.html#%28part._num-input-buses%29" class="tocviewlink" data-pltdoc="x">num-<wbr></wbr>input-<wbr></wbr>buses</a></td></tr><tr><td align="right">2.48 </td><td><a href="rsc3__ugens.html#%28part._num-control-buses%29" class="tocviewlink" data-pltdoc="x">num-<wbr></wbr>control-<wbr></wbr>buses</a></td></tr><tr><td align="right">2.49 </td><td><a href="rsc3__ugens.html#%28part._num-buffers%29" class="tocviewlink" data-pltdoc="x">num-<wbr></wbr>buffers</a></td></tr><tr><td align="right">2.50 </td><td><a href="rsc3__ugens.html#%28part._num-output-buses%29" class="tocviewlink" data-pltdoc="x">num-<wbr></wbr>output-<wbr></wbr>buses</a></td></tr><tr><td align="right">2.51 </td><td><a href="rsc3__ugens.html#%28part.__buf-frames_rate_bufnum_%29" class="tocviewlink" data-pltdoc="x">(buf-<wbr></wbr>frames rate bufnum)</a></td></tr><tr><td align="right">2.52 </td><td><a href="rsc3__ugens.html#%28part.__buf-rate-scale_rate_bufnum_%29" class="tocviewlink" data-pltdoc="x">(buf-<wbr></wbr>rate-<wbr></wbr>scale rate bufnum)</a></td></tr><tr><td align="right">2.53 </td><td><a href="rsc3__ugens.html#%28part._sample-dur%29" class="tocviewlink" data-pltdoc="x">sample-<wbr></wbr>dur</a></td></tr><tr><td align="right">2.54 </td><td><a href="rsc3__ugens.html#%28part._sample-rate%29" class="tocviewlink" data-pltdoc="x">sample-<wbr></wbr>rate</a></td></tr><tr><td align="right">2.55 </td><td><a href="rsc3__ugens.html#%28part._radians-per-sample%29" class="tocviewlink" data-pltdoc="x">radians-<wbr></wbr>per-<wbr></wbr>sample</a></td></tr><tr><td align="right">2.56 </td><td><a href="rsc3__ugens.html#%28part.__buf-dur_rate_bufnum_%29" class="tocviewlink" data-pltdoc="x">(buf-<wbr></wbr>dur rate bufnum)</a></td></tr><tr><td align="right">2.57 </td><td><a href="rsc3__ugens.html#%28part.__buf-channels_rate_bufnum_%29" class="tocviewlink" data-pltdoc="x">(buf-<wbr></wbr>channels rate bufnum)</a></td></tr><tr><td align="right">2.58 </td><td><a href="rsc3__ugens.html#%28part.__buf-sample-rate_rate_bufnum_%29" class="tocviewlink" data-pltdoc="x">(buf-<wbr></wbr>sample-<wbr></wbr>rate rate bufnum)</a></td></tr><tr><td align="right">2.59 </td><td><a href="rsc3__ugens.html#%28part._num-audio-buses%29" class="tocviewlink" data-pltdoc="x">num-<wbr></wbr>audio-<wbr></wbr>buses</a></td></tr><tr><td align="right">2.60 </td><td><a href="rsc3__ugens.html#%28part._num-running-synths%29" class="tocviewlink" data-pltdoc="x">num-<wbr></wbr>running-<wbr></wbr>synths</a></td></tr><tr><td align="right">2.61 </td><td><a href="rsc3__ugens.html#%28part._subsample-offset%29" class="tocviewlink" data-pltdoc="x">subsample-<wbr></wbr>offset</a></td></tr><tr><td align="right">2.62 </td><td><a href="rsc3__ugens.html#%28part.__zero-crossing_in_%29" class="tocviewlink" data-pltdoc="x">(zero-<wbr></wbr>crossing in)</a></td></tr><tr><td align="right">2.63 </td><td><a href="rsc3__ugens.html#%28part.__slope_in_%29" class="tocviewlink" data-pltdoc="x">(slope in)</a></td></tr><tr><td align="right">2.64 </td><td><a href="rsc3__ugens.html#%28part.__running-sum_in_numsamp_%29" class="tocviewlink" data-pltdoc="x">(running-<wbr></wbr>sum in numsamp)</a></td></tr><tr><td align="right">2.65 </td><td><a href="rsc3__ugens.html#%28part.__pitch_in_init.Freq_min.Freq_max.Freq_exec.Freq_max.Bins.Per.Octave%29" class="tocviewlink" data-pltdoc="x">(pitch in init<span class="mywbr"> </span>Freq min<span class="mywbr"> </span>Freq max<span class="mywbr"> </span>Freq exec<span class="mywbr"> </span>Freq max<span class="mywbr"> </span>Bins<span class="mywbr"> </span>Per<span class="mywbr"> </span>Octave</a></td></tr><tr><td align="right">2.66 </td><td><a href="rsc3__ugens.html#%28part.__compander_input_control_thresh_slope.Below_slope.Above_clamp.Time_relax.Time_%29" class="tocviewlink" data-pltdoc="x">(compander input control thresh slope<span class="mywbr"> </span>Below slope<span class="mywbr"> </span>Above clamp<span class="mywbr"> </span>Time relax<span class="mywbr"> </span>Time)</a></td></tr><tr><td align="right">2.67 </td><td><a href="rsc3__ugens.html#%28part.__amplitude_rate_in_attack.Time_release.Time_%29" class="tocviewlink" data-pltdoc="x">(amplitude rate in attack<span class="mywbr"> </span>Time release<span class="mywbr"> </span>Time)</a></td></tr><tr><td align="right">2.68 </td><td><a href="rsc3__ugens.html#%28part.__pulse-divider_trig_div_start_%29" class="tocviewlink" data-pltdoc="x">(pulse-<wbr></wbr>divider trig div start)</a></td></tr><tr><td align="right">2.69 </td><td><a href="rsc3__ugens.html#%28part.__gate_in_trig_%29" class="tocviewlink" data-pltdoc="x">(gate in trig)</a></td></tr><tr><td align="right">2.70 </td><td><a href="rsc3__ugens.html#%28part.__poll_trig_in_trigid_label_%29" class="tocviewlink" data-pltdoc="x">(poll trig in trigid label)</a></td></tr><tr><td align="right">2.71 </td><td><a href="rsc3__ugens.html#%28part.__most-change_a_b_%29" class="tocviewlink" data-pltdoc="x">(most-<wbr></wbr>change a b)</a></td></tr><tr><td align="right">2.72 </td><td><a href="rsc3__ugens.html#%28part.__trig_in_dur_%29" class="tocviewlink" data-pltdoc="x">(trig in dur)</a></td></tr><tr><td align="right">2.73 </td><td><a href="rsc3__ugens.html#%28part.__pulse-count_trig_reset_%29" class="tocviewlink" data-pltdoc="x">(pulse-<wbr></wbr>count trig reset)</a></td></tr><tr><td align="right">2.74 </td><td><a href="rsc3__ugens.html#%28part.__stepper_trig_reset_min_max_step_resetval_%29" class="tocviewlink" data-pltdoc="x">(stepper trig reset min max step resetval)</a></td></tr><tr><td align="right">2.75 </td><td><a href="rsc3__ugens.html#%28part.__last-value_in_diff_%29" class="tocviewlink" data-pltdoc="x">(last-<wbr></wbr>value in diff)</a></td></tr><tr><td align="right">2.76 </td><td><a href="rsc3__ugens.html#%28part.__peak-follower_in_decay_%29" class="tocviewlink" data-pltdoc="x">(peak-<wbr></wbr>follower in decay)</a></td></tr><tr><td align="right">2.77 </td><td><a href="rsc3__ugens.html#%28part.__running-max_in_trig_%29" class="tocviewlink" data-pltdoc="x">(running-<wbr></wbr>max in trig)</a></td></tr><tr><td align="right">2.78 </td><td><a href="rsc3__ugens.html#%28part.__trig1_in_dur_%29" class="tocviewlink" data-pltdoc="x">(trig1 in dur)</a></td></tr><tr><td align="right">2.79 </td><td><a href="rsc3__ugens.html#%28part.__phasor_trig_rate_start_end_resetpos_%29" class="tocviewlink" data-pltdoc="x">(phasor trig rate start end resetpos)</a></td></tr><tr><td align="right">2.80 </td><td><a href="rsc3__ugens.html#%28part.__schmidt_in_lo_hi_%29" class="tocviewlink" data-pltdoc="x">(schmidt in lo hi)</a></td></tr><tr><td align="right">2.81 </td><td><a href="rsc3__ugens.html#%28part.__peak_trig_reset_%29" class="tocviewlink" data-pltdoc="x">(peak trig reset)</a></td></tr><tr><td align="right">2.82 </td><td><a href="rsc3__ugens.html#%28part.__toggle-ff_trig_%29" class="tocviewlink" data-pltdoc="x">(toggle-<wbr></wbr>ff trig)</a></td></tr><tr><td align="right">2.83 </td><td><a href="rsc3__ugens.html#%28part.__sweep_trig_rate_%29" class="tocviewlink" data-pltdoc="x">(sweep trig rate)</a></td></tr><tr><td align="right">2.84 </td><td><a href="rsc3__ugens.html#%28part.__send-trig_in_id_value_%29" class="tocviewlink" data-pltdoc="x">(send-<wbr></wbr>trig in id value)</a></td></tr><tr><td align="right">2.85 </td><td><a href="rsc3__ugens.html#%28part.__in-range_in_lo_hi_%29" class="tocviewlink" data-pltdoc="x">(in-<wbr></wbr>range in lo hi)</a></td></tr><tr><td align="right">2.86 </td><td><a href="rsc3__ugens.html#%28part.__timer_trig_%29" class="tocviewlink" data-pltdoc="x">(timer trig)</a></td></tr><tr><td align="right">2.87 </td><td><a href="rsc3__ugens.html#%28part.__t-delay_trigger_delay.Time_%29" class="tocviewlink" data-pltdoc="x">(t-<wbr></wbr>delay trigger delay<span class="mywbr"> </span>Time)</a></td></tr><tr><td align="right">2.88 </td><td><a href="rsc3__ugens.html#%28part.__running-min_in_trig_%29" class="tocviewlink" data-pltdoc="x">(running-<wbr></wbr>min in trig)</a></td></tr><tr><td align="right">2.89 </td><td><a href="rsc3__ugens.html#%28part.__set-reset-ff_trig_reset_%29" class="tocviewlink" data-pltdoc="x">(set-<wbr></wbr>reset-<wbr></wbr>ff trig reset)</a></td></tr><tr><td align="right">2.90 </td><td><a href="rsc3__ugens.html#%28part.__saw_rate_freq_%29" class="tocviewlink" data-pltdoc="x">(saw rate freq)</a></td></tr><tr><td align="right">2.91 </td><td><a href="rsc3__ugens.html#%28part.__pm-osc_rate_carfreq_modfreq_index_modphase_%29" class="tocviewlink" data-pltdoc="x">(pm-<wbr></wbr>osc rate carfreq modfreq index modphase)</a></td></tr><tr><td align="right">2.92 </td><td><a href="rsc3__ugens.html#%28part.__lf-tri_rate_freq_iphase_%29" class="tocviewlink" data-pltdoc="x">(lf-<wbr></wbr>tri rate freq iphase)</a></td></tr><tr><td align="right">2.93 </td><td><a href="rsc3__ugens.html#%28part.__t-grains_num.Channels_trigger_bufnum_rate_center.Pos_dur_pan_amp_interp_%29" class="tocviewlink" data-pltdoc="x">(t-<wbr></wbr>grains num<span class="mywbr"> </span>Channels trigger bufnum rate center<span class="mywbr"> </span>Pos dur pan amp interp)</a></td></tr><tr><td align="right">2.94 </td><td><a href="rsc3__ugens.html#%28part.__tw-index_in_normalize_array_%29" class="tocviewlink" data-pltdoc="x">(tw-<wbr></wbr>index in normalize array)</a></td></tr><tr><td align="right">2.95 </td><td><a href="rsc3__ugens.html#%28part.__osc-n_rate_bufnum_freq_phase_%29" class="tocviewlink" data-pltdoc="x">(osc-<wbr></wbr>n rate bufnum freq phase)</a></td></tr><tr><td align="right">2.96 </td><td><a href="rsc3__ugens.html#%28part.__osc_rate_bufnum_freq_phase_%29" class="tocviewlink" data-pltdoc="x">(osc rate bufnum freq phase)</a></td></tr><tr><td align="right">2.97 </td><td><a href="rsc3__ugens.html#%28part.__lf-saw_rate_freq_iphase_%29" class="tocviewlink" data-pltdoc="x">(lf-<wbr></wbr>saw rate freq iphase)</a></td></tr><tr><td align="right">2.98 </td><td><a href="rsc3__ugens.html#%28part.__tw-choose_trig_array_weights_normalize_%29" class="tocviewlink" data-pltdoc="x">(tw-<wbr></wbr>choose trig array weights normalize)</a></td></tr><tr><td align="right">2.99 </td><td><a href="rsc3__ugens.html#%28part._gendy1%29" class="tocviewlink" data-pltdoc="x">gendy1</a></td></tr><tr><td align="right">2.100 </td><td><a href="rsc3__ugens.html#%28part.__pulse_rate_freq_width_%29" class="tocviewlink" data-pltdoc="x">(pulse rate freq width)</a></td></tr><tr><td align="right">2.101 </td><td><a href="rsc3__ugens.html#%28part.__shaper_bufnum_in_%29" class="tocviewlink" data-pltdoc="x">(shaper bufnum in)</a></td></tr><tr><td align="right">2.102 </td><td><a href="rsc3__ugens.html#%28part._.S.C2__.Note_extra_iphase_argument_%29" class="tocviewlink" data-pltdoc="x">SC2:<span class="mywbr"> </span> Note extra iphase argument.</a></td></tr><tr><td align="right">2.103 </td><td><a href="rsc3__ugens.html#%28part.__v-osc_rate_bufpos_freq_phase_%29" class="tocviewlink" data-pltdoc="x">(v-<wbr></wbr>osc rate bufpos freq phase)</a></td></tr><tr><td align="right">2.104 </td><td><a href="rsc3__ugens.html#%28part.__var-saw_rate_freq_iphasewidth_%29" class="tocviewlink" data-pltdoc="x">(var-<wbr></wbr>saw rate freq iphasewidth)</a></td></tr><tr><td align="right">2.105 </td><td><a href="rsc3__ugens.html#%28part._buf-wr%29" class="tocviewlink" data-pltdoc="x">buf-<wbr></wbr>wr</a></td></tr><tr><td align="right">2.106 </td><td><a href="rsc3__ugens.html#%28part._impulse%29" class="tocviewlink" data-pltdoc="x">impulse</a></td></tr><tr><td align="right">2.107 </td><td><a href="rsc3__ugens.html#%28part._blip%29" class="tocviewlink" data-pltdoc="x">blip</a></td></tr><tr><td align="right">2.108 </td><td><a href="rsc3__ugens.html#%28part.__select_which_array_%29" class="tocviewlink" data-pltdoc="x">(select which array)</a></td></tr><tr><td align="right">2.109 </td><td><a href="rsc3__ugens.html#%28part._formant%29" class="tocviewlink" data-pltdoc="x">formant</a></td></tr><tr><td align="right">2.110 </td><td><a href="rsc3__ugens.html#%28part._c-osc%29" class="tocviewlink" data-pltdoc="x">c-<wbr></wbr>osc</a></td></tr><tr><td align="right">2.111 </td><td><a href="rsc3__ugens.html#%28part.__v-osc3_rate_bufpos_freq1_freq2_freq3_%29" class="tocviewlink" data-pltdoc="x">(v-<wbr></wbr>osc3 rate bufpos freq1 freq2 freq3)</a></td></tr><tr><td align="right">2.112 </td><td><a href="rsc3__ugens.html#%28part.__lf-cub_rate_freq_iphase_%29" class="tocviewlink" data-pltdoc="x">(lf-<wbr></wbr>cub rate freq iphase)</a></td></tr><tr><td align="right">2.113 </td><td><a href="rsc3__ugens.html#%28part.__lf-pulse_rate_freq_iphase_width_%29" class="tocviewlink" data-pltdoc="x">(lf-<wbr></wbr>pulse rate freq iphase width)</a></td></tr><tr><td align="right">2.114 </td><td><a href="rsc3__ugens.html#%28part._index%29" class="tocviewlink" data-pltdoc="x">index</a></td></tr><tr><td align="right">2.115 </td><td><a href="rsc3__ugens.html#%28part._.See_lf-cub_%29" class="tocviewlink" data-pltdoc="x">See lf-<wbr></wbr>cub.</a></td></tr><tr><td align="right">2.116 </td><td><a href="rsc3__ugens.html#%28part.__sync-saw_rate_sync.Freq_saw.Freq_%29" class="tocviewlink" data-pltdoc="x">(sync-<wbr></wbr>saw rate sync<span class="mywbr"> </span>Freq saw<span class="mywbr"> </span>Freq)</a></td></tr><tr><td align="right">2.117 </td><td><a href="rsc3__ugens.html#%28part.__t-choose_trig_array_%29" class="tocviewlink" data-pltdoc="x">(t-<wbr></wbr>choose trig array)</a></td></tr><tr><td align="right">2.118 </td><td><a href="rsc3__ugens.html#%28part.__sin-osc_rate_freq_phase_%29" class="tocviewlink" data-pltdoc="x">(sin-<wbr></wbr>osc rate freq phase)</a></td></tr><tr><td align="right">2.119 </td><td><a href="rsc3__ugens.html#%28part.__klang_rate_freq.Scale_freq.Offset_spec_%29" class="tocviewlink" data-pltdoc="x">(klang rate freq<span class="mywbr"> </span>Scale freq<span class="mywbr"> </span>Offset spec)</a></td></tr><tr><td align="right">2.120 </td><td><a href="rsc3__ugens.html#%28part.__lag-in_num-channels_bus_lag_%29" class="tocviewlink" data-pltdoc="x">(lag-<wbr></wbr>in num-<wbr></wbr>channels bus lag)</a></td></tr><tr><td align="right">2.121 </td><td><a href="rsc3__ugens.html#%28part.__sound-in_channel_%29" class="tocviewlink" data-pltdoc="x">(sound-<wbr></wbr>in channel)</a></td></tr><tr><td align="right">2.122 </td><td><a href="rsc3__ugens.html#%28part.__in_num-channels_rate_bus_%29" class="tocviewlink" data-pltdoc="x">(in num-<wbr></wbr>channels rate bus)</a></td></tr><tr><td align="right">2.123 </td><td><a href="rsc3__ugens.html#%28part.__in-trig_num-channels_bus_%29" class="tocviewlink" data-pltdoc="x">(in-<wbr></wbr>trig num-<wbr></wbr>channels bus)</a></td></tr><tr><td align="right">2.124 </td><td><a href="rsc3__ugens.html#%28part.__replace-out_bufferindex_inputs_%29" class="tocviewlink" data-pltdoc="x">(replace-<wbr></wbr>out bufferindex inputs)</a></td></tr><tr><td align="right">2.125 </td><td><a href="rsc3__ugens.html#%28part.__local-in_num-channels_rate_%29" class="tocviewlink" data-pltdoc="x">(local-<wbr></wbr>in num-<wbr></wbr>channels rate)</a></td></tr><tr><td align="right">2.126 </td><td><a href="rsc3__ugens.html#%28part.__offset-out_bufferindex_inputs_%29" class="tocviewlink" data-pltdoc="x">(offset-<wbr></wbr>out bufferindex inputs)</a></td></tr><tr><td align="right">2.127 </td><td><a href="rsc3__ugens.html#%28part.__in-feedback_num-channels_bus_%29" class="tocviewlink" data-pltdoc="x">(in-<wbr></wbr>feedback num-<wbr></wbr>channels bus)</a></td></tr><tr><td align="right">2.128 </td><td><a href="rsc3__ugens.html#%28part.__x-out_buffer-index_xfade_inputs_%29" class="tocviewlink" data-pltdoc="x">(x-<wbr></wbr>out buffer-<wbr></wbr>index xfade inputs)</a></td></tr><tr><td align="right">2.129 </td><td><a href="rsc3__ugens.html#%28part.__out_bufferindex_inputs_%29" class="tocviewlink" data-pltdoc="x">(out bufferindex inputs)</a></td></tr><tr><td align="right">2.130 </td><td><a href="rsc3__ugens.html#%28part.__mix_.U.Gen_%29" class="tocviewlink" data-pltdoc="x">(mix UGen)</a></td></tr><tr><td align="right">2.131 </td><td><a href="rsc3__ugens.html#%28part.__mix-fill_n_f_%29" class="tocviewlink" data-pltdoc="x">(mix-<wbr></wbr>fill n f)</a></td></tr><tr><td align="right">2.132 </td><td><a href="rsc3__ugens.html#%28part.__latch_in_trig_%29" class="tocviewlink" data-pltdoc="x">(latch in trig)</a></td></tr><tr><td align="right">2.133 </td><td><a href="rsc3__ugens.html#%28part.__decay_in_decay.Time_%29" class="tocviewlink" data-pltdoc="x">(decay in decay<span class="mywbr"> </span>Time)</a></td></tr><tr><td align="right">2.134 </td><td><a href="rsc3__ugens.html#%28part.__wrap-index_bufnum_in_%29" class="tocviewlink" data-pltdoc="x">(wrap-<wbr></wbr>index bufnum in)</a></td></tr><tr><td align="right">2.135 </td><td><a href="rsc3__ugens.html#%28part.__mouse-y_rate_minval_maxval_warp_lag_%29" class="tocviewlink" data-pltdoc="x">(mouse-<wbr></wbr>y rate minval maxval warp lag)</a></td></tr><tr><td align="right">2.136 </td><td><a href="rsc3__ugens.html#%28part.__degree-to-key_bufnum_in_octave_%29" class="tocviewlink" data-pltdoc="x">(degree-<wbr></wbr>to-<wbr></wbr>key bufnum in octave)</a></td></tr><tr><td align="right">2.137 </td><td><a href="rsc3__ugens.html#%28part.__key-state_rate_keynum_minval_maxval_lag_%29" class="tocviewlink" data-pltdoc="x">(key-<wbr></wbr>state rate keynum minval maxval lag)</a></td></tr><tr><td align="right">2.138 </td><td><a href="rsc3__ugens.html#%28part.__mrg2_left_right_%29" class="tocviewlink" data-pltdoc="x">(mrg2 left right)</a></td></tr><tr><td align="right">2.139 </td><td><a href="rsc3__ugens.html#%28part.__mouse-button_rate_minval_maxval_lag_%29" class="tocviewlink" data-pltdoc="x">(mouse-<wbr></wbr>button rate minval maxval lag)</a></td></tr><tr><td align="right">2.140 </td><td><a href="rsc3__ugens.html#%28part.__slew_in_up_dn_%29" class="tocviewlink" data-pltdoc="x">(slew in up dn)</a></td></tr><tr><td align="right">2.141 </td><td><a href="rsc3__ugens.html#%28part.__mouse-x_rate_minval_maxval_warp_lag_%29" class="tocviewlink" data-pltdoc="x">(mouse-<wbr></wbr>x rate minval maxval warp lag)</a></td></tr><tr><td align="right">2.142 </td><td><a href="rsc3__ugens.html#%28part.__decay2_in_attack.Time_decay.Time_%29" class="tocviewlink" data-pltdoc="x">(decay2 in attack<span class="mywbr"> </span>Time decay<span class="mywbr"> </span>Time)</a></td></tr><tr><td align="right">2.143 </td><td><a href="rsc3__ugens.html#%28part.__k2a_in_%29" class="tocviewlink" data-pltdoc="x">(k2a in)</a></td></tr><tr><td align="right">2.144 </td><td><a href="rsc3__ugens.html#%28part.__mul-add_a_b_c_%29" class="tocviewlink" data-pltdoc="x">(mul-<wbr></wbr>add a b c)</a></td></tr><tr><td align="right">2.145 </td><td><a href="rsc3__ugens.html#%28part.__clip2_a_b_%29" class="tocviewlink" data-pltdoc="x">(clip2 a b)</a></td></tr><tr><td align="right">2.146 </td><td><a href="rsc3__ugens.html#%28part.__.Atan2_x_y_%29" class="tocviewlink" data-pltdoc="x">(Atan2 x y)</a></td></tr><tr><td align="right">2.147 </td><td><a href="rsc3__ugens.html#%28part.__trunc_a_b_%29" class="tocviewlink" data-pltdoc="x">(trunc a b)</a></td></tr><tr><td align="right">2.148 </td><td><a href="rsc3__ugens.html#%28part.__sub_a_b_%29" class="tocviewlink" data-pltdoc="x">(sub a b)</a></td></tr><tr><td align="right">2.149 </td><td><a href="rsc3__ugens.html#%28part.__round-up_a_b_%29" class="tocviewlink" data-pltdoc="x">(round-<wbr></wbr>up a b)</a></td></tr><tr><td align="right">2.150 </td><td><a href="rsc3__ugens.html#%28part.__ring4_a_b_%29" class="tocviewlink" data-pltdoc="x">(ring4 a b)</a></td></tr><tr><td align="right">2.151 </td><td><a href="rsc3__ugens.html#%28part.__pow_a_b_%29" class="tocviewlink" data-pltdoc="x">(pow a b)</a></td></tr><tr><td align="right">2.152 </td><td><a href="rsc3__ugens.html#%28part.__ring1_a_b_%29" class="tocviewlink" data-pltdoc="x">(ring1 a b)</a></td></tr><tr><td align="right">2.153 </td><td><a href="rsc3__ugens.html#%28part.__gt_a_b_%29" class="tocviewlink" data-pltdoc="x">(gt a b)</a></td></tr><tr><td align="right">2.154 </td><td><a href="rsc3__ugens.html#%28part.__add_a_b_%29" class="tocviewlink" data-pltdoc="x">(add a b)</a></td></tr><tr><td align="right">2.155 </td><td><a href="rsc3__ugens.html#%28part.__abs-dif_a_b_%29" class="tocviewlink" data-pltdoc="x">(abs-<wbr></wbr>dif a b)</a></td></tr><tr><td align="right">2.156 </td><td><a href="rsc3__ugens.html#%28part.__am-clip_a_b_%29" class="tocviewlink" data-pltdoc="x">(am-<wbr></wbr>clip a b)</a></td></tr><tr><td align="right">2.157 </td><td><a href="rsc3__ugens.html#%28part.__ge_a_b_%29" class="tocviewlink" data-pltdoc="x">(ge a b)</a></td></tr><tr><td align="right">2.158 </td><td><a href="rsc3__ugens.html#%28part.__max_a_b_%29" class="tocviewlink" data-pltdoc="x">(max a b)</a></td></tr><tr><td align="right">2.159 </td><td><a href="rsc3__ugens.html#%28part.__ring3_a_b_%29" class="tocviewlink" data-pltdoc="x">(ring3 a b)</a></td></tr><tr><td align="right">2.160 </td><td><a href="rsc3__ugens.html#%28part.__thresh_a_b_%29" class="tocviewlink" data-pltdoc="x">(thresh a b)</a></td></tr><tr><td align="right">2.161 </td><td><a href="rsc3__ugens.html#%28part.__dif-sqr_a_b_%29" class="tocviewlink" data-pltdoc="x">(dif-<wbr></wbr>sqr a b)</a></td></tr><tr><td align="right">2.162 </td><td><a href="rsc3__ugens.html#%28part.__excess_a_b_%29" class="tocviewlink" data-pltdoc="x">(excess a b)</a></td></tr><tr><td align="right">2.163 </td><td><a href="rsc3__ugens.html#%28part.__fold2_a_b_%29" class="tocviewlink" data-pltdoc="x">(fold2 a b)</a></td></tr><tr><td align="right">2.164 </td><td><a href="rsc3__ugens.html#%28part.__sqr-dif_a_b_%29" class="tocviewlink" data-pltdoc="x">(sqr-<wbr></wbr>dif a b)</a></td></tr><tr><td align="right">2.165 </td><td><a href="rsc3__ugens.html#%28part.__hypot_x_y_%29" class="tocviewlink" data-pltdoc="x">(hypot x y)</a></td></tr><tr><td align="right">2.166 </td><td><a href="rsc3__ugens.html#%28part.__sqr-sum_a_b_%29" class="tocviewlink" data-pltdoc="x">(sqr-<wbr></wbr>sum a b)</a></td></tr><tr><td align="right">2.167 </td><td><a href="rsc3__ugens.html#%28part.__sum-sqr_a_b_%29" class="tocviewlink" data-pltdoc="x">(sum-<wbr></wbr>sqr a b)</a></td></tr><tr><td align="right">2.168 </td><td><a href="rsc3__ugens.html#%28part.__le_a_b_%29" class="tocviewlink" data-pltdoc="x">(le a b)</a></td></tr><tr><td align="right">2.169 </td><td><a href="rsc3__ugens.html#%28part._eq%29" class="tocviewlink" data-pltdoc="x">eq</a></td></tr><tr><td align="right">2.170 </td><td><a href="rsc3__ugens.html#%28part.__scale-neg_a_b_%29" class="tocviewlink" data-pltdoc="x">(scale-<wbr></wbr>neg a b)</a></td></tr><tr><td align="right">2.171 </td><td><a href="rsc3__ugens.html#%28part.__ring2_a_b_%29" class="tocviewlink" data-pltdoc="x">(ring2 a b)</a></td></tr><tr><td align="right">2.172 </td><td><a href="rsc3__ugens.html#%28part.__.Mod_a_b_%29" class="tocviewlink" data-pltdoc="x">(Mod a b)</a></td></tr><tr><td align="right">2.173 </td><td><a href="rsc3__ugens.html#%28part.__fdiv_a_b_%29" class="tocviewlink" data-pltdoc="x">(fdiv a b)</a></td></tr><tr><td align="right">2.174 </td><td><a href="rsc3__ugens.html#%28part.__mul_a_b_%29" class="tocviewlink" data-pltdoc="x">(mul a b)</a></td></tr><tr><td align="right">2.175 </td><td><a href="rsc3__ugens.html#%28part.__min_a_b_%29" class="tocviewlink" data-pltdoc="x">(min a b)</a></td></tr><tr><td align="right">2.176 </td><td><a href="rsc3__ugens.html#%28part.__lt_a_b_%29" class="tocviewlink" data-pltdoc="x">(lt a b)</a></td></tr><tr><td align="right">2.177 </td><td><a href="rsc3__ugens.html#%28part.__wrap2_a_b_%29" class="tocviewlink" data-pltdoc="x">(wrap2 a b)</a></td></tr><tr><td align="right">2.178 </td><td><a href="rsc3__ugens.html#%28part.__round_a_b_%29" class="tocviewlink" data-pltdoc="x">(round a b)</a></td></tr><tr><td align="right">2.179 </td><td><a href="rsc3__ugens.html#%28part.__hasher_in_%29" class="tocviewlink" data-pltdoc="x">(hasher in)</a></td></tr><tr><td align="right">2.180 </td><td><a href="rsc3__ugens.html#%28part.__rand-seed_rate_trig_seed_%29" class="tocviewlink" data-pltdoc="x">(rand-<wbr></wbr>seed rate trig seed)</a></td></tr><tr><td align="right">2.181 </td><td><a href="rsc3__ugens.html#%28part.__lfd-noise0_rate_freq_%29" class="tocviewlink" data-pltdoc="x">(lfd-<wbr></wbr>noise0 rate freq)</a></td></tr><tr><td align="right">2.182 </td><td><a href="rsc3__ugens.html#%28part.__lfclip-noise_rate_freq_%29" class="tocviewlink" data-pltdoc="x">(lfclip-<wbr></wbr>noise rate freq)</a></td></tr><tr><td align="right">2.183 </td><td><a href="rsc3__ugens.html#%28part._.See_lf-noise0%29" class="tocviewlink" data-pltdoc="x">See lf-<wbr></wbr>noise0</a></td></tr><tr><td align="right">2.184 </td><td><a href="rsc3__ugens.html#%28part.__clip-noise_rate_%29" class="tocviewlink" data-pltdoc="x">(clip-<wbr></wbr>noise rate)</a></td></tr><tr><td align="right">2.185 </td><td><a href="rsc3__ugens.html#%28part.__ti-rand_lo_hi_trig_%29" class="tocviewlink" data-pltdoc="x">(ti-<wbr></wbr>rand lo hi trig)</a></td></tr><tr><td align="right">2.186 </td><td><a href="rsc3__ugens.html#%28part.__lf-noise0_rate_freq_%29" class="tocviewlink" data-pltdoc="x">(lf-<wbr></wbr>noise0 rate freq)</a></td></tr><tr><td align="right">2.187 </td><td><a href="rsc3__ugens.html#%28part.__pink-noise_rate_%29" class="tocviewlink" data-pltdoc="x">(pink-<wbr></wbr>noise rate)</a></td></tr><tr><td align="right">2.188 </td><td><a href="rsc3__ugens.html#%28part.__rand_lo_hi_%29" class="tocviewlink" data-pltdoc="x">(rand lo hi)</a></td></tr><tr><td align="right">2.189 </td><td><a href="rsc3__ugens.html#%28part.__gray-noise_rate_%29" class="tocviewlink" data-pltdoc="x">(gray-<wbr></wbr>noise rate)</a></td></tr><tr><td align="right">2.190 </td><td><a href="rsc3__ugens.html#%28part._.See_lfd-noise0%29" class="tocviewlink" data-pltdoc="x">See lfd-<wbr></wbr>noise0</a></td></tr><tr><td align="right">2.191 </td><td><a href="rsc3__ugens.html#%28part.__i-rand_lo_hi_%29" class="tocviewlink" data-pltdoc="x">(i-<wbr></wbr>rand lo hi)</a></td></tr><tr><td align="right">2.192 </td><td><a href="rsc3__ugens.html#%28part.__n-rand_lo_hi_n_%29" class="tocviewlink" data-pltdoc="x">(n-<wbr></wbr>rand lo hi n)</a></td></tr><tr><td align="right">2.193 </td><td><a href="rsc3__ugens.html#%28part.__lfdclip-noise_rate_freq_%29" class="tocviewlink" data-pltdoc="x">(lfdclip-<wbr></wbr>noise rate freq)</a></td></tr><tr><td align="right">2.194 </td><td><a href="rsc3__ugens.html#%28part.__coin-gate_prob_in_%29" class="tocviewlink" data-pltdoc="x">(coin-<wbr></wbr>gate prob in)</a></td></tr><tr><td align="right">2.195 </td><td><a href="rsc3__ugens.html#%28part.__t-exp-rand_lo_hi_trig_%29" class="tocviewlink" data-pltdoc="x">(t-<wbr></wbr>exp-<wbr></wbr>rand lo hi trig)</a></td></tr><tr><td align="right">2.196 </td><td><a href="rsc3__ugens.html#%28part.__t-rand_lo_hi_trig_%29" class="tocviewlink" data-pltdoc="x">(t-<wbr></wbr>rand lo hi trig)</a></td></tr><tr><td align="right">2.197 </td><td><a href="rsc3__ugens.html#%28part.__white-noise_rate_%29" class="tocviewlink" data-pltdoc="x">(white-<wbr></wbr>noise rate)</a></td></tr><tr><td align="right">2.198 </td><td><a href="rsc3__ugens.html#%28part.__dust2_rate_density_%29" class="tocviewlink" data-pltdoc="x">(dust2 rate density)</a></td></tr><tr><td align="right">2.199 </td><td><a href="rsc3__ugens.html#%28part._.See_lfd-noise0%29" class="tocviewlink" data-pltdoc="x">See lfd-<wbr></wbr>noise0</a></td></tr><tr><td align="right">2.200 </td><td><a href="rsc3__ugens.html#%28part.__rand-id_rate_id_%29" class="tocviewlink" data-pltdoc="x">(rand-<wbr></wbr>id rate id)</a></td></tr><tr><td align="right">2.201 </td><td><a href="rsc3__ugens.html#%28part._.See_lf-noise0%29" class="tocviewlink" data-pltdoc="x">See lf-<wbr></wbr>noise0</a></td></tr><tr><td align="right">2.202 </td><td><a href="rsc3__ugens.html#%28part.__mantissa-mask_in_bits_%29" class="tocviewlink" data-pltdoc="x">(mantissa-<wbr></wbr>mask in bits)</a></td></tr><tr><td align="right">2.203 </td><td><a href="rsc3__ugens.html#%28part.__dust_rate_density_%29" class="tocviewlink" data-pltdoc="x">(dust rate density)</a></td></tr><tr><td align="right">2.204 </td><td><a href="rsc3__ugens.html#%28part.__lin-rand_lo_hi_minmax_%29" class="tocviewlink" data-pltdoc="x">(lin-<wbr></wbr>rand lo hi minmax)</a></td></tr><tr><td align="right">2.205 </td><td><a href="rsc3__ugens.html#%28part.__exp-rand_lo_hi_%29" class="tocviewlink" data-pltdoc="x">(exp-<wbr></wbr>rand lo hi)</a></td></tr><tr><td align="right">2.206 </td><td><a href="rsc3__ugens.html#%28part.__brown-noise_rate_%29" class="tocviewlink" data-pltdoc="x">(brown-<wbr></wbr>noise rate)</a></td></tr><tr><td align="right">2.207 </td><td><a href="rsc3__ugens.html#%28part.__u_log_a_%29" class="tocviewlink" data-pltdoc="x">(u:<span class="mywbr"> </span>log a)</a></td></tr><tr><td align="right">2.208 </td><td><a href="rsc3__ugens.html#%28part.__frac_a_%29" class="tocviewlink" data-pltdoc="x">(frac a)</a></td></tr><tr><td align="right">2.209 </td><td><a href="rsc3__ugens.html#%28part.__arc-tan_a_%29" class="tocviewlink" data-pltdoc="x">(arc-<wbr></wbr>tan a)</a></td></tr><tr><td align="right">2.210 </td><td><a href="rsc3__ugens.html#%28part.__distort_a_%29" class="tocviewlink" data-pltdoc="x">(distort a)</a></td></tr><tr><td align="right">2.211 </td><td><a href="rsc3__ugens.html#%28part.__tan-h_a_%29" class="tocviewlink" data-pltdoc="x">(tan-<wbr></wbr>h a)</a></td></tr><tr><td align="right">2.212 </td><td><a href="rsc3__ugens.html#%28part.__u_floor_a_%29" class="tocviewlink" data-pltdoc="x">(u:<span class="mywbr"> </span>floor a)</a></td></tr><tr><td align="right">2.213 </td><td><a href="rsc3__ugens.html#%28part.__cps-oct_a_%29" class="tocviewlink" data-pltdoc="x">(cps-<wbr></wbr>oct a)</a></td></tr><tr><td align="right">2.214 </td><td><a href="rsc3__ugens.html#%28part.__db-amp_a_%29" class="tocviewlink" data-pltdoc="x">(db-<wbr></wbr>amp a)</a></td></tr><tr><td align="right">2.215 </td><td><a href="rsc3__ugens.html#%28part.__u_sqrt_a_%29" class="tocviewlink" data-pltdoc="x">(u:<span class="mywbr"> </span>sqrt a)</a></td></tr><tr><td align="right">2.216 </td><td><a href="rsc3__ugens.html#%28part.__soft-clip_a_%29" class="tocviewlink" data-pltdoc="x">(soft-<wbr></wbr>clip a)</a></td></tr><tr><td align="right">2.217 </td><td><a href="rsc3__ugens.html#%28part.__cps-midi_a_%29" class="tocviewlink" data-pltdoc="x">(cps-<wbr></wbr>midi a)</a></td></tr><tr><td align="right">2.218 </td><td><a href="rsc3__ugens.html#%28part.__is-strictly-positive_a_%29" class="tocviewlink" data-pltdoc="x">(is-<wbr></wbr>strictly-<wbr></wbr>positive a)</a></td></tr><tr><td align="right">2.219 </td><td><a href="rsc3__ugens.html#%28part.__u_tan_a_%29" class="tocviewlink" data-pltdoc="x">(u:<span class="mywbr"> </span>tan a)</a></td></tr><tr><td align="right">2.220 </td><td><a href="rsc3__ugens.html#%28part.__cos-h_a_%29" class="tocviewlink" data-pltdoc="x">(cos-<wbr></wbr>h a)</a></td></tr><tr><td align="right">2.221 </td><td><a href="rsc3__ugens.html#%28part.__amp-db_a_%29" class="tocviewlink" data-pltdoc="x">(amp-<wbr></wbr>db a)</a></td></tr><tr><td align="right">2.222 </td><td><a href="rsc3__ugens.html#%28part.__abs_a_%29" class="tocviewlink" data-pltdoc="x">(abs a)</a></td></tr><tr><td align="right">2.223 </td><td><a href="rsc3__ugens.html#%28part.__log10_a_%29" class="tocviewlink" data-pltdoc="x">(log10 a)</a></td></tr><tr><td align="right">2.224 </td><td><a href="rsc3__ugens.html#%28part.__midi-cps_a_%29" class="tocviewlink" data-pltdoc="x">(midi-<wbr></wbr>cps a)</a></td></tr><tr><td align="right">2.225 </td><td><a href="rsc3__ugens.html#%28part.__is-positive_a_%29" class="tocviewlink" data-pltdoc="x">(is-<wbr></wbr>positive a)</a></td></tr><tr><td align="right">2.226 </td><td><a href="rsc3__ugens.html#%28part.__sign_a_%29" class="tocviewlink" data-pltdoc="x">(sign a)</a></td></tr><tr><td align="right">2.227 </td><td><a href="rsc3__ugens.html#%28part.__neg_a_%29" class="tocviewlink" data-pltdoc="x">(neg a)</a></td></tr><tr><td align="right">2.228 </td><td><a href="rsc3__ugens.html#%28part.__log2_a_%29" class="tocviewlink" data-pltdoc="x">(log2 a)</a></td></tr><tr><td align="right">2.229 </td><td><a href="rsc3__ugens.html#%28part.__ceil_a_%29" class="tocviewlink" data-pltdoc="x">(ceil a)</a></td></tr><tr><td align="right">2.230 </td><td><a href="rsc3__ugens.html#%28part.__arc-cos_a_%29" class="tocviewlink" data-pltdoc="x">(arc-<wbr></wbr>cos a)</a></td></tr><tr><td align="right">2.231 </td><td><a href="rsc3__ugens.html#%28part.__exp_a_%29" class="tocviewlink" data-pltdoc="x">(exp a)</a></td></tr><tr><td align="right">2.232 </td><td><a href="rsc3__ugens.html#%28part.__squared_a_%29" class="tocviewlink" data-pltdoc="x">(squared a)</a></td></tr><tr><td align="right">2.233 </td><td><a href="rsc3__ugens.html#%28part.__arc-sin_a_%29" class="tocviewlink" data-pltdoc="x">(arc-<wbr></wbr>sin a)</a></td></tr><tr><td align="right">2.234 </td><td><a href="rsc3__ugens.html#%28part.__cubed_a_%29" class="tocviewlink" data-pltdoc="x">(cubed a)</a></td></tr><tr><td align="right">2.235 </td><td><a href="rsc3__ugens.html#%28part.__is-negative_a_%29" class="tocviewlink" data-pltdoc="x">(is-<wbr></wbr>negative a)</a></td></tr><tr><td align="right">2.236 </td><td><a href="rsc3__ugens.html#%28part.__oct-cps_a_%29" class="tocviewlink" data-pltdoc="x">(oct-<wbr></wbr>cps a)</a></td></tr><tr><td align="right">2.237 </td><td><a href="rsc3__ugens.html#%28part.__u_sin_a_%29" class="tocviewlink" data-pltdoc="x">(u:<span class="mywbr"> </span>sin a)</a></td></tr><tr><td align="right">2.238 </td><td><a href="rsc3__ugens.html#%28part.__sin-h_a_%29" class="tocviewlink" data-pltdoc="x">(sin-<wbr></wbr>h a)</a></td></tr><tr><td align="right">2.239 </td><td><a href="rsc3__ugens.html#%28part.__cos_a_%29" class="tocviewlink" data-pltdoc="x">(cos a)</a></td></tr><tr><td align="right">2.240 </td><td><a href="rsc3__ugens.html#%28part.__pv-mul_buffer.A_buffer.B_%29" class="tocviewlink" data-pltdoc="x">(pv-<wbr></wbr>mul buffer<span class="mywbr"> </span>A buffer<span class="mywbr"> </span>B)</a></td></tr><tr><td align="right">2.241 </td><td><a href="rsc3__ugens.html#%28part.__pv-mag-squared_buffer_%29" class="tocviewlink" data-pltdoc="x">(pv-<wbr></wbr>mag-<wbr></wbr>squared buffer)</a></td></tr><tr><td align="right">2.242 </td><td><a href="rsc3__ugens.html#%28part.__pv-min_buffer.A_buffer.B_%29" class="tocviewlink" data-pltdoc="x">(pv-<wbr></wbr>min buffer<span class="mywbr"> </span>A buffer<span class="mywbr"> </span>B)</a></td></tr><tr><td align="right">2.243 </td><td><a href="rsc3__ugens.html#%28part.__pv-mag-noise_buffer_%29" class="tocviewlink" data-pltdoc="x">(pv-<wbr></wbr>mag-<wbr></wbr>noise buffer)</a></td></tr><tr><td align="right">2.244 </td><td><a href="rsc3__ugens.html#%28part.__pv-mag-below_buffer_threshold_%29" class="tocviewlink" data-pltdoc="x">(pv-<wbr></wbr>mag-<wbr></wbr>below buffer threshold)</a></td></tr><tr><td align="right">2.245 </td><td><a href="rsc3__ugens.html#%28part.__convolution_in_kernel_framesize_%29" class="tocviewlink" data-pltdoc="x">(convolution in kernel framesize)</a></td></tr><tr><td align="right">2.246 </td><td><a href="rsc3__ugens.html#%28part.__pv-jensen-andersen_buffer_propsc_prophfe_prophfc_propsf_threshold_waittime_%29" class="tocviewlink" data-pltdoc="x">(pv-<wbr></wbr>jensen-<wbr></wbr>andersen buffer propsc prophfe prophfc propsf threshold waittime)</a></td></tr><tr><td align="right">2.247 </td><td><a href="rsc3__ugens.html#%28part.__pv-phase-shift270_buffer_%29" class="tocviewlink" data-pltdoc="x">(pv-<wbr></wbr>phase-<wbr></wbr>shift270 buffer)</a></td></tr><tr><td align="right">2.248 </td><td><a href="rsc3__ugens.html#%28part.__pv-hainsworth-foote_buffer_proph_propf_threshold_waittime_%29" class="tocviewlink" data-pltdoc="x">(pv-<wbr></wbr>hainsworth-<wbr></wbr>foote buffer proph propf threshold waittime)</a></td></tr><tr><td align="right">2.249 </td><td><a href="rsc3__ugens.html#%28part.__pv-phase-shift_buffer_shift_%29" class="tocviewlink" data-pltdoc="x">(pv-<wbr></wbr>phase-<wbr></wbr>shift buffer shift)</a></td></tr><tr><td align="right">2.250 </td><td><a href="rsc3__ugens.html#%28part.__pv-copy_buffer.A_buffer.B_%29" class="tocviewlink" data-pltdoc="x">(pv-<wbr></wbr>copy buffer<span class="mywbr"> </span>A buffer<span class="mywbr"> </span>B)</a></td></tr><tr><td align="right">2.251 </td><td><a href="rsc3__ugens.html#%28part.__pv-brick-wall_buffer_wipe_%29" class="tocviewlink" data-pltdoc="x">(pv-<wbr></wbr>brick-<wbr></wbr>wall buffer wipe)</a></td></tr><tr><td align="right">2.252 </td><td><a href="rsc3__ugens.html#%28part.__pv-mag-smear_buffer_bins_%29" class="tocviewlink" data-pltdoc="x">(pv-<wbr></wbr>mag-<wbr></wbr>smear buffer bins)</a></td></tr><tr><td align="right">2.253 </td><td><a href="rsc3__ugens.html#%28part.__pv-mag-above_buffer_threshold_%29" class="tocviewlink" data-pltdoc="x">(pv-<wbr></wbr>mag-<wbr></wbr>above buffer threshold)</a></td></tr><tr><td align="right">2.254 </td><td><a href="rsc3__ugens.html#%28part.__pv-bin-shift_buffer_stretch_shift_%29" class="tocviewlink" data-pltdoc="x">(pv-<wbr></wbr>bin-<wbr></wbr>shift buffer stretch shift)</a></td></tr><tr><td align="right">2.255 </td><td><a href="rsc3__ugens.html#%28part.__fft_buffer_in_hop_wintype_active_%29" class="tocviewlink" data-pltdoc="x">(fft buffer in hop wintype active)</a></td></tr><tr><td align="right">2.256 </td><td><a href="rsc3__ugens.html#%28part.__pv-bin-wipe_buffer.A_buffer.B_wipe_%29" class="tocviewlink" data-pltdoc="x">(pv-<wbr></wbr>bin-<wbr></wbr>wipe buffer<span class="mywbr"> </span>A buffer<span class="mywbr"> </span>B wipe)</a></td></tr><tr><td align="right">2.257 </td><td><a href="rsc3__ugens.html#%28part.__pv-copy.Phase_buffer.A_buffer.B_%29" class="tocviewlink" data-pltdoc="x">(pv-<wbr></wbr>copy<span class="mywbr"> </span>Phase buffer<span class="mywbr"> </span>A buffer<span class="mywbr"> </span>B)</a></td></tr><tr><td align="right">2.258 </td><td><a href="rsc3__ugens.html#%28part.__pv-phase-shift90_buffer_%29" class="tocviewlink" data-pltdoc="x">(pv-<wbr></wbr>phase-<wbr></wbr>shift90 buffer)</a></td></tr><tr><td align="right">2.259 </td><td><a href="rsc3__ugens.html#%28part.__convolution2_in_bufnum_trigger_framesize_%29" class="tocviewlink" data-pltdoc="x">(convolution2 in bufnum trigger framesize)</a></td></tr><tr><td align="right">2.260 </td><td><a href="rsc3__ugens.html#%28part.__pv-rect-comb2_buffer.A_buffer.B_num.Teeth_phase_width_%29" class="tocviewlink" data-pltdoc="x">(pv-<wbr></wbr>rect-<wbr></wbr>comb2 buffer<span class="mywbr"> </span>A buffer<span class="mywbr"> </span>B num<span class="mywbr"> </span>Teeth phase width)</a></td></tr><tr><td align="right">2.261 </td><td><a href="rsc3__ugens.html#%28part.__pv-add_buffer.A_buffer.B_%29" class="tocviewlink" data-pltdoc="x">(pv-<wbr></wbr>add buffer<span class="mywbr"> </span>A buffer<span class="mywbr"> </span>B)</a></td></tr><tr><td align="right">2.262 </td><td><a href="rsc3__ugens.html#%28part.__pv-rand-comb_buffer_wipe_trig_%29" class="tocviewlink" data-pltdoc="x">(pv-<wbr></wbr>rand-<wbr></wbr>comb buffer wipe trig)</a></td></tr><tr><td align="right">2.263 </td><td><a href="rsc3__ugens.html#%28part.__pv-local-max_buffer_threshold_%29" class="tocviewlink" data-pltdoc="x">(pv-<wbr></wbr>local-<wbr></wbr>max buffer threshold)</a></td></tr><tr><td align="right">2.264 </td><td><a href="rsc3__ugens.html#%28part.__pv-mag-mul_buffer.A_buffer.B_%29" class="tocviewlink" data-pltdoc="x">(pv-<wbr></wbr>mag-<wbr></wbr>mul buffer<span class="mywbr"> </span>A buffer<span class="mywbr"> </span>B)</a></td></tr><tr><td align="right">2.265 </td><td><a href="rsc3__ugens.html#%28part.__pv-conformal-map_buffer_real_imag_%29" class="tocviewlink" data-pltdoc="x">(pv-<wbr></wbr>conformal-<wbr></wbr>map buffer real imag)</a></td></tr><tr><td align="right">2.266 </td><td><a href="rsc3__ugens.html#%28part.__pv-diffuser_buffer_trig_%29" class="tocviewlink" data-pltdoc="x">(pv-<wbr></wbr>diffuser buffer trig)</a></td></tr><tr><td align="right">2.267 </td><td><a href="rsc3__ugens.html#%28part.__pv-max_buffer.A_buffer.B_%29" class="tocviewlink" data-pltdoc="x">(pv-<wbr></wbr>max buffer<span class="mywbr"> </span>A buffer<span class="mywbr"> </span>B)</a></td></tr><tr><td align="right">2.268 </td><td><a href="rsc3__ugens.html#%28part.__.Ifft_buffer_wintype_%29" class="tocviewlink" data-pltdoc="x">(Ifft buffer wintype)</a></td></tr><tr><td align="right">2.269 </td><td><a href="rsc3__ugens.html#%28part.__pv-bin-scramble_buffer_wipe_width_trig_%29" class="tocviewlink" data-pltdoc="x">(pv-<wbr></wbr>bin-<wbr></wbr>scramble buffer wipe width trig)</a></td></tr><tr><td align="right">2.270 </td><td><a href="rsc3__ugens.html#%28part.__pv-rand-wipe_buffer.A_buffer.B_wipe_trig_%29" class="tocviewlink" data-pltdoc="x">(pv-<wbr></wbr>rand-<wbr></wbr>wipe buffer<span class="mywbr"> </span>A buffer<span class="mywbr"> </span>B wipe trig)</a></td></tr><tr><td align="right">2.271 </td><td><a href="rsc3__ugens.html#%28part.__.Packfft_chain_bufsize_frombin_tobin_zeroothers_magsphases_%29" class="tocviewlink" data-pltdoc="x">(Packfft chain bufsize frombin tobin zeroothers magsphases)</a></td></tr><tr><td align="right">2.272 </td><td><a href="rsc3__ugens.html#%28part.__pvcollect_chain_numframes_func_frombin_tobin_zeroothers_%29" class="tocviewlink" data-pltdoc="x">(pvcollect chain numframes func frombin tobin zeroothers)</a></td></tr><tr><td align="right">2.273 </td><td><a href="rsc3__ugens.html#%28part.__.P.V_.Magclip_buffer_threshold_%29" class="tocviewlink" data-pltdoc="x">(PV_<span class="mywbr"> </span>Magclip buffer threshold)</a></td></tr><tr><td align="right">2.274 </td><td><a href="rsc3__ugens.html#%28part.__.P.V_.Magfreeze_buffer_freeze_%29" class="tocviewlink" data-pltdoc="x">(PV_<span class="mywbr"> </span>Magfreeze buffer freeze)</a></td></tr><tr><td align="right">2.275 </td><td><a href="rsc3__ugens.html#%28part.__pv-rect-comb_buffer_num.Teeth_phase_width_%29" class="tocviewlink" data-pltdoc="x">(pv-<wbr></wbr>rect-<wbr></wbr>comb buffer num<span class="mywbr"> </span>Teeth phase width)</a></td></tr><tr><td align="right">2.276 </td><td><a href="rsc3__ugens.html#%28part.__pv-mag-shift_buffer_stretch_shift_%29" class="tocviewlink" data-pltdoc="x">(pv-<wbr></wbr>mag-<wbr></wbr>shift buffer stretch shift)</a></td></tr><tr><td align="right">2.277 </td><td><a href="rsc3__ugens.html#%28part._.See_allpass-n%29" class="tocviewlink" data-pltdoc="x">See allpass-<wbr></wbr>n</a></td></tr><tr><td align="right">2.278 </td><td><a href="rsc3__ugens.html#%28part._.See_comb-n%29" class="tocviewlink" data-pltdoc="x">See comb-<wbr></wbr>n</a></td></tr><tr><td align="right">2.279 </td><td><a href="rsc3__ugens.html#%28part._.See_.Bufallpass-c%29" class="tocviewlink" data-pltdoc="x">See Bufallpass-<wbr></wbr>c</a></td></tr><tr><td align="right">2.280 </td><td><a href="rsc3__ugens.html#%28part.__free-verb_in_mix_room_damp_%29" class="tocviewlink" data-pltdoc="x">(free-<wbr></wbr>verb in mix room damp)</a></td></tr><tr><td align="right">2.281 </td><td><a href="rsc3__ugens.html#%28part._.See_free.Verb%29" class="tocviewlink" data-pltdoc="x">See free<span class="mywbr"> </span>Verb</a></td></tr><tr><td align="right">2.282 </td><td><a href="rsc3__ugens.html#%28part.__play-buf_num.Channels_bufnum_rate_trigger_start.Pos_loop_%29" class="tocviewlink" data-pltdoc="x">(play-<wbr></wbr>buf num<span class="mywbr"> </span>Channels bufnum rate trigger start<span class="mywbr"> </span>Pos loop)</a></td></tr><tr><td align="right">2.283 </td><td><a href="rsc3__ugens.html#%28part._.See_buf-delay-c%29" class="tocviewlink" data-pltdoc="x">See buf-<wbr></wbr>delay-<wbr></wbr>c</a></td></tr><tr><td align="right">2.284 </td><td><a href="rsc3__ugens.html#%28part.__delay2_in_%29" class="tocviewlink" data-pltdoc="x">(delay2 in)</a></td></tr><tr><td align="right">2.285 </td><td><a href="rsc3__ugens.html#%28part.__comb-n_in_max.Delay.Time_delay.Time_decay.Time_%29" class="tocviewlink" data-pltdoc="x">(comb-<wbr></wbr>n in max<span class="mywbr"> </span>Delay<span class="mywbr"> </span>Time delay<span class="mywbr"> </span>Time decay<span class="mywbr"> </span>Time)</a></td></tr><tr><td align="right">2.286 </td><td><a href="rsc3__ugens.html#%28part._.See_.Bufallpass-c%29" class="tocviewlink" data-pltdoc="x">See Bufallpass-<wbr></wbr>c</a></td></tr><tr><td align="right">2.287 </td><td><a href="rsc3__ugens.html#%28part.__allpass-n_in_max.Delay.Time_delay.Time_decay.Time_%29" class="tocviewlink" data-pltdoc="x">(allpass-<wbr></wbr>n in max<span class="mywbr"> </span>Delay<span class="mywbr"> </span>Time delay<span class="mywbr"> </span>Time decay<span class="mywbr"> </span>Time)</a></td></tr><tr><td align="right">2.288 </td><td><a href="rsc3__ugens.html#%28part._.See_comb-n%29" class="tocviewlink" data-pltdoc="x">See comb-<wbr></wbr>n</a></td></tr><tr><td align="right">2.289 </td><td><a href="rsc3__ugens.html#%28part.__buf-allpass-c_buf_in_delaytime_decaytime_%29" class="tocviewlink" data-pltdoc="x">(buf-<wbr></wbr>allpass-<wbr></wbr>c buf in delaytime decaytime)</a></td></tr><tr><td align="right">2.290 </td><td><a href="rsc3__ugens.html#%28part._.See_allpass-n%29" class="tocviewlink" data-pltdoc="x">See allpass-<wbr></wbr>n</a></td></tr><tr><td align="right">2.291 </td><td><a href="rsc3__ugens.html#%28part._.See_buf-delay-c%29" class="tocviewlink" data-pltdoc="x">See buf-<wbr></wbr>delay-<wbr></wbr>c</a></td></tr><tr><td align="right">2.292 </td><td><a href="rsc3__ugens.html#%28part.__buf-delay-c_buf_in_delaytime_%29" class="tocviewlink" data-pltdoc="x">(buf-<wbr></wbr>delay-<wbr></wbr>c buf in delaytime)</a></td></tr><tr><td align="right">2.293 </td><td><a href="rsc3__ugens.html#%28part.__pluck_in_tr_maxdelaytime_delaytime_decaytime_coef_%29" class="tocviewlink" data-pltdoc="x">(pluck in tr maxdelaytime delaytime decaytime coef)</a></td></tr><tr><td align="right">2.294 </td><td><a href="rsc3__ugens.html#%28part.__pitch-shift_in_win.Size_pch.Ratio_pch.Dispersion_time.Dispersion_%29" class="tocviewlink" data-pltdoc="x">(pitch-<wbr></wbr>shift in win<span class="mywbr"> </span>Size pch<span class="mywbr"> </span>Ratio pch<span class="mywbr"> </span>Dispersion time<span class="mywbr"> </span>Dispersion)</a></td></tr><tr><td align="right">2.295 </td><td><a href="rsc3__ugens.html#%28part._.See_buf-comb-c%29" class="tocviewlink" data-pltdoc="x">See buf-<wbr></wbr>comb-<wbr></wbr>c</a></td></tr><tr><td align="right">2.296 </td><td><a href="rsc3__ugens.html#%28part.__buf-comb-c_buf_in_delaytime_decaytime_%29" class="tocviewlink" data-pltdoc="x">(buf-<wbr></wbr>comb-<wbr></wbr>c buf in delaytime decaytime)</a></td></tr><tr><td align="right">2.297 </td><td><a href="rsc3__ugens.html#%28part.__buf-rd_num.Channels_rate_bufnum_phase_loop_interpolation_%29" class="tocviewlink" data-pltdoc="x">(buf-<wbr></wbr>rd num<span class="mywbr"> </span>Channels rate bufnum phase loop interpolation)</a></td></tr><tr><td align="right">2.298 </td><td><a href="rsc3__ugens.html#%28part.__delay1_in_%29" class="tocviewlink" data-pltdoc="x">(delay1 in)</a></td></tr><tr><td align="right">2.299 </td><td><a href="rsc3__ugens.html#%28part.__record-buf_bufnum_offset_reclevel_prelevel_run_loop_trigger_inputs_%29" class="tocviewlink" data-pltdoc="x">(record-<wbr></wbr>buf bufnum offset reclevel prelevel run loop trigger inputs)</a></td></tr><tr><td align="right">2.300 </td><td><a href="rsc3__ugens.html#%28part._.See_delay-n%29" class="tocviewlink" data-pltdoc="x">See delay-<wbr></wbr>n</a></td></tr><tr><td align="right">2.301 </td><td><a href="rsc3__ugens.html#%28part._.See_buf-comb-c%29" class="tocviewlink" data-pltdoc="x">See buf-<wbr></wbr>comb-<wbr></wbr>c</a></td></tr><tr><td align="right">2.302 </td><td><a href="rsc3__ugens.html#%28part._.See_delay-n%29" class="tocviewlink" data-pltdoc="x">See delay-<wbr></wbr>n</a></td></tr><tr><td align="right">2.303 </td><td><a href="rsc3__ugens.html#%28part.__delay-n_in_max.Delay.Time_delay.Time_%29" class="tocviewlink" data-pltdoc="x">(delay-<wbr></wbr>n in max<span class="mywbr"> </span>Delay<span class="mywbr"> </span>Time delay<span class="mywbr"> </span>Time)</a></td></tr><tr><td align="right">2.304 </td><td><a href="rsc3__ugens.html#%28part.__ball_in_g_damp_friction_%29" class="tocviewlink" data-pltdoc="x">(ball in g damp friction)</a></td></tr><tr><td align="right">2.305 </td><td><a href="rsc3__ugens.html#%28part.__dswitch1_index_array_%29" class="tocviewlink" data-pltdoc="x">(dswitch1 index array)</a></td></tr><tr><td align="right">2.306 </td><td><a href="rsc3__ugens.html#%28part.__t-duty_rate_duration_reset_done.Action_level_gap_%29" class="tocviewlink" data-pltdoc="x">(t-<wbr></wbr>duty rate duration reset done<span class="mywbr"> </span>Action level gap)</a></td></tr><tr><td align="right">2.307 </td><td><a href="rsc3__ugens.html#%28part._.See_dwhite%29" class="tocviewlink" data-pltdoc="x">See dwhite</a></td></tr><tr><td align="right">2.308 </td><td><a href="rsc3__ugens.html#%28part.__dwhite__length_lo_hi_%29" class="tocviewlink" data-pltdoc="x">(dwhite length lo hi)</a></td></tr><tr><td align="right">2.309 </td><td><a href="rsc3__ugens.html#%28part.__dbufrd_bufnum_phase_loop_%29" class="tocviewlink" data-pltdoc="x">(dbufrd bufnum phase loop)</a></td></tr><tr><td align="right">2.310 </td><td><a href="rsc3__ugens.html#%28part.__demand-env-gen_rate_levels_times_shapes_curves_gate_reset%29" class="tocviewlink" data-pltdoc="x">(demand-<wbr></wbr>env-<wbr></wbr>gen rate levels times shapes curves gate reset</a></td></tr><tr><td align="right">2.311 </td><td><a href="rsc3__ugens.html#%28part.__demand_trig_reset_ugens_%29" class="tocviewlink" data-pltdoc="x">(demand trig reset ugens)</a></td></tr><tr><td align="right">2.312 </td><td><a href="rsc3__ugens.html#%28part.__duty_rate_duration_reset_done.Action_level_%29" class="tocviewlink" data-pltdoc="x">(duty rate duration reset done<span class="mywbr"> </span>Action level)</a></td></tr><tr><td align="right">2.313 </td><td><a href="rsc3__ugens.html#%28part.__dser_length_array_%29" class="tocviewlink" data-pltdoc="x">(dser length array)</a></td></tr><tr><td align="right">2.314 </td><td><a href="rsc3__ugens.html#%28part.__dgeom_length_start_grow_%29" class="tocviewlink" data-pltdoc="x">(dgeom length start grow)</a></td></tr><tr><td align="right">2.315 </td><td><a href="rsc3__ugens.html#%28part.__drand__length_array_%29" class="tocviewlink" data-pltdoc="x">(drand length array)</a></td></tr><tr><td align="right">2.316 </td><td><a href="rsc3__ugens.html#%28part._.See_drand%29" class="tocviewlink" data-pltdoc="x">See drand</a></td></tr><tr><td align="right">2.317 </td><td><a href="rsc3__ugens.html#%28part.__dseries_length_start_step_%29" class="tocviewlink" data-pltdoc="x">(dseries length start step)</a></td></tr><tr><td align="right">2.318 </td><td><a href="rsc3__ugens.html#%28part.__dswitch_index_array_%29" class="tocviewlink" data-pltdoc="x">(dswitch index array)</a></td></tr><tr><td align="right">2.319 </td><td><a href="rsc3__ugens.html#%28part._.See_dbrown%29" class="tocviewlink" data-pltdoc="x">See dbrown</a></td></tr><tr><td align="right">2.320 </td><td><a href="rsc3__ugens.html#%28part.__dbrown__length_lo_hi_step_%29" class="tocviewlink" data-pltdoc="x">(dbrown length lo hi step)</a></td></tr><tr><td align="right">2.321 </td><td><a href="rsc3__ugens.html#%28part.__dseq_length_array_%29" class="tocviewlink" data-pltdoc="x">(dseq length array)</a></td></tr><tr><td align="right">2.322 </td><td><a href="rsc3__ugens.html#%28part._.See_latoocarfian-c_%29" class="tocviewlink" data-pltdoc="x">See latoocarfian-<wbr></wbr>c.</a></td></tr><tr><td align="right">2.323 </td><td><a href="rsc3__ugens.html#%28part.__fb-sine-c_rate_freq_im_fb_a_c_xi_yi_%29" class="tocviewlink" data-pltdoc="x">(fb-<wbr></wbr>sine-<wbr></wbr>c rate freq im fb a c xi yi)</a></td></tr><tr><td align="right">2.324 </td><td><a href="rsc3__ugens.html#%28part._.See_fb-sine-c%29" class="tocviewlink" data-pltdoc="x">See fb-<wbr></wbr>sine-<wbr></wbr>c</a></td></tr><tr><td align="right">2.325 </td><td><a href="rsc3__ugens.html#%28part.__quad-n_rate_freq_a_b_c_xi_%29" class="tocviewlink" data-pltdoc="x">(quad-<wbr></wbr>n rate freq a b c xi)</a></td></tr><tr><td align="right">2.326 </td><td><a href="rsc3__ugens.html#%28part.__lorenz-l_rate_freq_s_r_b_h_xi_yi_zi_%29" class="tocviewlink" data-pltdoc="x">(lorenz-<wbr></wbr>l rate freq s r b h xi yi zi)</a></td></tr><tr><td align="right">2.327 </td><td><a href="rsc3__ugens.html#%28part._.See_standard-l_%29" class="tocviewlink" data-pltdoc="x">See standard-<wbr></wbr>l.</a></td></tr><tr><td align="right">2.328 </td><td><a href="rsc3__ugens.html#%28part._.See_quad-n%29" class="tocviewlink" data-pltdoc="x">See quad-<wbr></wbr>n</a></td></tr><tr><td align="right">2.329 </td><td><a href="rsc3__ugens.html#%28part._.See_cusp-n%29" class="tocviewlink" data-pltdoc="x">See cusp-<wbr></wbr>n</a></td></tr><tr><td align="right">2.330 </td><td><a href="rsc3__ugens.html#%28part._.See_latoocarfian-c_%29" class="tocviewlink" data-pltdoc="x">See latoocarfian-<wbr></wbr>c.</a></td></tr><tr><td align="right">2.331 </td><td><a href="rsc3__ugens.html#%28part.__logistic_rate_chaos.Param_freq_%29" class="tocviewlink" data-pltdoc="x">(logistic rate chaos<span class="mywbr"> </span>Param freq)</a></td></tr><tr><td align="right">2.332 </td><td><a href="rsc3__ugens.html#%28part._.See_fb-sine-c%29" class="tocviewlink" data-pltdoc="x">See fb-<wbr></wbr>sine-<wbr></wbr>c</a></td></tr><tr><td align="right">2.333 </td><td><a href="rsc3__ugens.html#%28part.__latoocarfian-c_rate_freq_a_b_c_d_xi_yi_%29" class="tocviewlink" data-pltdoc="x">(latoocarfian-<wbr></wbr>c rate freq a b c d xi yi)</a></td></tr><tr><td align="right">2.334 </td><td><a href="rsc3__ugens.html#%28part.__rossler_rate_chaos.Param_dt_%29" class="tocviewlink" data-pltdoc="x">(rossler rate chaos<span class="mywbr"> </span>Param dt)</a></td></tr><tr><td align="right">2.335 </td><td><a href="rsc3__ugens.html#%28part.__standard-l_rate_freq_k_xi_yi_%29" class="tocviewlink" data-pltdoc="x">(standard-<wbr></wbr>l rate freq k xi yi)</a></td></tr><tr><td align="right">2.336 </td><td><a href="rsc3__ugens.html#%28part._.See_quad-n%29" class="tocviewlink" data-pltdoc="x">See quad-<wbr></wbr>n</a></td></tr><tr><td align="right">2.337 </td><td><a href="rsc3__ugens.html#%28part.__cusp-n_rate_freq_a_b_xi_%29" class="tocviewlink" data-pltdoc="x">(cusp-<wbr></wbr>n rate freq a b xi)</a></td></tr><tr><td align="right">2.338 </td><td><a href="rsc3__ugens.html#%28part.__lin-cong-c_rate_freq_a_c_m_xi_%29" class="tocviewlink" data-pltdoc="x">(lin-<wbr></wbr>cong-<wbr></wbr>c rate freq a c m xi)</a></td></tr><tr><td align="right">2.339 </td><td><a href="rsc3__ugens.html#%28part.__crackle_rate_chaos.Param_%29" class="tocviewlink" data-pltdoc="x">(crackle rate chaos<span class="mywbr"> </span>Param)</a></td></tr><tr><td align="right">2.340 </td><td><a href="rsc3__ugens.html#%28part.__henon-n_rate_freq_a_b_x0_x1_%29" class="tocviewlink" data-pltdoc="x">(henon-<wbr></wbr>n rate freq a b x0 x1)</a></td></tr><tr><td align="right">2.341 </td><td><a href="rsc3__ugens.html#%28part._.See_henon-n%29" class="tocviewlink" data-pltdoc="x">See henon-<wbr></wbr>n</a></td></tr><tr><td align="right">2.342 </td><td><a href="rsc3__ugens.html#%28part._.See_lin-cong-c_%29" class="tocviewlink" data-pltdoc="x">See lin-<wbr></wbr>cong-<wbr></wbr>c.</a></td></tr><tr><td align="right">2.343 </td><td><a href="rsc3__ugens.html#%28part._.See_.Gbman.L_%29" class="tocviewlink" data-pltdoc="x">See Gbman<span class="mywbr"> </span>L.</a></td></tr><tr><td align="right">2.344 </td><td><a href="rsc3__ugens.html#%28part._.See_.Gbman.L_%29" class="tocviewlink" data-pltdoc="x">See Gbman<span class="mywbr"> </span>L.</a></td></tr><tr><td align="right">2.345 </td><td><a href="rsc3__ugens.html#%28part._.See_henon-n%29" class="tocviewlink" data-pltdoc="x">See henon-<wbr></wbr>n</a></td></tr><tr><td align="right">2.346 </td><td><a href="rsc3__ugens.html#%28part._.See_lin-cong-c_%29" class="tocviewlink" data-pltdoc="x">See lin-<wbr></wbr>cong-<wbr></wbr>c.</a></td></tr><tr><td align="right">2.347 </td><td><a href="rsc3__ugens.html#%28part.__gbman-c_rate_freq_xi_yi_%29" class="tocviewlink" data-pltdoc="x">(gbman-<wbr></wbr>c rate freq xi yi)</a></td></tr><tr><td align="right">2.348 </td><td><a href="rsc3__ugens.html#%28part.__lin-pan2_in_pos_level_%29" class="tocviewlink" data-pltdoc="x">(lin-<wbr></wbr>pan2 in pos level)</a></td></tr><tr><td align="right">2.349 </td><td><a href="rsc3__ugens.html#%28part.__rotate2_x_y_pos_%29" class="tocviewlink" data-pltdoc="x">(rotate2 x y pos)</a></td></tr><tr><td align="right">2.350 </td><td><a href="rsc3__ugens.html#%28part.__decode-b2_num.Channels_w_x_y_orientation_%29" class="tocviewlink" data-pltdoc="x">(decode-<wbr></wbr>b2 num<span class="mywbr"> </span>Channels w x y orientation)</a></td></tr><tr><td align="right">2.351 </td><td><a href="rsc3__ugens.html#%28part.__pan2_in_pos_level_%29" class="tocviewlink" data-pltdoc="x">(pan2 in pos level)</a></td></tr><tr><td align="right">2.352 </td><td><a href="rsc3__ugens.html#%28part.__pan-b2_in_azimuth_gain_%29" class="tocviewlink" data-pltdoc="x">(pan-<wbr></wbr>b2 in azimuth gain)</a></td></tr><tr><td align="right">2.353 </td><td><a href="rsc3__ugens.html#%28part.__detect-silence_in_amp_time_done.Action_%29" class="tocviewlink" data-pltdoc="x">(detect-<wbr></wbr>silence in amp time done<span class="mywbr"> </span>Action)</a></td></tr><tr><td align="right">2.354 </td><td><a href="rsc3__ugens.html#%28part.__line_rate_start_end_dur_done.Action_%29" class="tocviewlink" data-pltdoc="x">(line rate start end dur done<span class="mywbr"> </span>Action)</a></td></tr><tr><td align="right">2.355 </td><td><a href="rsc3__ugens.html#%28part.__free_trig_node.I.D_%29" class="tocviewlink" data-pltdoc="x">(free trig node<span class="mywbr"> </span>ID)</a></td></tr><tr><td align="right">2.356 </td><td><a href="rsc3__ugens.html#%28part.__pause-self-when-done_src_%29" class="tocviewlink" data-pltdoc="x">(pause-<wbr></wbr>self-<wbr></wbr>when-<wbr></wbr>done src)</a></td></tr><tr><td align="right">2.357 </td><td><a href="rsc3__ugens.html#%28part.__pause-self_src_%29" class="tocviewlink" data-pltdoc="x">(pause-<wbr></wbr>self src)</a></td></tr><tr><td align="right">2.358 </td><td><a href="rsc3__ugens.html#%28part.__env-gen_rate_gate_level.Scale_level.Bias_time.Scale_done.Action_envelope_%29" class="tocviewlink" data-pltdoc="x">(env-<wbr></wbr>gen rate gate level<span class="mywbr"> </span>Scale level<span class="mywbr"> </span>Bias time<span class="mywbr"> </span>Scale done<span class="mywbr"> </span>Action envelope)</a></td></tr><tr><td align="right">2.359 </td><td><a href="rsc3__ugens.html#%28part.__free-self-when-done_src_%29" class="tocviewlink" data-pltdoc="x">(free-<wbr></wbr>self-<wbr></wbr>when-<wbr></wbr>done src)</a></td></tr><tr><td align="right">2.360 </td><td><a href="rsc3__ugens.html#%28part.__pause_gate_node.I.D_%29" class="tocviewlink" data-pltdoc="x">(pause gate node<span class="mywbr"> </span>ID)</a></td></tr><tr><td align="right">2.361 </td><td><a href="rsc3__ugens.html#%28part.__x-line_rate_start_end_dur_done.Action_%29" class="tocviewlink" data-pltdoc="x">(x-<wbr></wbr>line rate start end dur done<span class="mywbr"> </span>Action)</a></td></tr><tr><td align="right">2.362 </td><td><a href="rsc3__ugens.html#%28part.__done_src_%29" class="tocviewlink" data-pltdoc="x">(done src)</a></td></tr><tr><td align="right">2.363 </td><td><a href="rsc3__ugens.html#%28part.__linen_gate_attack.Time_sus.Level_release.Time_done.Action_%29" class="tocviewlink" data-pltdoc="x">(linen gate attack<span class="mywbr"> </span>Time sus<span class="mywbr"> </span>Level release<span class="mywbr"> </span>Time done<span class="mywbr"> </span>Action)</a></td></tr><tr><td align="right">2.364 </td><td><a href="rsc3__ugens.html#%28part.__free-self_src_%29" class="tocviewlink" data-pltdoc="x">(free-<wbr></wbr>self src)</a></td></tr></table></div></div></div><div class="tocsub"><div class="tocsubtitle">On this page:</div><table class="tocsublist" cellspacing="0"><tr><td><span class="tocsublinknumber">2.1<tt> </tt></span><a href="#%28part.__.Rlpf_in_freq_rq_%29" class="tocsubseclink" data-pltdoc="x">(Rlpf in freq rq)</a></td></tr><tr><td><span class="tocsublinknumber">2.2<tt> </tt></span><a href="#%28part.__fold_in_lo_hi_%29" class="tocsubseclink" data-pltdoc="x">(fold in lo hi)</a></td></tr><tr><td><span class="tocsublinknumber">2.3<tt> </tt></span><a href="#%28part.__formlet_in_freq_attack.Time_decay.Time_%29" class="tocsubseclink" data-pltdoc="x">(formlet in freq attack<span class="mywbr"> </span>Time decay<span class="mywbr"> </span>Time)</a></td></tr><tr><td><span class="tocsublinknumber">2.4<tt> </tt></span><a href="#%28part.__lin-lin_in_srclo_srchi_dstlo_dsthi_%29" class="tocsubseclink" data-pltdoc="x">(lin-<wbr></wbr>lin in srclo srchi dstlo dsthi)</a></td></tr><tr><td><span class="tocsublinknumber">2.5<tt> </tt></span><a href="#%28part.__fos_in_a0_a1_b1_%29" class="tocsubseclink" data-pltdoc="x">(fos in a0 a1 b1)</a></td></tr><tr><td><span class="tocsublinknumber">2.6<tt> </tt></span><a href="#%28part.__bpf_in_freq_rq_%29" class="tocsubseclink" data-pltdoc="x">(bpf in freq rq)</a></td></tr><tr><td><span class="tocsublinknumber">2.7<tt> </tt></span><a href="#%28part.__wrap_in_lo_hi_%29" class="tocsubseclink" data-pltdoc="x">(wrap in lo hi)</a></td></tr><tr><td><span class="tocsublinknumber">2.8<tt> </tt></span><a href="#%28part.__bpz2_in_%29" class="tocsubseclink" data-pltdoc="x">(bpz2 in)</a></td></tr><tr><td><span class="tocsublinknumber">2.9<tt> </tt></span><a href="#%28part.__amp-comp_freq_root_exp_%29" class="tocsubseclink" data-pltdoc="x">(amp-<wbr></wbr>comp freq root exp)</a></td></tr><tr><td><span class="tocsublinknumber">2.10<tt> </tt></span><a href="#%28part.__lag2_in_lag.Time_%29" class="tocsubseclink" data-pltdoc="x">(lag2 in lag<span class="mywbr"> </span>Time)</a></td></tr><tr><td><span class="tocsublinknumber">2.11<tt> </tt></span><a href="#%28part.__one-zero_in_coef_%29" class="tocsubseclink" data-pltdoc="x">(one-<wbr></wbr>zero in coef)</a></td></tr><tr><td><span class="tocsublinknumber">2.12<tt> </tt></span><a href="#%28part.__klank_in_freq.Scale_freq.Offset_decay.Scale_spec_%29" class="tocsubseclink" data-pltdoc="x">(klank in freq<span class="mywbr"> </span>Scale freq<span class="mywbr"> </span>Offset decay<span class="mywbr"> </span>Scale spec)</a></td></tr><tr><td><span class="tocsublinknumber">2.13<tt> </tt></span><a href="#%28part.__lpz2_ar_in_%29" class="tocsubseclink" data-pltdoc="x">(lpz2 ar in)</a></td></tr><tr><td><span class="tocsublinknumber">2.14<tt> </tt></span><a href="#%28part.__lin-exp_in_srclo_srchi_dstlo_dsthi_%29" class="tocsubseclink" data-pltdoc="x">(lin-<wbr></wbr>exp in srclo srchi dstlo dsthi)</a></td></tr><tr><td><span class="tocsublinknumber">2.15<tt> </tt></span><a href="#%28part.__hpz2_in_%29" class="tocsubseclink" data-pltdoc="x">(hpz2 in)</a></td></tr><tr><td><span class="tocsublinknumber">2.16<tt> </tt></span><a href="#%28part.__leak-dc_in_coef_%29" class="tocsubseclink" data-pltdoc="x">(leak-<wbr></wbr>dc in coef)</a></td></tr><tr><td><span class="tocsublinknumber">2.17<tt> </tt></span><a href="#%28part.__hpf_in_freq_%29" class="tocsubseclink" data-pltdoc="x">(hpf in freq)</a></td></tr><tr><td><span class="tocsublinknumber">2.18<tt> </tt></span><a href="#%28part.__sos_in_a0_a1_a2_b1_b2_%29" class="tocsubseclink" data-pltdoc="x">(sos in a0 a1 a2 b1 b2)</a></td></tr><tr><td><span class="tocsublinknumber">2.19<tt> </tt></span><a href="#%28part.__normalizer_in_level_dur_%29" class="tocsubseclink" data-pltdoc="x">(normalizer in level dur)</a></td></tr><tr><td><span class="tocsublinknumber">2.20<tt> </tt></span><a href="#%28part.__two-zero_in_freq_radius_%29" class="tocsubseclink" data-pltdoc="x">(two-<wbr></wbr>zero in freq radius)</a></td></tr><tr><td><span class="tocsublinknumber">2.21<tt> </tt></span><a href="#%28part.__clip_in_lo_hi_%29" class="tocsubseclink" data-pltdoc="x">(clip in lo hi)</a></td></tr><tr><td><span class="tocsublinknumber">2.22<tt> </tt></span><a href="#%28part.__limiter_input_level_look.Ahead.Time_%29" class="tocsubseclink" data-pltdoc="x">(limiter input level look<span class="mywbr"> </span>Ahead<span class="mywbr"> </span>Time)</a></td></tr><tr><td><span class="tocsublinknumber">2.23<tt> </tt></span><a href="#%28part.__median_length_in_%29" class="tocsubseclink" data-pltdoc="x">(median length in)</a></td></tr><tr><td><span class="tocsublinknumber">2.24<tt> </tt></span><a href="#%28part.__lag3_in_lag.Time_%29" class="tocsubseclink" data-pltdoc="x">(lag3 in lag<span class="mywbr"> </span>Time)</a></td></tr><tr><td><span class="tocsublinknumber">2.25<tt> </tt></span><a href="#%28part.__amp-comp.A_freq_root_min.Amp_root.Amp_%29" class="tocsubseclink" data-pltdoc="x">(amp-<wbr></wbr>comp<span class="mywbr"> </span>A freq root min<span class="mywbr"> </span>Amp root<span class="mywbr"> </span>Amp)</a></td></tr><tr><td><span class="tocsublinknumber">2.26<tt> </tt></span><a href="#%28part.__two-pole_in_freq_radius_%29" class="tocsubseclink" data-pltdoc="x">(two-<wbr></wbr>pole in freq radius)</a></td></tr><tr><td><span class="tocsublinknumber">2.27<tt> </tt></span><a href="#%28part.__lpf_in_freq_%29" class="tocsubseclink" data-pltdoc="x">(lpf in freq)</a></td></tr><tr><td><span class="tocsublinknumber">2.28<tt> </tt></span><a href="#%28part.__hpz1_in_%29" class="tocsubseclink" data-pltdoc="x">(hpz1 in)</a></td></tr><tr><td><span class="tocsublinknumber">2.29<tt> </tt></span><a href="#%28part.__freq-shift_input_shift_phase_%29" class="tocsubseclink" data-pltdoc="x">(freq-<wbr></wbr>shift input shift phase)</a></td></tr><tr><td><span class="tocsublinknumber">2.30<tt> </tt></span><a href="#%28part.__lpz1_ar_in_%29" class="tocsubseclink" data-pltdoc="x">(lpz1 ar in)</a></td></tr><tr><td><span class="tocsublinknumber">2.31<tt> </tt></span><a href="#%28part.__moog-ff_in_freq_gain_reset_%29" class="tocsubseclink" data-pltdoc="x">(moog-<wbr></wbr>ff in freq gain reset)</a></td></tr><tr><td><span class="tocsublinknumber">2.32<tt> </tt></span><a href="#%28part.__resonz_in_freq_bwr_%29" class="tocsubseclink" data-pltdoc="x">(resonz in freq bwr)</a></td></tr><tr><td><span class="tocsublinknumber">2.33<tt> </tt></span><a href="#%28part.__brz2_in_%29" class="tocsubseclink" data-pltdoc="x">(brz2 in)</a></td></tr><tr><td><span class="tocsublinknumber">2.34<tt> </tt></span><a href="#%28part.__.Rhpf_in_freq_rq_%29" class="tocsubseclink" data-pltdoc="x">(Rhpf in freq rq)</a></td></tr><tr><td><span class="tocsublinknumber">2.35<tt> </tt></span><a href="#%28part.__brf_in_freq_rq_%29" class="tocsubseclink" data-pltdoc="x">(brf in freq rq)</a></td></tr><tr><td><span class="tocsublinknumber">2.36<tt> </tt></span><a href="#%28part.__one-pole_in_coef_%29" class="tocsubseclink" data-pltdoc="x">(one-<wbr></wbr>pole in coef)</a></td></tr><tr><td><span class="tocsublinknumber">2.37<tt> </tt></span><a href="#%28part.__lag_in_lag.Time_%29" class="tocsubseclink" data-pltdoc="x">(lag in lag<span class="mywbr"> </span>Time)</a></td></tr><tr><td><span class="tocsublinknumber">2.38<tt> </tt></span><a href="#%28part.__ringz_in_freq_decay.Time_%29" class="tocsubseclink" data-pltdoc="x">(ringz in freq decay<span class="mywbr"> </span>Time)</a></td></tr><tr><td><span class="tocsublinknumber">2.39<tt> </tt></span><a href="#%28part.__dyn-klank_in_freq.Scale_freq.Offset_decay.Scale_spec_%29" class="tocsubseclink" data-pltdoc="x">(dyn-<wbr></wbr>klank in freq<span class="mywbr"> </span>Scale freq<span class="mywbr"> </span>Offset decay<span class="mywbr"> </span>Scale spec)</a></td></tr><tr><td><span class="tocsublinknumber">2.40<tt> </tt></span><a href="#%28part.__.Grainin_nc_tr_dur_in_pan_envbuf_%29" class="tocsubseclink" data-pltdoc="x">(Grainin nc tr dur in pan envbuf)</a></td></tr><tr><td><span class="tocsublinknumber">2.41<tt> </tt></span><a href="#%28part.__grain-buf_nc_tr_dur_sndbuf_rate_pos_interp_pan_envbuf_%29" class="tocsubseclink" data-pltdoc="x">(grain-<wbr></wbr>buf nc tr dur sndbuf rate pos interp pan envbuf)</a></td></tr><tr><td><span class="tocsublinknumber">2.42<tt> </tt></span><a href="#%28part.__grain-sin_nc_tr_dur_freq_pan_envbuf_%29" class="tocsubseclink" data-pltdoc="x">(grain-<wbr></wbr>sin nc tr dur freq pan envbuf)</a></td></tr><tr><td><span class="tocsublinknumber">2.43<tt> </tt></span><a href="#%28part.__warp1_nc_buf_ptr_freq.Scale_window.Size_envbuf_overlaps_windowrand.Ratio_interp_%29" class="tocsubseclink" data-pltdoc="x">(warp1 nc buf ptr freq<span class="mywbr"> </span>Scale window<span class="mywbr"> </span>Size envbuf overlaps windowrand<span class="mywbr"> </span>Ratio interp)</a></td></tr><tr><td><span class="tocsublinknumber">2.44<tt> </tt></span><a href="#%28part.__grain-fm_nc_tr_dur_carfreq_modfreq_index_pan_envbuf_%29" class="tocsubseclink" data-pltdoc="x">(grain-<wbr></wbr>fm nc tr dur carfreq modfreq index pan envbuf)</a></td></tr><tr><td><span class="tocsublinknumber">2.45<tt> </tt></span><a href="#%28part.__disk-in_num-channels_rate_bufnum_%29" class="tocsubseclink" data-pltdoc="x">(disk-<wbr></wbr>in num-<wbr></wbr>channels rate bufnum)</a></td></tr><tr><td><span class="tocsublinknumber">2.46<tt> </tt></span><a href="#%28part.__disk-out_bufnum_channels_%29" class="tocsubseclink" data-pltdoc="x">(disk-<wbr></wbr>out bufnum channels)</a></td></tr><tr><td><span class="tocsublinknumber">2.47<tt> </tt></span><a href="#%28part._num-input-buses%29" class="tocsubseclink" data-pltdoc="x">num-<wbr></wbr>input-<wbr></wbr>buses</a></td></tr><tr><td><span class="tocsublinknumber">2.48<tt> </tt></span><a href="#%28part._num-control-buses%29" class="tocsubseclink" data-pltdoc="x">num-<wbr></wbr>control-<wbr></wbr>buses</a></td></tr><tr><td><span class="tocsublinknumber">2.49<tt> </tt></span><a href="#%28part._num-buffers%29" class="tocsubseclink" data-pltdoc="x">num-<wbr></wbr>buffers</a></td></tr><tr><td><span class="tocsublinknumber">2.50<tt> </tt></span><a href="#%28part._num-output-buses%29" class="tocsubseclink" data-pltdoc="x">num-<wbr></wbr>output-<wbr></wbr>buses</a></td></tr><tr><td><span class="tocsublinknumber">2.51<tt> </tt></span><a href="#%28part.__buf-frames_rate_bufnum_%29" class="tocsubseclink" data-pltdoc="x">(buf-<wbr></wbr>frames rate bufnum)</a></td></tr><tr><td><span class="tocsublinknumber">2.52<tt> </tt></span><a href="#%28part.__buf-rate-scale_rate_bufnum_%29" class="tocsubseclink" data-pltdoc="x">(buf-<wbr></wbr>rate-<wbr></wbr>scale rate bufnum)</a></td></tr><tr><td><span class="tocsublinknumber">2.53<tt> </tt></span><a href="#%28part._sample-dur%29" class="tocsubseclink" data-pltdoc="x">sample-<wbr></wbr>dur</a></td></tr><tr><td><span class="tocsublinknumber">2.54<tt> </tt></span><a href="#%28part._sample-rate%29" class="tocsubseclink" data-pltdoc="x">sample-<wbr></wbr>rate</a></td></tr><tr><td><span class="tocsublinknumber">2.55<tt> </tt></span><a href="#%28part._radians-per-sample%29" class="tocsubseclink" data-pltdoc="x">radians-<wbr></wbr>per-<wbr></wbr>sample</a></td></tr><tr><td><span class="tocsublinknumber">2.56<tt> </tt></span><a href="#%28part.__buf-dur_rate_bufnum_%29" class="tocsubseclink" data-pltdoc="x">(buf-<wbr></wbr>dur rate bufnum)</a></td></tr><tr><td><span class="tocsublinknumber">2.57<tt> </tt></span><a href="#%28part.__buf-channels_rate_bufnum_%29" class="tocsubseclink" data-pltdoc="x">(buf-<wbr></wbr>channels rate bufnum)</a></td></tr><tr><td><span class="tocsublinknumber">2.58<tt> </tt></span><a href="#%28part.__buf-sample-rate_rate_bufnum_%29" class="tocsubseclink" data-pltdoc="x">(buf-<wbr></wbr>sample-<wbr></wbr>rate rate bufnum)</a></td></tr><tr><td><span class="tocsublinknumber">2.59<tt> </tt></span><a href="#%28part._num-audio-buses%29" class="tocsubseclink" data-pltdoc="x">num-<wbr></wbr>audio-<wbr></wbr>buses</a></td></tr><tr><td><span class="tocsublinknumber">2.60<tt> </tt></span><a href="#%28part._num-running-synths%29" class="tocsubseclink" data-pltdoc="x">num-<wbr></wbr>running-<wbr></wbr>synths</a></td></tr><tr><td><span class="tocsublinknumber">2.61<tt> </tt></span><a href="#%28part._subsample-offset%29" class="tocsubseclink" data-pltdoc="x">subsample-<wbr></wbr>offset</a></td></tr><tr><td><span class="tocsublinknumber">2.62<tt> </tt></span><a href="#%28part.__zero-crossing_in_%29" class="tocsubseclink" data-pltdoc="x">(zero-<wbr></wbr>crossing in)</a></td></tr><tr><td><span class="tocsublinknumber">2.63<tt> </tt></span><a href="#%28part.__slope_in_%29" class="tocsubseclink" data-pltdoc="x">(slope in)</a></td></tr><tr><td><span class="tocsublinknumber">2.64<tt> </tt></span><a href="#%28part.__running-sum_in_numsamp_%29" class="tocsubseclink" data-pltdoc="x">(running-<wbr></wbr>sum in numsamp)</a></td></tr><tr><td><span class="tocsublinknumber">2.65<tt> </tt></span><a href="#%28part.__pitch_in_init.Freq_min.Freq_max.Freq_exec.Freq_max.Bins.Per.Octave%29" class="tocsubseclink" data-pltdoc="x">(pitch in init<span class="mywbr"> </span>Freq min<span class="mywbr"> </span>Freq max<span class="mywbr"> </span>Freq exec<span class="mywbr"> </span>Freq max<span class="mywbr"> </span>Bins<span class="mywbr"> </span>Per<span class="mywbr"> </span>Octave</a></td></tr><tr><td><span class="tocsublinknumber">2.66<tt> </tt></span><a href="#%28part.__compander_input_control_thresh_slope.Below_slope.Above_clamp.Time_relax.Time_%29" class="tocsubseclink" data-pltdoc="x">(compander input control thresh slope<span class="mywbr"> </span>Below slope<span class="mywbr"> </span>Above clamp<span class="mywbr"> </span>Time relax<span class="mywbr"> </span>Time)</a></td></tr><tr><td><span class="tocsublinknumber">2.67<tt> </tt></span><a href="#%28part.__amplitude_rate_in_attack.Time_release.Time_%29" class="tocsubseclink" data-pltdoc="x">(amplitude rate in attack<span class="mywbr"> </span>Time release<span class="mywbr"> </span>Time)</a></td></tr><tr><td><span class="tocsublinknumber">2.68<tt> </tt></span><a href="#%28part.__pulse-divider_trig_div_start_%29" class="tocsubseclink" data-pltdoc="x">(pulse-<wbr></wbr>divider trig div start)</a></td></tr><tr><td><span class="tocsublinknumber">2.69<tt> </tt></span><a href="#%28part.__gate_in_trig_%29" class="tocsubseclink" data-pltdoc="x">(gate in trig)</a></td></tr><tr><td><span class="tocsublinknumber">2.70<tt> </tt></span><a href="#%28part.__poll_trig_in_trigid_label_%29" class="tocsubseclink" data-pltdoc="x">(poll trig in trigid label)</a></td></tr><tr><td><span class="tocsublinknumber">2.71<tt> </tt></span><a href="#%28part.__most-change_a_b_%29" class="tocsubseclink" data-pltdoc="x">(most-<wbr></wbr>change a b)</a></td></tr><tr><td><span class="tocsublinknumber">2.72<tt> </tt></span><a href="#%28part.__trig_in_dur_%29" class="tocsubseclink" data-pltdoc="x">(trig in dur)</a></td></tr><tr><td><span class="tocsublinknumber">2.73<tt> </tt></span><a href="#%28part.__pulse-count_trig_reset_%29" class="tocsubseclink" data-pltdoc="x">(pulse-<wbr></wbr>count trig reset)</a></td></tr><tr><td><span class="tocsublinknumber">2.74<tt> </tt></span><a href="#%28part.__stepper_trig_reset_min_max_step_resetval_%29" class="tocsubseclink" data-pltdoc="x">(stepper trig reset min max step resetval)</a></td></tr><tr><td><span class="tocsublinknumber">2.75<tt> </tt></span><a href="#%28part.__last-value_in_diff_%29" class="tocsubseclink" data-pltdoc="x">(last-<wbr></wbr>value in diff)</a></td></tr><tr><td><span class="tocsublinknumber">2.76<tt> </tt></span><a href="#%28part.__peak-follower_in_decay_%29" class="tocsubseclink" data-pltdoc="x">(peak-<wbr></wbr>follower in decay)</a></td></tr><tr><td><span class="tocsublinknumber">2.77<tt> </tt></span><a href="#%28part.__running-max_in_trig_%29" class="tocsubseclink" data-pltdoc="x">(running-<wbr></wbr>max in trig)</a></td></tr><tr><td><span class="tocsublinknumber">2.78<tt> </tt></span><a href="#%28part.__trig1_in_dur_%29" class="tocsubseclink" data-pltdoc="x">(trig1 in dur)</a></td></tr><tr><td><span class="tocsublinknumber">2.79<tt> </tt></span><a href="#%28part.__phasor_trig_rate_start_end_resetpos_%29" class="tocsubseclink" data-pltdoc="x">(phasor trig rate start end resetpos)</a></td></tr><tr><td><span class="tocsublinknumber">2.80<tt> </tt></span><a href="#%28part.__schmidt_in_lo_hi_%29" class="tocsubseclink" data-pltdoc="x">(schmidt in lo hi)</a></td></tr><tr><td><span class="tocsublinknumber">2.81<tt> </tt></span><a href="#%28part.__peak_trig_reset_%29" class="tocsubseclink" data-pltdoc="x">(peak trig reset)</a></td></tr><tr><td><span class="tocsublinknumber">2.82<tt> </tt></span><a href="#%28part.__toggle-ff_trig_%29" class="tocsubseclink" data-pltdoc="x">(toggle-<wbr></wbr>ff trig)</a></td></tr><tr><td><span class="tocsublinknumber">2.83<tt> </tt></span><a href="#%28part.__sweep_trig_rate_%29" class="tocsubseclink" data-pltdoc="x">(sweep trig rate)</a></td></tr><tr><td><span class="tocsublinknumber">2.84<tt> </tt></span><a href="#%28part.__send-trig_in_id_value_%29" class="tocsubseclink" data-pltdoc="x">(send-<wbr></wbr>trig in id value)</a></td></tr><tr><td><span class="tocsublinknumber">2.85<tt> </tt></span><a href="#%28part.__in-range_in_lo_hi_%29" class="tocsubseclink" data-pltdoc="x">(in-<wbr></wbr>range in lo hi)</a></td></tr><tr><td><span class="tocsublinknumber">2.86<tt> </tt></span><a href="#%28part.__timer_trig_%29" class="tocsubseclink" data-pltdoc="x">(timer trig)</a></td></tr><tr><td><span class="tocsublinknumber">2.87<tt> </tt></span><a href="#%28part.__t-delay_trigger_delay.Time_%29" class="tocsubseclink" data-pltdoc="x">(t-<wbr></wbr>delay trigger delay<span class="mywbr"> </span>Time)</a></td></tr><tr><td><span class="tocsublinknumber">2.88<tt> </tt></span><a href="#%28part.__running-min_in_trig_%29" class="tocsubseclink" data-pltdoc="x">(running-<wbr></wbr>min in trig)</a></td></tr><tr><td><span class="tocsublinknumber">2.89<tt> </tt></span><a href="#%28part.__set-reset-ff_trig_reset_%29" class="tocsubseclink" data-pltdoc="x">(set-<wbr></wbr>reset-<wbr></wbr>ff trig reset)</a></td></tr><tr><td><span class="tocsublinknumber">2.90<tt> </tt></span><a href="#%28part.__saw_rate_freq_%29" class="tocsubseclink" data-pltdoc="x">(saw rate freq)</a></td></tr><tr><td><span class="tocsublinknumber">2.91<tt> </tt></span><a href="#%28part.__pm-osc_rate_carfreq_modfreq_index_modphase_%29" class="tocsubseclink" data-pltdoc="x">(pm-<wbr></wbr>osc rate carfreq modfreq index modphase)</a></td></tr><tr><td><span class="tocsublinknumber">2.92<tt> </tt></span><a href="#%28part.__lf-tri_rate_freq_iphase_%29" class="tocsubseclink" data-pltdoc="x">(lf-<wbr></wbr>tri rate freq iphase)</a></td></tr><tr><td><span class="tocsublinknumber">2.93<tt> </tt></span><a href="#%28part.__t-grains_num.Channels_trigger_bufnum_rate_center.Pos_dur_pan_amp_interp_%29" class="tocsubseclink" data-pltdoc="x">(t-<wbr></wbr>grains num<span class="mywbr"> </span>Channels trigger bufnum rate center<span class="mywbr"> </span>Pos dur pan amp interp)</a></td></tr><tr><td><span class="tocsublinknumber">2.94<tt> </tt></span><a href="#%28part.__tw-index_in_normalize_array_%29" class="tocsubseclink" data-pltdoc="x">(tw-<wbr></wbr>index in normalize array)</a></td></tr><tr><td><span class="tocsublinknumber">2.95<tt> </tt></span><a href="#%28part.__osc-n_rate_bufnum_freq_phase_%29" class="tocsubseclink" data-pltdoc="x">(osc-<wbr></wbr>n rate bufnum freq phase)</a></td></tr><tr><td><span class="tocsublinknumber">2.96<tt> </tt></span><a href="#%28part.__osc_rate_bufnum_freq_phase_%29" class="tocsubseclink" data-pltdoc="x">(osc rate bufnum freq phase)</a></td></tr><tr><td><span class="tocsublinknumber">2.97<tt> </tt></span><a href="#%28part.__lf-saw_rate_freq_iphase_%29" class="tocsubseclink" data-pltdoc="x">(lf-<wbr></wbr>saw rate freq iphase)</a></td></tr><tr><td><span class="tocsublinknumber">2.98<tt> </tt></span><a href="#%28part.__tw-choose_trig_array_weights_normalize_%29" class="tocsubseclink" data-pltdoc="x">(tw-<wbr></wbr>choose trig array weights normalize)</a></td></tr><tr><td><span class="tocsublinknumber">2.99<tt> </tt></span><a href="#%28part._gendy1%29" class="tocsubseclink" data-pltdoc="x">gendy1</a></td></tr><tr><td><span class="tocsublinknumber">2.100<tt> </tt></span><a href="#%28part.__pulse_rate_freq_width_%29" class="tocsubseclink" data-pltdoc="x">(pulse rate freq width)</a></td></tr><tr><td><span class="tocsublinknumber">2.101<tt> </tt></span><a href="#%28part.__shaper_bufnum_in_%29" class="tocsubseclink" data-pltdoc="x">(shaper bufnum in)</a></td></tr><tr><td><span class="tocsublinknumber">2.102<tt> </tt></span><a href="#%28part._.S.C2__.Note_extra_iphase_argument_%29" class="tocsubseclink" data-pltdoc="x">SC2:<span class="mywbr"> </span> Note extra iphase argument.</a></td></tr><tr><td><span class="tocsublinknumber">2.103<tt> </tt></span><a href="#%28part.__v-osc_rate_bufpos_freq_phase_%29" class="tocsubseclink" data-pltdoc="x">(v-<wbr></wbr>osc rate bufpos freq phase)</a></td></tr><tr><td><span class="tocsublinknumber">2.104<tt> </tt></span><a href="#%28part.__var-saw_rate_freq_iphasewidth_%29" class="tocsubseclink" data-pltdoc="x">(var-<wbr></wbr>saw rate freq iphasewidth)</a></td></tr><tr><td><span class="tocsublinknumber">2.105<tt> </tt></span><a href="#%28part._buf-wr%29" class="tocsubseclink" data-pltdoc="x">buf-<wbr></wbr>wr</a></td></tr><tr><td><span class="tocsublinknumber">2.106<tt> </tt></span><a href="#%28part._impulse%29" class="tocsubseclink" data-pltdoc="x">impulse</a></td></tr><tr><td><span class="tocsublinknumber">2.107<tt> </tt></span><a href="#%28part._blip%29" class="tocsubseclink" data-pltdoc="x">blip</a></td></tr><tr><td><span class="tocsublinknumber">2.108<tt> </tt></span><a href="#%28part.__select_which_array_%29" class="tocsubseclink" data-pltdoc="x">(select which array)</a></td></tr><tr><td><span class="tocsublinknumber">2.109<tt> </tt></span><a href="#%28part._formant%29" class="tocsubseclink" data-pltdoc="x">formant</a></td></tr><tr><td><span class="tocsublinknumber">2.110<tt> </tt></span><a href="#%28part._c-osc%29" class="tocsubseclink" data-pltdoc="x">c-<wbr></wbr>osc</a></td></tr><tr><td><span class="tocsublinknumber">2.111<tt> </tt></span><a href="#%28part.__v-osc3_rate_bufpos_freq1_freq2_freq3_%29" class="tocsubseclink" data-pltdoc="x">(v-<wbr></wbr>osc3 rate bufpos freq1 freq2 freq3)</a></td></tr><tr><td><span class="tocsublinknumber">2.112<tt> </tt></span><a href="#%28part.__lf-cub_rate_freq_iphase_%29" class="tocsubseclink" data-pltdoc="x">(lf-<wbr></wbr>cub rate freq iphase)</a></td></tr><tr><td><span class="tocsublinknumber">2.113<tt> </tt></span><a href="#%28part.__lf-pulse_rate_freq_iphase_width_%29" class="tocsubseclink" data-pltdoc="x">(lf-<wbr></wbr>pulse rate freq iphase width)</a></td></tr><tr><td><span class="tocsublinknumber">2.114<tt> </tt></span><a href="#%28part._index%29" class="tocsubseclink" data-pltdoc="x">index</a></td></tr><tr><td><span class="tocsublinknumber">2.115<tt> </tt></span><a href="#%28part._.See_lf-cub_%29" class="tocsubseclink" data-pltdoc="x">See lf-<wbr></wbr>cub.</a></td></tr><tr><td><span class="tocsublinknumber">2.116<tt> </tt></span><a href="#%28part.__sync-saw_rate_sync.Freq_saw.Freq_%29" class="tocsubseclink" data-pltdoc="x">(sync-<wbr></wbr>saw rate sync<span class="mywbr"> </span>Freq saw<span class="mywbr"> </span>Freq)</a></td></tr><tr><td><span class="tocsublinknumber">2.117<tt> </tt></span><a href="#%28part.__t-choose_trig_array_%29" class="tocsubseclink" data-pltdoc="x">(t-<wbr></wbr>choose trig array)</a></td></tr><tr><td><span class="tocsublinknumber">2.118<tt> </tt></span><a href="#%28part.__sin-osc_rate_freq_phase_%29" class="tocsubseclink" data-pltdoc="x">(sin-<wbr></wbr>osc rate freq phase)</a></td></tr><tr><td><span class="tocsublinknumber">2.119<tt> </tt></span><a href="#%28part.__klang_rate_freq.Scale_freq.Offset_spec_%29" class="tocsubseclink" data-pltdoc="x">(klang rate freq<span class="mywbr"> </span>Scale freq<span class="mywbr"> </span>Offset spec)</a></td></tr><tr><td><span class="tocsublinknumber">2.120<tt> </tt></span><a href="#%28part.__lag-in_num-channels_bus_lag_%29" class="tocsubseclink" data-pltdoc="x">(lag-<wbr></wbr>in num-<wbr></wbr>channels bus lag)</a></td></tr><tr><td><span class="tocsublinknumber">2.121<tt> </tt></span><a href="#%28part.__sound-in_channel_%29" class="tocsubseclink" data-pltdoc="x">(sound-<wbr></wbr>in channel)</a></td></tr><tr><td><span class="tocsublinknumber">2.122<tt> </tt></span><a href="#%28part.__in_num-channels_rate_bus_%29" class="tocsubseclink" data-pltdoc="x">(in num-<wbr></wbr>channels rate bus)</a></td></tr><tr><td><span class="tocsublinknumber">2.123<tt> </tt></span><a href="#%28part.__in-trig_num-channels_bus_%29" class="tocsubseclink" data-pltdoc="x">(in-<wbr></wbr>trig num-<wbr></wbr>channels bus)</a></td></tr><tr><td><span class="tocsublinknumber">2.124<tt> </tt></span><a href="#%28part.__replace-out_bufferindex_inputs_%29" class="tocsubseclink" data-pltdoc="x">(replace-<wbr></wbr>out bufferindex inputs)</a></td></tr><tr><td><span class="tocsublinknumber">2.125<tt> </tt></span><a href="#%28part.__local-in_num-channels_rate_%29" class="tocsubseclink" data-pltdoc="x">(local-<wbr></wbr>in num-<wbr></wbr>channels rate)</a></td></tr><tr><td><span class="tocsublinknumber">2.126<tt> </tt></span><a href="#%28part.__offset-out_bufferindex_inputs_%29" class="tocsubseclink" data-pltdoc="x">(offset-<wbr></wbr>out bufferindex inputs)</a></td></tr><tr><td><span class="tocsublinknumber">2.127<tt> </tt></span><a href="#%28part.__in-feedback_num-channels_bus_%29" class="tocsubseclink" data-pltdoc="x">(in-<wbr></wbr>feedback num-<wbr></wbr>channels bus)</a></td></tr><tr><td><span class="tocsublinknumber">2.128<tt> </tt></span><a href="#%28part.__x-out_buffer-index_xfade_inputs_%29" class="tocsubseclink" data-pltdoc="x">(x-<wbr></wbr>out buffer-<wbr></wbr>index xfade inputs)</a></td></tr><tr><td><span class="tocsublinknumber">2.129<tt> </tt></span><a href="#%28part.__out_bufferindex_inputs_%29" class="tocsubseclink" data-pltdoc="x">(out bufferindex inputs)</a></td></tr><tr><td><span class="tocsublinknumber">2.130<tt> </tt></span><a href="#%28part.__mix_.U.Gen_%29" class="tocsubseclink" data-pltdoc="x">(mix UGen)</a></td></tr><tr><td><span class="tocsublinknumber">2.131<tt> </tt></span><a href="#%28part.__mix-fill_n_f_%29" class="tocsubseclink" data-pltdoc="x">(mix-<wbr></wbr>fill n f)</a></td></tr><tr><td><span class="tocsublinknumber">2.132<tt> </tt></span><a href="#%28part.__latch_in_trig_%29" class="tocsubseclink" data-pltdoc="x">(latch in trig)</a></td></tr><tr><td><span class="tocsublinknumber">2.133<tt> </tt></span><a href="#%28part.__decay_in_decay.Time_%29" class="tocsubseclink" data-pltdoc="x">(decay in decay<span class="mywbr"> </span>Time)</a></td></tr><tr><td><span class="tocsublinknumber">2.134<tt> </tt></span><a href="#%28part.__wrap-index_bufnum_in_%29" class="tocsubseclink" data-pltdoc="x">(wrap-<wbr></wbr>index bufnum in)</a></td></tr><tr><td><span class="tocsublinknumber">2.135<tt> </tt></span><a href="#%28part.__mouse-y_rate_minval_maxval_warp_lag_%29" class="tocsubseclink" data-pltdoc="x">(mouse-<wbr></wbr>y rate minval maxval warp lag)</a></td></tr><tr><td><span class="tocsublinknumber">2.136<tt> </tt></span><a href="#%28part.__degree-to-key_bufnum_in_octave_%29" class="tocsubseclink" data-pltdoc="x">(degree-<wbr></wbr>to-<wbr></wbr>key bufnum in octave)</a></td></tr><tr><td><span class="tocsublinknumber">2.137<tt> </tt></span><a href="#%28part.__key-state_rate_keynum_minval_maxval_lag_%29" class="tocsubseclink" data-pltdoc="x">(key-<wbr></wbr>state rate keynum minval maxval lag)</a></td></tr><tr><td><span class="tocsublinknumber">2.138<tt> </tt></span><a href="#%28part.__mrg2_left_right_%29" class="tocsubseclink" data-pltdoc="x">(mrg2 left right)</a></td></tr><tr><td><span class="tocsublinknumber">2.139<tt> </tt></span><a href="#%28part.__mouse-button_rate_minval_maxval_lag_%29" class="tocsubseclink" data-pltdoc="x">(mouse-<wbr></wbr>button rate minval maxval lag)</a></td></tr><tr><td><span class="tocsublinknumber">2.140<tt> </tt></span><a href="#%28part.__slew_in_up_dn_%29" class="tocsubseclink" data-pltdoc="x">(slew in up dn)</a></td></tr><tr><td><span class="tocsublinknumber">2.141<tt> </tt></span><a href="#%28part.__mouse-x_rate_minval_maxval_warp_lag_%29" class="tocsubseclink" data-pltdoc="x">(mouse-<wbr></wbr>x rate minval maxval warp lag)</a></td></tr><tr><td><span class="tocsublinknumber">2.142<tt> </tt></span><a href="#%28part.__decay2_in_attack.Time_decay.Time_%29" class="tocsubseclink" data-pltdoc="x">(decay2 in attack<span class="mywbr"> </span>Time decay<span class="mywbr"> </span>Time)</a></td></tr><tr><td><span class="tocsublinknumber">2.143<tt> </tt></span><a href="#%28part.__k2a_in_%29" class="tocsubseclink" data-pltdoc="x">(k2a in)</a></td></tr><tr><td><span class="tocsublinknumber">2.144<tt> </tt></span><a href="#%28part.__mul-add_a_b_c_%29" class="tocsubseclink" data-pltdoc="x">(mul-<wbr></wbr>add a b c)</a></td></tr><tr><td><span class="tocsublinknumber">2.145<tt> </tt></span><a href="#%28part.__clip2_a_b_%29" class="tocsubseclink" data-pltdoc="x">(clip2 a b)</a></td></tr><tr><td><span class="tocsublinknumber">2.146<tt> </tt></span><a href="#%28part.__.Atan2_x_y_%29" class="tocsubseclink" data-pltdoc="x">(Atan2 x y)</a></td></tr><tr><td><span class="tocsublinknumber">2.147<tt> </tt></span><a href="#%28part.__trunc_a_b_%29" class="tocsubseclink" data-pltdoc="x">(trunc a b)</a></td></tr><tr><td><span class="tocsublinknumber">2.148<tt> </tt></span><a href="#%28part.__sub_a_b_%29" class="tocsubseclink" data-pltdoc="x">(sub a b)</a></td></tr><tr><td><span class="tocsublinknumber">2.149<tt> </tt></span><a href="#%28part.__round-up_a_b_%29" class="tocsubseclink" data-pltdoc="x">(round-<wbr></wbr>up a b)</a></td></tr><tr><td><span class="tocsublinknumber">2.150<tt> </tt></span><a href="#%28part.__ring4_a_b_%29" class="tocsubseclink" data-pltdoc="x">(ring4 a b)</a></td></tr><tr><td><span class="tocsublinknumber">2.151<tt> </tt></span><a href="#%28part.__pow_a_b_%29" class="tocsubseclink" data-pltdoc="x">(pow a b)</a></td></tr><tr><td><span class="tocsublinknumber">2.152<tt> </tt></span><a href="#%28part.__ring1_a_b_%29" class="tocsubseclink" data-pltdoc="x">(ring1 a b)</a></td></tr><tr><td><span class="tocsublinknumber">2.153<tt> </tt></span><a href="#%28part.__gt_a_b_%29" class="tocsubseclink" data-pltdoc="x">(gt a b)</a></td></tr><tr><td><span class="tocsublinknumber">2.154<tt> </tt></span><a href="#%28part.__add_a_b_%29" class="tocsubseclink" data-pltdoc="x">(add a b)</a></td></tr><tr><td><span class="tocsublinknumber">2.155<tt> </tt></span><a href="#%28part.__abs-dif_a_b_%29" class="tocsubseclink" data-pltdoc="x">(abs-<wbr></wbr>dif a b)</a></td></tr><tr><td><span class="tocsublinknumber">2.156<tt> </tt></span><a href="#%28part.__am-clip_a_b_%29" class="tocsubseclink" data-pltdoc="x">(am-<wbr></wbr>clip a b)</a></td></tr><tr><td><span class="tocsublinknumber">2.157<tt> </tt></span><a href="#%28part.__ge_a_b_%29" class="tocsubseclink" data-pltdoc="x">(ge a b)</a></td></tr><tr><td><span class="tocsublinknumber">2.158<tt> </tt></span><a href="#%28part.__max_a_b_%29" class="tocsubseclink" data-pltdoc="x">(max a b)</a></td></tr><tr><td><span class="tocsublinknumber">2.159<tt> </tt></span><a href="#%28part.__ring3_a_b_%29" class="tocsubseclink" data-pltdoc="x">(ring3 a b)</a></td></tr><tr><td><span class="tocsublinknumber">2.160<tt> </tt></span><a href="#%28part.__thresh_a_b_%29" class="tocsubseclink" data-pltdoc="x">(thresh a b)</a></td></tr><tr><td><span class="tocsublinknumber">2.161<tt> </tt></span><a href="#%28part.__dif-sqr_a_b_%29" class="tocsubseclink" data-pltdoc="x">(dif-<wbr></wbr>sqr a b)</a></td></tr><tr><td><span class="tocsublinknumber">2.162<tt> </tt></span><a href="#%28part.__excess_a_b_%29" class="tocsubseclink" data-pltdoc="x">(excess a b)</a></td></tr><tr><td><span class="tocsublinknumber">2.163<tt> </tt></span><a href="#%28part.__fold2_a_b_%29" class="tocsubseclink" data-pltdoc="x">(fold2 a b)</a></td></tr><tr><td><span class="tocsublinknumber">2.164<tt> </tt></span><a href="#%28part.__sqr-dif_a_b_%29" class="tocsubseclink" data-pltdoc="x">(sqr-<wbr></wbr>dif a b)</a></td></tr><tr><td><span class="tocsublinknumber">2.165<tt> </tt></span><a href="#%28part.__hypot_x_y_%29" class="tocsubseclink" data-pltdoc="x">(hypot x y)</a></td></tr><tr><td><span class="tocsublinknumber">2.166<tt> </tt></span><a href="#%28part.__sqr-sum_a_b_%29" class="tocsubseclink" data-pltdoc="x">(sqr-<wbr></wbr>sum a b)</a></td></tr><tr><td><span class="tocsublinknumber">2.167<tt> </tt></span><a href="#%28part.__sum-sqr_a_b_%29" class="tocsubseclink" data-pltdoc="x">(sum-<wbr></wbr>sqr a b)</a></td></tr><tr><td><span class="tocsublinknumber">2.168<tt> </tt></span><a href="#%28part.__le_a_b_%29" class="tocsubseclink" data-pltdoc="x">(le a b)</a></td></tr><tr><td><span class="tocsublinknumber">2.169<tt> </tt></span><a href="#%28part._eq%29" class="tocsubseclink" data-pltdoc="x">eq</a></td></tr><tr><td><span class="tocsublinknumber">2.170<tt> </tt></span><a href="#%28part.__scale-neg_a_b_%29" class="tocsubseclink" data-pltdoc="x">(scale-<wbr></wbr>neg a b)</a></td></tr><tr><td><span class="tocsublinknumber">2.171<tt> </tt></span><a href="#%28part.__ring2_a_b_%29" class="tocsubseclink" data-pltdoc="x">(ring2 a b)</a></td></tr><tr><td><span class="tocsublinknumber">2.172<tt> </tt></span><a href="#%28part.__.Mod_a_b_%29" class="tocsubseclink" data-pltdoc="x">(Mod a b)</a></td></tr><tr><td><span class="tocsublinknumber">2.173<tt> </tt></span><a href="#%28part.__fdiv_a_b_%29" class="tocsubseclink" data-pltdoc="x">(fdiv a b)</a></td></tr><tr><td><span class="tocsublinknumber">2.174<tt> </tt></span><a href="#%28part.__mul_a_b_%29" class="tocsubseclink" data-pltdoc="x">(mul a b)</a></td></tr><tr><td><span class="tocsublinknumber">2.175<tt> </tt></span><a href="#%28part.__min_a_b_%29" class="tocsubseclink" data-pltdoc="x">(min a b)</a></td></tr><tr><td><span class="tocsublinknumber">2.176<tt> </tt></span><a href="#%28part.__lt_a_b_%29" class="tocsubseclink" data-pltdoc="x">(lt a b)</a></td></tr><tr><td><span class="tocsublinknumber">2.177<tt> </tt></span><a href="#%28part.__wrap2_a_b_%29" class="tocsubseclink" data-pltdoc="x">(wrap2 a b)</a></td></tr><tr><td><span class="tocsublinknumber">2.178<tt> </tt></span><a href="#%28part.__round_a_b_%29" class="tocsubseclink" data-pltdoc="x">(round a b)</a></td></tr><tr><td><span class="tocsublinknumber">2.179<tt> </tt></span><a href="#%28part.__hasher_in_%29" class="tocsubseclink" data-pltdoc="x">(hasher in)</a></td></tr><tr><td><span class="tocsublinknumber">2.180<tt> </tt></span><a href="#%28part.__rand-seed_rate_trig_seed_%29" class="tocsubseclink" data-pltdoc="x">(rand-<wbr></wbr>seed rate trig seed)</a></td></tr><tr><td><span class="tocsublinknumber">2.181<tt> </tt></span><a href="#%28part.__lfd-noise0_rate_freq_%29" class="tocsubseclink" data-pltdoc="x">(lfd-<wbr></wbr>noise0 rate freq)</a></td></tr><tr><td><span class="tocsublinknumber">2.182<tt> </tt></span><a href="#%28part.__lfclip-noise_rate_freq_%29" class="tocsubseclink" data-pltdoc="x">(lfclip-<wbr></wbr>noise rate freq)</a></td></tr><tr><td><span class="tocsublinknumber">2.183<tt> </tt></span><a href="#%28part._.See_lf-noise0%29" class="tocsubseclink" data-pltdoc="x">See lf-<wbr></wbr>noise0</a></td></tr><tr><td><span class="tocsublinknumber">2.184<tt> </tt></span><a href="#%28part.__clip-noise_rate_%29" class="tocsubseclink" data-pltdoc="x">(clip-<wbr></wbr>noise rate)</a></td></tr><tr><td><span class="tocsublinknumber">2.185<tt> </tt></span><a href="#%28part.__ti-rand_lo_hi_trig_%29" class="tocsubseclink" data-pltdoc="x">(ti-<wbr></wbr>rand lo hi trig)</a></td></tr><tr><td><span class="tocsublinknumber">2.186<tt> </tt></span><a href="#%28part.__lf-noise0_rate_freq_%29" class="tocsubseclink" data-pltdoc="x">(lf-<wbr></wbr>noise0 rate freq)</a></td></tr><tr><td><span class="tocsublinknumber">2.187<tt> </tt></span><a href="#%28part.__pink-noise_rate_%29" class="tocsubseclink" data-pltdoc="x">(pink-<wbr></wbr>noise rate)</a></td></tr><tr><td><span class="tocsublinknumber">2.188<tt> </tt></span><a href="#%28part.__rand_lo_hi_%29" class="tocsubseclink" data-pltdoc="x">(rand lo hi)</a></td></tr><tr><td><span class="tocsublinknumber">2.189<tt> </tt></span><a href="#%28part.__gray-noise_rate_%29" class="tocsubseclink" data-pltdoc="x">(gray-<wbr></wbr>noise rate)</a></td></tr><tr><td><span class="tocsublinknumber">2.190<tt> </tt></span><a href="#%28part._.See_lfd-noise0%29" class="tocsubseclink" data-pltdoc="x">See lfd-<wbr></wbr>noise0</a></td></tr><tr><td><span class="tocsublinknumber">2.191<tt> </tt></span><a href="#%28part.__i-rand_lo_hi_%29" class="tocsubseclink" data-pltdoc="x">(i-<wbr></wbr>rand lo hi)</a></td></tr><tr><td><span class="tocsublinknumber">2.192<tt> </tt></span><a href="#%28part.__n-rand_lo_hi_n_%29" class="tocsubseclink" data-pltdoc="x">(n-<wbr></wbr>rand lo hi n)</a></td></tr><tr><td><span class="tocsublinknumber">2.193<tt> </tt></span><a href="#%28part.__lfdclip-noise_rate_freq_%29" class="tocsubseclink" data-pltdoc="x">(lfdclip-<wbr></wbr>noise rate freq)</a></td></tr><tr><td><span class="tocsublinknumber">2.194<tt> </tt></span><a href="#%28part.__coin-gate_prob_in_%29" class="tocsubseclink" data-pltdoc="x">(coin-<wbr></wbr>gate prob in)</a></td></tr><tr><td><span class="tocsublinknumber">2.195<tt> </tt></span><a href="#%28part.__t-exp-rand_lo_hi_trig_%29" class="tocsubseclink" data-pltdoc="x">(t-<wbr></wbr>exp-<wbr></wbr>rand lo hi trig)</a></td></tr><tr><td><span class="tocsublinknumber">2.196<tt> </tt></span><a href="#%28part.__t-rand_lo_hi_trig_%29" class="tocsubseclink" data-pltdoc="x">(t-<wbr></wbr>rand lo hi trig)</a></td></tr><tr><td><span class="tocsublinknumber">2.197<tt> </tt></span><a href="#%28part.__white-noise_rate_%29" class="tocsubseclink" data-pltdoc="x">(white-<wbr></wbr>noise rate)</a></td></tr><tr><td><span class="tocsublinknumber">2.198<tt> </tt></span><a href="#%28part.__dust2_rate_density_%29" class="tocsubseclink" data-pltdoc="x">(dust2 rate density)</a></td></tr><tr><td><span class="tocsublinknumber">2.199<tt> </tt></span><a href="#%28part._.See_lfd-noise0%29" class="tocsubseclink" data-pltdoc="x">See lfd-<wbr></wbr>noise0</a></td></tr><tr><td><span class="tocsublinknumber">2.200<tt> </tt></span><a href="#%28part.__rand-id_rate_id_%29" class="tocsubseclink" data-pltdoc="x">(rand-<wbr></wbr>id rate id)</a></td></tr><tr><td><span class="tocsublinknumber">2.201<tt> </tt></span><a href="#%28part._.See_lf-noise0%29" class="tocsubseclink" data-pltdoc="x">See lf-<wbr></wbr>noise0</a></td></tr><tr><td><span class="tocsublinknumber">2.202<tt> </tt></span><a href="#%28part.__mantissa-mask_in_bits_%29" class="tocsubseclink" data-pltdoc="x">(mantissa-<wbr></wbr>mask in bits)</a></td></tr><tr><td><span class="tocsublinknumber">2.203<tt> </tt></span><a href="#%28part.__dust_rate_density_%29" class="tocsubseclink" data-pltdoc="x">(dust rate density)</a></td></tr><tr><td><span class="tocsublinknumber">2.204<tt> </tt></span><a href="#%28part.__lin-rand_lo_hi_minmax_%29" class="tocsubseclink" data-pltdoc="x">(lin-<wbr></wbr>rand lo hi minmax)</a></td></tr><tr><td><span class="tocsublinknumber">2.205<tt> </tt></span><a href="#%28part.__exp-rand_lo_hi_%29" class="tocsubseclink" data-pltdoc="x">(exp-<wbr></wbr>rand lo hi)</a></td></tr><tr><td><span class="tocsublinknumber">2.206<tt> </tt></span><a href="#%28part.__brown-noise_rate_%29" class="tocsubseclink" data-pltdoc="x">(brown-<wbr></wbr>noise rate)</a></td></tr><tr><td><span class="tocsublinknumber">2.207<tt> </tt></span><a href="#%28part.__u_log_a_%29" class="tocsubseclink" data-pltdoc="x">(u:<span class="mywbr"> </span>log a)</a></td></tr><tr><td><span class="tocsublinknumber">2.208<tt> </tt></span><a href="#%28part.__frac_a_%29" class="tocsubseclink" data-pltdoc="x">(frac a)</a></td></tr><tr><td><span class="tocsublinknumber">2.209<tt> </tt></span><a href="#%28part.__arc-tan_a_%29" class="tocsubseclink" data-pltdoc="x">(arc-<wbr></wbr>tan a)</a></td></tr><tr><td><span class="tocsublinknumber">2.210<tt> </tt></span><a href="#%28part.__distort_a_%29" class="tocsubseclink" data-pltdoc="x">(distort a)</a></td></tr><tr><td><span class="tocsublinknumber">2.211<tt> </tt></span><a href="#%28part.__tan-h_a_%29" class="tocsubseclink" data-pltdoc="x">(tan-<wbr></wbr>h a)</a></td></tr><tr><td><span class="tocsublinknumber">2.212<tt> </tt></span><a href="#%28part.__u_floor_a_%29" class="tocsubseclink" data-pltdoc="x">(u:<span class="mywbr"> </span>floor a)</a></td></tr><tr><td><span class="tocsublinknumber">2.213<tt> </tt></span><a href="#%28part.__cps-oct_a_%29" class="tocsubseclink" data-pltdoc="x">(cps-<wbr></wbr>oct a)</a></td></tr><tr><td><span class="tocsublinknumber">2.214<tt> </tt></span><a href="#%28part.__db-amp_a_%29" class="tocsubseclink" data-pltdoc="x">(db-<wbr></wbr>amp a)</a></td></tr><tr><td><span class="tocsublinknumber">2.215<tt> </tt></span><a href="#%28part.__u_sqrt_a_%29" class="tocsubseclink" data-pltdoc="x">(u:<span class="mywbr"> </span>sqrt a)</a></td></tr><tr><td><span class="tocsublinknumber">2.216<tt> </tt></span><a href="#%28part.__soft-clip_a_%29" class="tocsubseclink" data-pltdoc="x">(soft-<wbr></wbr>clip a)</a></td></tr><tr><td><span class="tocsublinknumber">2.217<tt> </tt></span><a href="#%28part.__cps-midi_a_%29" class="tocsubseclink" data-pltdoc="x">(cps-<wbr></wbr>midi a)</a></td></tr><tr><td><span class="tocsublinknumber">2.218<tt> </tt></span><a href="#%28part.__is-strictly-positive_a_%29" class="tocsubseclink" data-pltdoc="x">(is-<wbr></wbr>strictly-<wbr></wbr>positive a)</a></td></tr><tr><td><span class="tocsublinknumber">2.219<tt> </tt></span><a href="#%28part.__u_tan_a_%29" class="tocsubseclink" data-pltdoc="x">(u:<span class="mywbr"> </span>tan a)</a></td></tr><tr><td><span class="tocsublinknumber">2.220<tt> </tt></span><a href="#%28part.__cos-h_a_%29" class="tocsubseclink" data-pltdoc="x">(cos-<wbr></wbr>h a)</a></td></tr><tr><td><span class="tocsublinknumber">2.221<tt> </tt></span><a href="#%28part.__amp-db_a_%29" class="tocsubseclink" data-pltdoc="x">(amp-<wbr></wbr>db a)</a></td></tr><tr><td><span class="tocsublinknumber">2.222<tt> </tt></span><a href="#%28part.__abs_a_%29" class="tocsubseclink" data-pltdoc="x">(abs a)</a></td></tr><tr><td><span class="tocsublinknumber">2.223<tt> </tt></span><a href="#%28part.__log10_a_%29" class="tocsubseclink" data-pltdoc="x">(log10 a)</a></td></tr><tr><td><span class="tocsublinknumber">2.224<tt> </tt></span><a href="#%28part.__midi-cps_a_%29" class="tocsubseclink" data-pltdoc="x">(midi-<wbr></wbr>cps a)</a></td></tr><tr><td><span class="tocsublinknumber">2.225<tt> </tt></span><a href="#%28part.__is-positive_a_%29" class="tocsubseclink" data-pltdoc="x">(is-<wbr></wbr>positive a)</a></td></tr><tr><td><span class="tocsublinknumber">2.226<tt> </tt></span><a href="#%28part.__sign_a_%29" class="tocsubseclink" data-pltdoc="x">(sign a)</a></td></tr><tr><td><span class="tocsublinknumber">2.227<tt> </tt></span><a href="#%28part.__neg_a_%29" class="tocsubseclink" data-pltdoc="x">(neg a)</a></td></tr><tr><td><span class="tocsublinknumber">2.228<tt> </tt></span><a href="#%28part.__log2_a_%29" class="tocsubseclink" data-pltdoc="x">(log2 a)</a></td></tr><tr><td><span class="tocsublinknumber">2.229<tt> </tt></span><a href="#%28part.__ceil_a_%29" class="tocsubseclink" data-pltdoc="x">(ceil a)</a></td></tr><tr><td><span class="tocsublinknumber">2.230<tt> </tt></span><a href="#%28part.__arc-cos_a_%29" class="tocsubseclink" data-pltdoc="x">(arc-<wbr></wbr>cos a)</a></td></tr><tr><td><span class="tocsublinknumber">2.231<tt> </tt></span><a href="#%28part.__exp_a_%29" class="tocsubseclink" data-pltdoc="x">(exp a)</a></td></tr><tr><td><span class="tocsublinknumber">2.232<tt> </tt></span><a href="#%28part.__squared_a_%29" class="tocsubseclink" data-pltdoc="x">(squared a)</a></td></tr><tr><td><span class="tocsublinknumber">2.233<tt> </tt></span><a href="#%28part.__arc-sin_a_%29" class="tocsubseclink" data-pltdoc="x">(arc-<wbr></wbr>sin a)</a></td></tr><tr><td><span class="tocsublinknumber">2.234<tt> </tt></span><a href="#%28part.__cubed_a_%29" class="tocsubseclink" data-pltdoc="x">(cubed a)</a></td></tr><tr><td><span class="tocsublinknumber">2.235<tt> </tt></span><a href="#%28part.__is-negative_a_%29" class="tocsubseclink" data-pltdoc="x">(is-<wbr></wbr>negative a)</a></td></tr><tr><td><span class="tocsublinknumber">2.236<tt> </tt></span><a href="#%28part.__oct-cps_a_%29" class="tocsubseclink" data-pltdoc="x">(oct-<wbr></wbr>cps a)</a></td></tr><tr><td><span class="tocsublinknumber">2.237<tt> </tt></span><a href="#%28part.__u_sin_a_%29" class="tocsubseclink" data-pltdoc="x">(u:<span class="mywbr"> </span>sin a)</a></td></tr><tr><td><span class="tocsublinknumber">2.238<tt> </tt></span><a href="#%28part.__sin-h_a_%29" class="tocsubseclink" data-pltdoc="x">(sin-<wbr></wbr>h a)</a></td></tr><tr><td><span class="tocsublinknumber">2.239<tt> </tt></span><a href="#%28part.__cos_a_%29" class="tocsubseclink" data-pltdoc="x">(cos a)</a></td></tr><tr><td><span class="tocsublinknumber">2.240<tt> </tt></span><a href="#%28part.__pv-mul_buffer.A_buffer.B_%29" class="tocsubseclink" data-pltdoc="x">(pv-<wbr></wbr>mul buffer<span class="mywbr"> </span>A buffer<span class="mywbr"> </span>B)</a></td></tr><tr><td><span class="tocsublinknumber">2.241<tt> </tt></span><a href="#%28part.__pv-mag-squared_buffer_%29" class="tocsubseclink" data-pltdoc="x">(pv-<wbr></wbr>mag-<wbr></wbr>squared buffer)</a></td></tr><tr><td><span class="tocsublinknumber">2.242<tt> </tt></span><a href="#%28part.__pv-min_buffer.A_buffer.B_%29" class="tocsubseclink" data-pltdoc="x">(pv-<wbr></wbr>min buffer<span class="mywbr"> </span>A buffer<span class="mywbr"> </span>B)</a></td></tr><tr><td><span class="tocsublinknumber">2.243<tt> </tt></span><a href="#%28part.__pv-mag-noise_buffer_%29" class="tocsubseclink" data-pltdoc="x">(pv-<wbr></wbr>mag-<wbr></wbr>noise buffer)</a></td></tr><tr><td><span class="tocsublinknumber">2.244<tt> </tt></span><a href="#%28part.__pv-mag-below_buffer_threshold_%29" class="tocsubseclink" data-pltdoc="x">(pv-<wbr></wbr>mag-<wbr></wbr>below buffer threshold)</a></td></tr><tr><td><span class="tocsublinknumber">2.245<tt> </tt></span><a href="#%28part.__convolution_in_kernel_framesize_%29" class="tocsubseclink" data-pltdoc="x">(convolution in kernel framesize)</a></td></tr><tr><td><span class="tocsublinknumber">2.246<tt> </tt></span><a href="#%28part.__pv-jensen-andersen_buffer_propsc_prophfe_prophfc_propsf_threshold_waittime_%29" class="tocsubseclink" data-pltdoc="x">(pv-<wbr></wbr>jensen-<wbr></wbr>andersen buffer propsc prophfe prophfc propsf threshold waittime)</a></td></tr><tr><td><span class="tocsublinknumber">2.247<tt> </tt></span><a href="#%28part.__pv-phase-shift270_buffer_%29" class="tocsubseclink" data-pltdoc="x">(pv-<wbr></wbr>phase-<wbr></wbr>shift270 buffer)</a></td></tr><tr><td><span class="tocsublinknumber">2.248<tt> </tt></span><a href="#%28part.__pv-hainsworth-foote_buffer_proph_propf_threshold_waittime_%29" class="tocsubseclink" data-pltdoc="x">(pv-<wbr></wbr>hainsworth-<wbr></wbr>foote buffer proph propf threshold waittime)</a></td></tr><tr><td><span class="tocsublinknumber">2.249<tt> </tt></span><a href="#%28part.__pv-phase-shift_buffer_shift_%29" class="tocsubseclink" data-pltdoc="x">(pv-<wbr></wbr>phase-<wbr></wbr>shift buffer shift)</a></td></tr><tr><td><span class="tocsublinknumber">2.250<tt> </tt></span><a href="#%28part.__pv-copy_buffer.A_buffer.B_%29" class="tocsubseclink" data-pltdoc="x">(pv-<wbr></wbr>copy buffer<span class="mywbr"> </span>A buffer<span class="mywbr"> </span>B)</a></td></tr><tr><td><span class="tocsublinknumber">2.251<tt> </tt></span><a href="#%28part.__pv-brick-wall_buffer_wipe_%29" class="tocsubseclink" data-pltdoc="x">(pv-<wbr></wbr>brick-<wbr></wbr>wall buffer wipe)</a></td></tr><tr><td><span class="tocsublinknumber">2.252<tt> </tt></span><a href="#%28part.__pv-mag-smear_buffer_bins_%29" class="tocsubseclink" data-pltdoc="x">(pv-<wbr></wbr>mag-<wbr></wbr>smear buffer bins)</a></td></tr><tr><td><span class="tocsublinknumber">2.253<tt> </tt></span><a href="#%28part.__pv-mag-above_buffer_threshold_%29" class="tocsubseclink" data-pltdoc="x">(pv-<wbr></wbr>mag-<wbr></wbr>above buffer threshold)</a></td></tr><tr><td><span class="tocsublinknumber">2.254<tt> </tt></span><a href="#%28part.__pv-bin-shift_buffer_stretch_shift_%29" class="tocsubseclink" data-pltdoc="x">(pv-<wbr></wbr>bin-<wbr></wbr>shift buffer stretch shift)</a></td></tr><tr><td><span class="tocsublinknumber">2.255<tt> </tt></span><a href="#%28part.__fft_buffer_in_hop_wintype_active_%29" class="tocsubseclink" data-pltdoc="x">(fft buffer in hop wintype active)</a></td></tr><tr><td><span class="tocsublinknumber">2.256<tt> </tt></span><a href="#%28part.__pv-bin-wipe_buffer.A_buffer.B_wipe_%29" class="tocsubseclink" data-pltdoc="x">(pv-<wbr></wbr>bin-<wbr></wbr>wipe buffer<span class="mywbr"> </span>A buffer<span class="mywbr"> </span>B wipe)</a></td></tr><tr><td><span class="tocsublinknumber">2.257<tt> </tt></span><a href="#%28part.__pv-copy.Phase_buffer.A_buffer.B_%29" class="tocsubseclink" data-pltdoc="x">(pv-<wbr></wbr>copy<span class="mywbr"> </span>Phase buffer<span class="mywbr"> </span>A buffer<span class="mywbr"> </span>B)</a></td></tr><tr><td><span class="tocsublinknumber">2.258<tt> </tt></span><a href="#%28part.__pv-phase-shift90_buffer_%29" class="tocsubseclink" data-pltdoc="x">(pv-<wbr></wbr>phase-<wbr></wbr>shift90 buffer)</a></td></tr><tr><td><span class="tocsublinknumber">2.259<tt> </tt></span><a href="#%28part.__convolution2_in_bufnum_trigger_framesize_%29" class="tocsubseclink" data-pltdoc="x">(convolution2 in bufnum trigger framesize)</a></td></tr><tr><td><span class="tocsublinknumber">2.260<tt> </tt></span><a href="#%28part.__pv-rect-comb2_buffer.A_buffer.B_num.Teeth_phase_width_%29" class="tocsubseclink" data-pltdoc="x">(pv-<wbr></wbr>rect-<wbr></wbr>comb2 buffer<span class="mywbr"> </span>A buffer<span class="mywbr"> </span>B num<span class="mywbr"> </span>Teeth phase width)</a></td></tr><tr><td><span class="tocsublinknumber">2.261<tt> </tt></span><a href="#%28part.__pv-add_buffer.A_buffer.B_%29" class="tocsubseclink" data-pltdoc="x">(pv-<wbr></wbr>add buffer<span class="mywbr"> </span>A buffer<span class="mywbr"> </span>B)</a></td></tr><tr><td><span class="tocsublinknumber">2.262<tt> </tt></span><a href="#%28part.__pv-rand-comb_buffer_wipe_trig_%29" class="tocsubseclink" data-pltdoc="x">(pv-<wbr></wbr>rand-<wbr></wbr>comb buffer wipe trig)</a></td></tr><tr><td><span class="tocsublinknumber">2.263<tt> </tt></span><a href="#%28part.__pv-local-max_buffer_threshold_%29" class="tocsubseclink" data-pltdoc="x">(pv-<wbr></wbr>local-<wbr></wbr>max buffer threshold)</a></td></tr><tr><td><span class="tocsublinknumber">2.264<tt> </tt></span><a href="#%28part.__pv-mag-mul_buffer.A_buffer.B_%29" class="tocsubseclink" data-pltdoc="x">(pv-<wbr></wbr>mag-<wbr></wbr>mul buffer<span class="mywbr"> </span>A buffer<span class="mywbr"> </span>B)</a></td></tr><tr><td><span class="tocsublinknumber">2.265<tt> </tt></span><a href="#%28part.__pv-conformal-map_buffer_real_imag_%29" class="tocsubseclink" data-pltdoc="x">(pv-<wbr></wbr>conformal-<wbr></wbr>map buffer real imag)</a></td></tr><tr><td><span class="tocsublinknumber">2.266<tt> </tt></span><a href="#%28part.__pv-diffuser_buffer_trig_%29" class="tocsubseclink" data-pltdoc="x">(pv-<wbr></wbr>diffuser buffer trig)</a></td></tr><tr><td><span class="tocsublinknumber">2.267<tt> </tt></span><a href="#%28part.__pv-max_buffer.A_buffer.B_%29" class="tocsubseclink" data-pltdoc="x">(pv-<wbr></wbr>max buffer<span class="mywbr"> </span>A buffer<span class="mywbr"> </span>B)</a></td></tr><tr><td><span class="tocsublinknumber">2.268<tt> </tt></span><a href="#%28part.__.Ifft_buffer_wintype_%29" class="tocsubseclink" data-pltdoc="x">(Ifft buffer wintype)</a></td></tr><tr><td><span class="tocsublinknumber">2.269<tt> </tt></span><a href="#%28part.__pv-bin-scramble_buffer_wipe_width_trig_%29" class="tocsubseclink" data-pltdoc="x">(pv-<wbr></wbr>bin-<wbr></wbr>scramble buffer wipe width trig)</a></td></tr><tr><td><span class="tocsublinknumber">2.270<tt> </tt></span><a href="#%28part.__pv-rand-wipe_buffer.A_buffer.B_wipe_trig_%29" class="tocsubseclink" data-pltdoc="x">(pv-<wbr></wbr>rand-<wbr></wbr>wipe buffer<span class="mywbr"> </span>A buffer<span class="mywbr"> </span>B wipe trig)</a></td></tr><tr><td><span class="tocsublinknumber">2.271<tt> </tt></span><a href="#%28part.__.Packfft_chain_bufsize_frombin_tobin_zeroothers_magsphases_%29" class="tocsubseclink" data-pltdoc="x">(Packfft chain bufsize frombin tobin zeroothers magsphases)</a></td></tr><tr><td><span class="tocsublinknumber">2.272<tt> </tt></span><a href="#%28part.__pvcollect_chain_numframes_func_frombin_tobin_zeroothers_%29" class="tocsubseclink" data-pltdoc="x">(pvcollect chain numframes func frombin tobin zeroothers)</a></td></tr><tr><td><span class="tocsublinknumber">2.273<tt> </tt></span><a href="#%28part.__.P.V_.Magclip_buffer_threshold_%29" class="tocsubseclink" data-pltdoc="x">(PV_<span class="mywbr"> </span>Magclip buffer threshold)</a></td></tr><tr><td><span class="tocsublinknumber">2.274<tt> </tt></span><a href="#%28part.__.P.V_.Magfreeze_buffer_freeze_%29" class="tocsubseclink" data-pltdoc="x">(PV_<span class="mywbr"> </span>Magfreeze buffer freeze)</a></td></tr><tr><td><span class="tocsublinknumber">2.275<tt> </tt></span><a href="#%28part.__pv-rect-comb_buffer_num.Teeth_phase_width_%29" class="tocsubseclink" data-pltdoc="x">(pv-<wbr></wbr>rect-<wbr></wbr>comb buffer num<span class="mywbr"> </span>Teeth phase width)</a></td></tr><tr><td><span class="tocsublinknumber">2.276<tt> </tt></span><a href="#%28part.__pv-mag-shift_buffer_stretch_shift_%29" class="tocsubseclink" data-pltdoc="x">(pv-<wbr></wbr>mag-<wbr></wbr>shift buffer stretch shift)</a></td></tr><tr><td><span class="tocsublinknumber">2.277<tt> </tt></span><a href="#%28part._.See_allpass-n%29" class="tocsubseclink" data-pltdoc="x">See allpass-<wbr></wbr>n</a></td></tr><tr><td><span class="tocsublinknumber">2.278<tt> </tt></span><a href="#%28part._.See_comb-n%29" class="tocsubseclink" data-pltdoc="x">See comb-<wbr></wbr>n</a></td></tr><tr><td><span class="tocsublinknumber">2.279<tt> </tt></span><a href="#%28part._.See_.Bufallpass-c%29" class="tocsubseclink" data-pltdoc="x">See Bufallpass-<wbr></wbr>c</a></td></tr><tr><td><span class="tocsublinknumber">2.280<tt> </tt></span><a href="#%28part.__free-verb_in_mix_room_damp_%29" class="tocsubseclink" data-pltdoc="x">(free-<wbr></wbr>verb in mix room damp)</a></td></tr><tr><td><span class="tocsublinknumber">2.281<tt> </tt></span><a href="#%28part._.See_free.Verb%29" class="tocsubseclink" data-pltdoc="x">See free<span class="mywbr"> </span>Verb</a></td></tr><tr><td><span class="tocsublinknumber">2.282<tt> </tt></span><a href="#%28part.__play-buf_num.Channels_bufnum_rate_trigger_start.Pos_loop_%29" class="tocsubseclink" data-pltdoc="x">(play-<wbr></wbr>buf num<span class="mywbr"> </span>Channels bufnum rate trigger start<span class="mywbr"> </span>Pos loop)</a></td></tr><tr><td><span class="tocsublinknumber">2.283<tt> </tt></span><a href="#%28part._.See_buf-delay-c%29" class="tocsubseclink" data-pltdoc="x">See buf-<wbr></wbr>delay-<wbr></wbr>c</a></td></tr><tr><td><span class="tocsublinknumber">2.284<tt> </tt></span><a href="#%28part.__delay2_in_%29" class="tocsubseclink" data-pltdoc="x">(delay2 in)</a></td></tr><tr><td><span class="tocsublinknumber">2.285<tt> </tt></span><a href="#%28part.__comb-n_in_max.Delay.Time_delay.Time_decay.Time_%29" class="tocsubseclink" data-pltdoc="x">(comb-<wbr></wbr>n in max<span class="mywbr"> </span>Delay<span class="mywbr"> </span>Time delay<span class="mywbr"> </span>Time decay<span class="mywbr"> </span>Time)</a></td></tr><tr><td><span class="tocsublinknumber">2.286<tt> </tt></span><a href="#%28part._.See_.Bufallpass-c%29" class="tocsubseclink" data-pltdoc="x">See Bufallpass-<wbr></wbr>c</a></td></tr><tr><td><span class="tocsublinknumber">2.287<tt> </tt></span><a href="#%28part.__allpass-n_in_max.Delay.Time_delay.Time_decay.Time_%29" class="tocsubseclink" data-pltdoc="x">(allpass-<wbr></wbr>n in max<span class="mywbr"> </span>Delay<span class="mywbr"> </span>Time delay<span class="mywbr"> </span>Time decay<span class="mywbr"> </span>Time)</a></td></tr><tr><td><span class="tocsublinknumber">2.288<tt> </tt></span><a href="#%28part._.See_comb-n%29" class="tocsubseclink" data-pltdoc="x">See comb-<wbr></wbr>n</a></td></tr><tr><td><span class="tocsublinknumber">2.289<tt> </tt></span><a href="#%28part.__buf-allpass-c_buf_in_delaytime_decaytime_%29" class="tocsubseclink" data-pltdoc="x">(buf-<wbr></wbr>allpass-<wbr></wbr>c buf in delaytime decaytime)</a></td></tr><tr><td><span class="tocsublinknumber">2.290<tt> </tt></span><a href="#%28part._.See_allpass-n%29" class="tocsubseclink" data-pltdoc="x">See allpass-<wbr></wbr>n</a></td></tr><tr><td><span class="tocsublinknumber">2.291<tt> </tt></span><a href="#%28part._.See_buf-delay-c%29" class="tocsubseclink" data-pltdoc="x">See buf-<wbr></wbr>delay-<wbr></wbr>c</a></td></tr><tr><td><span class="tocsublinknumber">2.292<tt> </tt></span><a href="#%28part.__buf-delay-c_buf_in_delaytime_%29" class="tocsubseclink" data-pltdoc="x">(buf-<wbr></wbr>delay-<wbr></wbr>c buf in delaytime)</a></td></tr><tr><td><span class="tocsublinknumber">2.293<tt> </tt></span><a href="#%28part.__pluck_in_tr_maxdelaytime_delaytime_decaytime_coef_%29" class="tocsubseclink" data-pltdoc="x">(pluck in tr maxdelaytime delaytime decaytime coef)</a></td></tr><tr><td><span class="tocsublinknumber">2.294<tt> </tt></span><a href="#%28part.__pitch-shift_in_win.Size_pch.Ratio_pch.Dispersion_time.Dispersion_%29" class="tocsubseclink" data-pltdoc="x">(pitch-<wbr></wbr>shift in win<span class="mywbr"> </span>Size pch<span class="mywbr"> </span>Ratio pch<span class="mywbr"> </span>Dispersion time<span class="mywbr"> </span>Dispersion)</a></td></tr><tr><td><span class="tocsublinknumber">2.295<tt> </tt></span><a href="#%28part._.See_buf-comb-c%29" class="tocsubseclink" data-pltdoc="x">See buf-<wbr></wbr>comb-<wbr></wbr>c</a></td></tr><tr><td><span class="tocsublinknumber">2.296<tt> </tt></span><a href="#%28part.__buf-comb-c_buf_in_delaytime_decaytime_%29" class="tocsubseclink" data-pltdoc="x">(buf-<wbr></wbr>comb-<wbr></wbr>c buf in delaytime decaytime)</a></td></tr><tr><td><span class="tocsublinknumber">2.297<tt> </tt></span><a href="#%28part.__buf-rd_num.Channels_rate_bufnum_phase_loop_interpolation_%29" class="tocsubseclink" data-pltdoc="x">(buf-<wbr></wbr>rd num<span class="mywbr"> </span>Channels rate bufnum phase loop interpolation)</a></td></tr><tr><td><span class="tocsublinknumber">2.298<tt> </tt></span><a href="#%28part.__delay1_in_%29" class="tocsubseclink" data-pltdoc="x">(delay1 in)</a></td></tr><tr><td><span class="tocsublinknumber">2.299<tt> </tt></span><a href="#%28part.__record-buf_bufnum_offset_reclevel_prelevel_run_loop_trigger_inputs_%29" class="tocsubseclink" data-pltdoc="x">(record-<wbr></wbr>buf bufnum offset reclevel prelevel run loop trigger inputs)</a></td></tr><tr><td><span class="tocsublinknumber">2.300<tt> </tt></span><a href="#%28part._.See_delay-n%29" class="tocsubseclink" data-pltdoc="x">See delay-<wbr></wbr>n</a></td></tr><tr><td><span class="tocsublinknumber">2.301<tt> </tt></span><a href="#%28part._.See_buf-comb-c%29" class="tocsubseclink" data-pltdoc="x">See buf-<wbr></wbr>comb-<wbr></wbr>c</a></td></tr><tr><td><span class="tocsublinknumber">2.302<tt> </tt></span><a href="#%28part._.See_delay-n%29" class="tocsubseclink" data-pltdoc="x">See delay-<wbr></wbr>n</a></td></tr><tr><td><span class="tocsublinknumber">2.303<tt> </tt></span><a href="#%28part.__delay-n_in_max.Delay.Time_delay.Time_%29" class="tocsubseclink" data-pltdoc="x">(delay-<wbr></wbr>n in max<span class="mywbr"> </span>Delay<span class="mywbr"> </span>Time delay<span class="mywbr"> </span>Time)</a></td></tr><tr><td><span class="tocsublinknumber">2.304<tt> </tt></span><a href="#%28part.__ball_in_g_damp_friction_%29" class="tocsubseclink" data-pltdoc="x">(ball in g damp friction)</a></td></tr><tr><td><span class="tocsublinknumber">2.305<tt> </tt></span><a href="#%28part.__dswitch1_index_array_%29" class="tocsubseclink" data-pltdoc="x">(dswitch1 index array)</a></td></tr><tr><td><span class="tocsublinknumber">2.306<tt> </tt></span><a href="#%28part.__t-duty_rate_duration_reset_done.Action_level_gap_%29" class="tocsubseclink" data-pltdoc="x">(t-<wbr></wbr>duty rate duration reset done<span class="mywbr"> </span>Action level gap)</a></td></tr><tr><td><span class="tocsublinknumber">2.307<tt> </tt></span><a href="#%28part._.See_dwhite%29" class="tocsubseclink" data-pltdoc="x">See dwhite</a></td></tr><tr><td><span class="tocsublinknumber">2.308<tt> </tt></span><a href="#%28part.__dwhite__length_lo_hi_%29" class="tocsubseclink" data-pltdoc="x">(dwhite length lo hi)</a></td></tr><tr><td><span class="tocsublinknumber">2.309<tt> </tt></span><a href="#%28part.__dbufrd_bufnum_phase_loop_%29" class="tocsubseclink" data-pltdoc="x">(dbufrd bufnum phase loop)</a></td></tr><tr><td><span class="tocsublinknumber">2.310<tt> </tt></span><a href="#%28part.__demand-env-gen_rate_levels_times_shapes_curves_gate_reset%29" class="tocsubseclink" data-pltdoc="x">(demand-<wbr></wbr>env-<wbr></wbr>gen rate levels times shapes curves gate reset</a></td></tr><tr><td><span class="tocsublinknumber">2.311<tt> </tt></span><a href="#%28part.__demand_trig_reset_ugens_%29" class="tocsubseclink" data-pltdoc="x">(demand trig reset ugens)</a></td></tr><tr><td><span class="tocsublinknumber">2.312<tt> </tt></span><a href="#%28part.__duty_rate_duration_reset_done.Action_level_%29" class="tocsubseclink" data-pltdoc="x">(duty rate duration reset done<span class="mywbr"> </span>Action level)</a></td></tr><tr><td><span class="tocsublinknumber">2.313<tt> </tt></span><a href="#%28part.__dser_length_array_%29" class="tocsubseclink" data-pltdoc="x">(dser length array)</a></td></tr><tr><td><span class="tocsublinknumber">2.314<tt> </tt></span><a href="#%28part.__dgeom_length_start_grow_%29" class="tocsubseclink" data-pltdoc="x">(dgeom length start grow)</a></td></tr><tr><td><span class="tocsublinknumber">2.315<tt> </tt></span><a href="#%28part.__drand__length_array_%29" class="tocsubseclink" data-pltdoc="x">(drand length array)</a></td></tr><tr><td><span class="tocsublinknumber">2.316<tt> </tt></span><a href="#%28part._.See_drand%29" class="tocsubseclink" data-pltdoc="x">See drand</a></td></tr><tr><td><span class="tocsublinknumber">2.317<tt> </tt></span><a href="#%28part.__dseries_length_start_step_%29" class="tocsubseclink" data-pltdoc="x">(dseries length start step)</a></td></tr><tr><td><span class="tocsublinknumber">2.318<tt> </tt></span><a href="#%28part.__dswitch_index_array_%29" class="tocsubseclink" data-pltdoc="x">(dswitch index array)</a></td></tr><tr><td><span class="tocsublinknumber">2.319<tt> </tt></span><a href="#%28part._.See_dbrown%29" class="tocsubseclink" data-pltdoc="x">See dbrown</a></td></tr><tr><td><span class="tocsublinknumber">2.320<tt> </tt></span><a href="#%28part.__dbrown__length_lo_hi_step_%29" class="tocsubseclink" data-pltdoc="x">(dbrown length lo hi step)</a></td></tr><tr><td><span class="tocsublinknumber">2.321<tt> </tt></span><a href="#%28part.__dseq_length_array_%29" class="tocsubseclink" data-pltdoc="x">(dseq length array)</a></td></tr><tr><td><span class="tocsublinknumber">2.322<tt> </tt></span><a href="#%28part._.See_latoocarfian-c_%29" class="tocsubseclink" data-pltdoc="x">See latoocarfian-<wbr></wbr>c.</a></td></tr><tr><td><span class="tocsublinknumber">2.323<tt> </tt></span><a href="#%28part.__fb-sine-c_rate_freq_im_fb_a_c_xi_yi_%29" class="tocsubseclink" data-pltdoc="x">(fb-<wbr></wbr>sine-<wbr></wbr>c rate freq im fb a c xi yi)</a></td></tr><tr><td><span class="tocsublinknumber">2.324<tt> </tt></span><a href="#%28part._.See_fb-sine-c%29" class="tocsubseclink" data-pltdoc="x">See fb-<wbr></wbr>sine-<wbr></wbr>c</a></td></tr><tr><td><span class="tocsublinknumber">2.325<tt> </tt></span><a href="#%28part.__quad-n_rate_freq_a_b_c_xi_%29" class="tocsubseclink" data-pltdoc="x">(quad-<wbr></wbr>n rate freq a b c xi)</a></td></tr><tr><td><span class="tocsublinknumber">2.326<tt> </tt></span><a href="#%28part.__lorenz-l_rate_freq_s_r_b_h_xi_yi_zi_%29" class="tocsubseclink" data-pltdoc="x">(lorenz-<wbr></wbr>l rate freq s r b h xi yi zi)</a></td></tr><tr><td><span class="tocsublinknumber">2.327<tt> </tt></span><a href="#%28part._.See_standard-l_%29" class="tocsubseclink" data-pltdoc="x">See standard-<wbr></wbr>l.</a></td></tr><tr><td><span class="tocsublinknumber">2.328<tt> </tt></span><a href="#%28part._.See_quad-n%29" class="tocsubseclink" data-pltdoc="x">See quad-<wbr></wbr>n</a></td></tr><tr><td><span class="tocsublinknumber">2.329<tt> </tt></span><a href="#%28part._.See_cusp-n%29" class="tocsubseclink" data-pltdoc="x">See cusp-<wbr></wbr>n</a></td></tr><tr><td><span class="tocsublinknumber">2.330<tt> </tt></span><a href="#%28part._.See_latoocarfian-c_%29" class="tocsubseclink" data-pltdoc="x">See latoocarfian-<wbr></wbr>c.</a></td></tr><tr><td><span class="tocsublinknumber">2.331<tt> </tt></span><a href="#%28part.__logistic_rate_chaos.Param_freq_%29" class="tocsubseclink" data-pltdoc="x">(logistic rate chaos<span class="mywbr"> </span>Param freq)</a></td></tr><tr><td><span class="tocsublinknumber">2.332<tt> </tt></span><a href="#%28part._.See_fb-sine-c%29" class="tocsubseclink" data-pltdoc="x">See fb-<wbr></wbr>sine-<wbr></wbr>c</a></td></tr><tr><td><span class="tocsublinknumber">2.333<tt> </tt></span><a href="#%28part.__latoocarfian-c_rate_freq_a_b_c_d_xi_yi_%29" class="tocsubseclink" data-pltdoc="x">(latoocarfian-<wbr></wbr>c rate freq a b c d xi yi)</a></td></tr><tr><td><span class="tocsublinknumber">2.334<tt> </tt></span><a href="#%28part.__rossler_rate_chaos.Param_dt_%29" class="tocsubseclink" data-pltdoc="x">(rossler rate chaos<span class="mywbr"> </span>Param dt)</a></td></tr><tr><td><span class="tocsublinknumber">2.335<tt> </tt></span><a href="#%28part.__standard-l_rate_freq_k_xi_yi_%29" class="tocsubseclink" data-pltdoc="x">(standard-<wbr></wbr>l rate freq k xi yi)</a></td></tr><tr><td><span class="tocsublinknumber">2.336<tt> </tt></span><a href="#%28part._.See_quad-n%29" class="tocsubseclink" data-pltdoc="x">See quad-<wbr></wbr>n</a></td></tr><tr><td><span class="tocsublinknumber">2.337<tt> </tt></span><a href="#%28part.__cusp-n_rate_freq_a_b_xi_%29" class="tocsubseclink" data-pltdoc="x">(cusp-<wbr></wbr>n rate freq a b xi)</a></td></tr><tr><td><span class="tocsublinknumber">2.338<tt> </tt></span><a href="#%28part.__lin-cong-c_rate_freq_a_c_m_xi_%29" class="tocsubseclink" data-pltdoc="x">(lin-<wbr></wbr>cong-<wbr></wbr>c rate freq a c m xi)</a></td></tr><tr><td><span class="tocsublinknumber">2.339<tt> </tt></span><a href="#%28part.__crackle_rate_chaos.Param_%29" class="tocsubseclink" data-pltdoc="x">(crackle rate chaos<span class="mywbr"> </span>Param)</a></td></tr><tr><td><span class="tocsublinknumber">2.340<tt> </tt></span><a href="#%28part.__henon-n_rate_freq_a_b_x0_x1_%29" class="tocsubseclink" data-pltdoc="x">(henon-<wbr></wbr>n rate freq a b x0 x1)</a></td></tr><tr><td><span class="tocsublinknumber">2.341<tt> </tt></span><a href="#%28part._.See_henon-n%29" class="tocsubseclink" data-pltdoc="x">See henon-<wbr></wbr>n</a></td></tr><tr><td><span class="tocsublinknumber">2.342<tt> </tt></span><a href="#%28part._.See_lin-cong-c_%29" class="tocsubseclink" data-pltdoc="x">See lin-<wbr></wbr>cong-<wbr></wbr>c.</a></td></tr><tr><td><span class="tocsublinknumber">2.343<tt> </tt></span><a href="#%28part._.See_.Gbman.L_%29" class="tocsubseclink" data-pltdoc="x">See Gbman<span class="mywbr"> </span>L.</a></td></tr><tr><td><span class="tocsublinknumber">2.344<tt> </tt></span><a href="#%28part._.See_.Gbman.L_%29" class="tocsubseclink" data-pltdoc="x">See Gbman<span class="mywbr"> </span>L.</a></td></tr><tr><td><span class="tocsublinknumber">2.345<tt> </tt></span><a href="#%28part._.See_henon-n%29" class="tocsubseclink" data-pltdoc="x">See henon-<wbr></wbr>n</a></td></tr><tr><td><span class="tocsublinknumber">2.346<tt> </tt></span><a href="#%28part._.See_lin-cong-c_%29" class="tocsubseclink" data-pltdoc="x">See lin-<wbr></wbr>cong-<wbr></wbr>c.</a></td></tr><tr><td><span class="tocsublinknumber">2.347<tt> </tt></span><a href="#%28part.__gbman-c_rate_freq_xi_yi_%29" class="tocsubseclink" data-pltdoc="x">(gbman-<wbr></wbr>c rate freq xi yi)</a></td></tr><tr><td><span class="tocsublinknumber">2.348<tt> </tt></span><a href="#%28part.__lin-pan2_in_pos_level_%29" class="tocsubseclink" data-pltdoc="x">(lin-<wbr></wbr>pan2 in pos level)</a></td></tr><tr><td><span class="tocsublinknumber">2.349<tt> </tt></span><a href="#%28part.__rotate2_x_y_pos_%29" class="tocsubseclink" data-pltdoc="x">(rotate2 x y pos)</a></td></tr><tr><td><span class="tocsublinknumber">2.350<tt> </tt></span><a href="#%28part.__decode-b2_num.Channels_w_x_y_orientation_%29" class="tocsubseclink" data-pltdoc="x">(decode-<wbr></wbr>b2 num<span class="mywbr"> </span>Channels w x y orientation)</a></td></tr><tr><td><span class="tocsublinknumber">2.351<tt> </tt></span><a href="#%28part.__pan2_in_pos_level_%29" class="tocsubseclink" data-pltdoc="x">(pan2 in pos level)</a></td></tr><tr><td><span class="tocsublinknumber">2.352<tt> </tt></span><a href="#%28part.__pan-b2_in_azimuth_gain_%29" class="tocsubseclink" data-pltdoc="x">(pan-<wbr></wbr>b2 in azimuth gain)</a></td></tr><tr><td><span class="tocsublinknumber">2.353<tt> </tt></span><a href="#%28part.__detect-silence_in_amp_time_done.Action_%29" class="tocsubseclink" data-pltdoc="x">(detect-<wbr></wbr>silence in amp time done<span class="mywbr"> </span>Action)</a></td></tr><tr><td><span class="tocsublinknumber">2.354<tt> </tt></span><a href="#%28part.__line_rate_start_end_dur_done.Action_%29" class="tocsubseclink" data-pltdoc="x">(line rate start end dur done<span class="mywbr"> </span>Action)</a></td></tr><tr><td><span class="tocsublinknumber">2.355<tt> </tt></span><a href="#%28part.__free_trig_node.I.D_%29" class="tocsubseclink" data-pltdoc="x">(free trig node<span class="mywbr"> </span>ID)</a></td></tr><tr><td><span class="tocsublinknumber">2.356<tt> </tt></span><a href="#%28part.__pause-self-when-done_src_%29" class="tocsubseclink" data-pltdoc="x">(pause-<wbr></wbr>self-<wbr></wbr>when-<wbr></wbr>done src)</a></td></tr><tr><td><span class="tocsublinknumber">2.357<tt> </tt></span><a href="#%28part.__pause-self_src_%29" class="tocsubseclink" data-pltdoc="x">(pause-<wbr></wbr>self src)</a></td></tr><tr><td><span class="tocsublinknumber">2.358<tt> </tt></span><a href="#%28part.__env-gen_rate_gate_level.Scale_level.Bias_time.Scale_done.Action_envelope_%29" class="tocsubseclink" data-pltdoc="x">(env-<wbr></wbr>gen rate gate level<span class="mywbr"> </span>Scale level<span class="mywbr"> </span>Bias time<span class="mywbr"> </span>Scale done<span class="mywbr"> </span>Action envelope)</a></td></tr><tr><td><span class="tocsublinknumber">2.359<tt> </tt></span><a href="#%28part.__free-self-when-done_src_%29" class="tocsubseclink" data-pltdoc="x">(free-<wbr></wbr>self-<wbr></wbr>when-<wbr></wbr>done src)</a></td></tr><tr><td><span class="tocsublinknumber">2.360<tt> </tt></span><a href="#%28part.__pause_gate_node.I.D_%29" class="tocsubseclink" data-pltdoc="x">(pause gate node<span class="mywbr"> </span>ID)</a></td></tr><tr><td><span class="tocsublinknumber">2.361<tt> </tt></span><a href="#%28part.__x-line_rate_start_end_dur_done.Action_%29" class="tocsubseclink" data-pltdoc="x">(x-<wbr></wbr>line rate start end dur done<span class="mywbr"> </span>Action)</a></td></tr><tr><td><span class="tocsublinknumber">2.362<tt> </tt></span><a href="#%28part.__done_src_%29" class="tocsubseclink" data-pltdoc="x">(done src)</a></td></tr><tr><td><span class="tocsublinknumber">2.363<tt> </tt></span><a href="#%28part.__linen_gate_attack.Time_sus.Level_release.Time_done.Action_%29" class="tocsubseclink" data-pltdoc="x">(linen gate attack<span class="mywbr"> </span>Time sus<span class="mywbr"> </span>Level release<span class="mywbr"> </span>Time done<span class="mywbr"> </span>Action)</a></td></tr><tr><td><span class="tocsublinknumber">2.364<tt> </tt></span><a href="#%28part.__free-self_src_%29" class="tocsubseclink" data-pltdoc="x">(free-<wbr></wbr>self src)</a></td></tr></table></div></div><div class="maincolumn"><div class="main"><div class="versionbox"><span class="version">8.6</span></div><div class="navsettop"><span class="navleft"><div class="nosearchform"></div> <span class="tocsettoggle"> <a href="javascript:void(0);" title="show/hide table of contents" onclick="TocsetToggle();">contents</a></span></span><span class="navright"> <a href="rsc3__server_commands.html" title="backward to "1 rsc3: server commands"" data-pltdoc="x">← prev</a> <a href="index.html" title="up to "rsc3: racket/scheme/supercollider"" data-pltdoc="x">up</a> <a href="rsc3__tutorials.html" title="forward to "3 rsc3: tutorials"" data-pltdoc="x">next →</a></span> </div><h3>2<tt> </tt><a name="(part._rsc3__ugens)"></a>rsc3: ugens</h3><table cellspacing="0" cellpadding="0"><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__.Rlpf_in_freq_rq_%29" class="toclink" data-pltdoc="x">2.1<span class="hspace"> </span>(Rlpf in freq rq)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__fold_in_lo_hi_%29" class="toclink" data-pltdoc="x">2.2<span class="hspace"> </span>(fold in lo hi)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__formlet_in_freq_attack.Time_decay.Time_%29" class="toclink" data-pltdoc="x">2.3<span class="hspace"> </span>(formlet in freq attackTime decayTime)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__lin-lin_in_srclo_srchi_dstlo_dsthi_%29" class="toclink" data-pltdoc="x">2.4<span class="hspace"> </span>(lin-lin in srclo srchi dstlo dsthi)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__fos_in_a0_a1_b1_%29" class="toclink" data-pltdoc="x">2.5<span class="hspace"> </span>(fos in a0 a1 b1)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__bpf_in_freq_rq_%29" class="toclink" data-pltdoc="x">2.6<span class="hspace"> </span>(bpf in freq rq)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__wrap_in_lo_hi_%29" class="toclink" data-pltdoc="x">2.7<span class="hspace"> </span>(wrap in lo hi)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__bpz2_in_%29" class="toclink" data-pltdoc="x">2.8<span class="hspace"> </span>(bpz2 in)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__amp-comp_freq_root_exp_%29" class="toclink" data-pltdoc="x">2.9<span class="hspace"> </span>(amp-comp freq root exp)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__lag2_in_lag.Time_%29" class="toclink" data-pltdoc="x">2.10<span class="hspace"> </span>(lag2 in lagTime)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__one-zero_in_coef_%29" class="toclink" data-pltdoc="x">2.11<span class="hspace"> </span>(one-zero in coef)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__klank_in_freq.Scale_freq.Offset_decay.Scale_spec_%29" class="toclink" data-pltdoc="x">2.12<span class="hspace"> </span>(klank in freqScale freqOffset decayScale spec)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__lpz2_ar_in_%29" class="toclink" data-pltdoc="x">2.13<span class="hspace"> </span>(lpz2 ar in)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__lin-exp_in_srclo_srchi_dstlo_dsthi_%29" class="toclink" data-pltdoc="x">2.14<span class="hspace"> </span>(lin-exp in srclo srchi dstlo dsthi)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__hpz2_in_%29" class="toclink" data-pltdoc="x">2.15<span class="hspace"> </span>(hpz2 in)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__leak-dc_in_coef_%29" class="toclink" data-pltdoc="x">2.16<span class="hspace"> </span>(leak-dc in coef)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__hpf_in_freq_%29" class="toclink" data-pltdoc="x">2.17<span class="hspace"> </span>(hpf in freq)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__sos_in_a0_a1_a2_b1_b2_%29" class="toclink" data-pltdoc="x">2.18<span class="hspace"> </span>(sos in a0 a1 a2 b1 b2)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__normalizer_in_level_dur_%29" class="toclink" data-pltdoc="x">2.19<span class="hspace"> </span>(normalizer in level dur)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__two-zero_in_freq_radius_%29" class="toclink" data-pltdoc="x">2.20<span class="hspace"> </span>(two-zero in freq radius)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__clip_in_lo_hi_%29" class="toclink" data-pltdoc="x">2.21<span class="hspace"> </span>(clip in lo hi)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__limiter_input_level_look.Ahead.Time_%29" class="toclink" data-pltdoc="x">2.22<span class="hspace"> </span>(limiter input level lookAheadTime)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__median_length_in_%29" class="toclink" data-pltdoc="x">2.23<span class="hspace"> </span>(median length in)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__lag3_in_lag.Time_%29" class="toclink" data-pltdoc="x">2.24<span class="hspace"> </span>(lag3 in lagTime)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__amp-comp.A_freq_root_min.Amp_root.Amp_%29" class="toclink" data-pltdoc="x">2.25<span class="hspace"> </span>(amp-compA freq root minAmp rootAmp)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__two-pole_in_freq_radius_%29" class="toclink" data-pltdoc="x">2.26<span class="hspace"> </span>(two-pole in freq radius)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__lpf_in_freq_%29" class="toclink" data-pltdoc="x">2.27<span class="hspace"> </span>(lpf in freq)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__hpz1_in_%29" class="toclink" data-pltdoc="x">2.28<span class="hspace"> </span>(hpz1 in)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__freq-shift_input_shift_phase_%29" class="toclink" data-pltdoc="x">2.29<span class="hspace"> </span>(freq-shift input shift phase)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__lpz1_ar_in_%29" class="toclink" data-pltdoc="x">2.30<span class="hspace"> </span>(lpz1 ar in)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__moog-ff_in_freq_gain_reset_%29" class="toclink" data-pltdoc="x">2.31<span class="hspace"> </span>(moog-ff in freq gain reset)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__resonz_in_freq_bwr_%29" class="toclink" data-pltdoc="x">2.32<span class="hspace"> </span>(resonz in freq bwr)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__brz2_in_%29" class="toclink" data-pltdoc="x">2.33<span class="hspace"> </span>(brz2 in)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__.Rhpf_in_freq_rq_%29" class="toclink" data-pltdoc="x">2.34<span class="hspace"> </span>(Rhpf in freq rq)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__brf_in_freq_rq_%29" class="toclink" data-pltdoc="x">2.35<span class="hspace"> </span>(brf in freq rq)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__one-pole_in_coef_%29" class="toclink" data-pltdoc="x">2.36<span class="hspace"> </span>(one-pole in coef)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__lag_in_lag.Time_%29" class="toclink" data-pltdoc="x">2.37<span class="hspace"> </span>(lag in lagTime)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__ringz_in_freq_decay.Time_%29" class="toclink" data-pltdoc="x">2.38<span class="hspace"> </span>(ringz in freq decayTime)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__dyn-klank_in_freq.Scale_freq.Offset_decay.Scale_spec_%29" class="toclink" data-pltdoc="x">2.39<span class="hspace"> </span>(dyn-klank in freqScale freqOffset decayScale spec)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__.Grainin_nc_tr_dur_in_pan_envbuf_%29" class="toclink" data-pltdoc="x">2.40<span class="hspace"> </span>(Grainin nc tr dur in pan envbuf)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__grain-buf_nc_tr_dur_sndbuf_rate_pos_interp_pan_envbuf_%29" class="toclink" data-pltdoc="x">2.41<span class="hspace"> </span>(grain-buf nc tr dur sndbuf rate pos interp pan envbuf)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__grain-sin_nc_tr_dur_freq_pan_envbuf_%29" class="toclink" data-pltdoc="x">2.42<span class="hspace"> </span>(grain-sin nc tr dur freq pan envbuf)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__warp1_nc_buf_ptr_freq.Scale_window.Size_envbuf_overlaps_windowrand.Ratio_interp_%29" class="toclink" data-pltdoc="x">2.43<span class="hspace"> </span>(warp1 nc buf ptr freqScale windowSize envbuf overlaps windowrandRatio interp)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__grain-fm_nc_tr_dur_carfreq_modfreq_index_pan_envbuf_%29" class="toclink" data-pltdoc="x">2.44<span class="hspace"> </span>(grain-fm nc tr dur carfreq modfreq index pan envbuf)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__disk-in_num-channels_rate_bufnum_%29" class="toclink" data-pltdoc="x">2.45<span class="hspace"> </span>(disk-in num-channels rate bufnum)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__disk-out_bufnum_channels_%29" class="toclink" data-pltdoc="x">2.46<span class="hspace"> </span>(disk-out bufnum channels)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part._num-input-buses%29" class="toclink" data-pltdoc="x">2.47<span class="hspace"> </span>num-input-buses</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part._num-control-buses%29" class="toclink" data-pltdoc="x">2.48<span class="hspace"> </span>num-control-buses</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part._num-buffers%29" class="toclink" data-pltdoc="x">2.49<span class="hspace"> </span>num-buffers</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part._num-output-buses%29" class="toclink" data-pltdoc="x">2.50<span class="hspace"> </span>num-output-buses</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__buf-frames_rate_bufnum_%29" class="toclink" data-pltdoc="x">2.51<span class="hspace"> </span>(buf-frames rate bufnum)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__buf-rate-scale_rate_bufnum_%29" class="toclink" data-pltdoc="x">2.52<span class="hspace"> </span>(buf-rate-scale rate bufnum)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part._sample-dur%29" class="toclink" data-pltdoc="x">2.53<span class="hspace"> </span>sample-dur</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part._sample-rate%29" class="toclink" data-pltdoc="x">2.54<span class="hspace"> </span>sample-rate</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part._radians-per-sample%29" class="toclink" data-pltdoc="x">2.55<span class="hspace"> </span>radians-per-sample</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__buf-dur_rate_bufnum_%29" class="toclink" data-pltdoc="x">2.56<span class="hspace"> </span>(buf-dur rate bufnum)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__buf-channels_rate_bufnum_%29" class="toclink" data-pltdoc="x">2.57<span class="hspace"> </span>(buf-channels rate bufnum)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__buf-sample-rate_rate_bufnum_%29" class="toclink" data-pltdoc="x">2.58<span class="hspace"> </span>(buf-sample-rate rate bufnum)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part._num-audio-buses%29" class="toclink" data-pltdoc="x">2.59<span class="hspace"> </span>num-audio-buses</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part._num-running-synths%29" class="toclink" data-pltdoc="x">2.60<span class="hspace"> </span>num-running-synths</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part._subsample-offset%29" class="toclink" data-pltdoc="x">2.61<span class="hspace"> </span>subsample-offset</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__zero-crossing_in_%29" class="toclink" data-pltdoc="x">2.62<span class="hspace"> </span>(zero-crossing in)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__slope_in_%29" class="toclink" data-pltdoc="x">2.63<span class="hspace"> </span>(slope in)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__running-sum_in_numsamp_%29" class="toclink" data-pltdoc="x">2.64<span class="hspace"> </span>(running-sum in numsamp)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__pitch_in_init.Freq_min.Freq_max.Freq_exec.Freq_max.Bins.Per.Octave%29" class="toclink" data-pltdoc="x">2.65<span class="hspace"> </span>(pitch in initFreq minFreq maxFreq execFreq maxBinsPerOctave</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__compander_input_control_thresh_slope.Below_slope.Above_clamp.Time_relax.Time_%29" class="toclink" data-pltdoc="x">2.66<span class="hspace"> </span>(compander input control thresh slopeBelow slopeAbove clampTime relaxTime)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__amplitude_rate_in_attack.Time_release.Time_%29" class="toclink" data-pltdoc="x">2.67<span class="hspace"> </span>(amplitude rate in attackTime releaseTime)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__pulse-divider_trig_div_start_%29" class="toclink" data-pltdoc="x">2.68<span class="hspace"> </span>(pulse-divider trig div start)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__gate_in_trig_%29" class="toclink" data-pltdoc="x">2.69<span class="hspace"> </span>(gate in trig)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__poll_trig_in_trigid_label_%29" class="toclink" data-pltdoc="x">2.70<span class="hspace"> </span>(poll trig in trigid label)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__most-change_a_b_%29" class="toclink" data-pltdoc="x">2.71<span class="hspace"> </span>(most-change a b)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__trig_in_dur_%29" class="toclink" data-pltdoc="x">2.72<span class="hspace"> </span>(trig in dur)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__pulse-count_trig_reset_%29" class="toclink" data-pltdoc="x">2.73<span class="hspace"> </span>(pulse-count trig reset)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__stepper_trig_reset_min_max_step_resetval_%29" class="toclink" data-pltdoc="x">2.74<span class="hspace"> </span>(stepper trig reset min max step resetval)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__last-value_in_diff_%29" class="toclink" data-pltdoc="x">2.75<span class="hspace"> </span>(last-value in diff)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__peak-follower_in_decay_%29" class="toclink" data-pltdoc="x">2.76<span class="hspace"> </span>(peak-follower in decay)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__running-max_in_trig_%29" class="toclink" data-pltdoc="x">2.77<span class="hspace"> </span>(running-max in trig)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__trig1_in_dur_%29" class="toclink" data-pltdoc="x">2.78<span class="hspace"> </span>(trig1 in dur)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__phasor_trig_rate_start_end_resetpos_%29" class="toclink" data-pltdoc="x">2.79<span class="hspace"> </span>(phasor trig rate start end resetpos)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__schmidt_in_lo_hi_%29" class="toclink" data-pltdoc="x">2.80<span class="hspace"> </span>(schmidt in lo hi)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__peak_trig_reset_%29" class="toclink" data-pltdoc="x">2.81<span class="hspace"> </span>(peak trig reset)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__toggle-ff_trig_%29" class="toclink" data-pltdoc="x">2.82<span class="hspace"> </span>(toggle-ff trig)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__sweep_trig_rate_%29" class="toclink" data-pltdoc="x">2.83<span class="hspace"> </span>(sweep trig rate)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__send-trig_in_id_value_%29" class="toclink" data-pltdoc="x">2.84<span class="hspace"> </span>(send-trig in id value)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__in-range_in_lo_hi_%29" class="toclink" data-pltdoc="x">2.85<span class="hspace"> </span>(in-range in lo hi)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__timer_trig_%29" class="toclink" data-pltdoc="x">2.86<span class="hspace"> </span>(timer trig)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__t-delay_trigger_delay.Time_%29" class="toclink" data-pltdoc="x">2.87<span class="hspace"> </span>(t-delay trigger delayTime)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__running-min_in_trig_%29" class="toclink" data-pltdoc="x">2.88<span class="hspace"> </span>(running-min in trig)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__set-reset-ff_trig_reset_%29" class="toclink" data-pltdoc="x">2.89<span class="hspace"> </span>(set-reset-ff trig reset)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__saw_rate_freq_%29" class="toclink" data-pltdoc="x">2.90<span class="hspace"> </span>(saw rate freq)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__pm-osc_rate_carfreq_modfreq_index_modphase_%29" class="toclink" data-pltdoc="x">2.91<span class="hspace"> </span>(pm-osc rate carfreq modfreq index modphase)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__lf-tri_rate_freq_iphase_%29" class="toclink" data-pltdoc="x">2.92<span class="hspace"> </span>(lf-tri rate freq iphase)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__t-grains_num.Channels_trigger_bufnum_rate_center.Pos_dur_pan_amp_interp_%29" class="toclink" data-pltdoc="x">2.93<span class="hspace"> </span>(t-grains numChannels trigger bufnum rate centerPos dur pan amp interp)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__tw-index_in_normalize_array_%29" class="toclink" data-pltdoc="x">2.94<span class="hspace"> </span>(tw-index in normalize array)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__osc-n_rate_bufnum_freq_phase_%29" class="toclink" data-pltdoc="x">2.95<span class="hspace"> </span>(osc-n rate bufnum freq phase)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__osc_rate_bufnum_freq_phase_%29" class="toclink" data-pltdoc="x">2.96<span class="hspace"> </span>(osc rate bufnum freq phase)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__lf-saw_rate_freq_iphase_%29" class="toclink" data-pltdoc="x">2.97<span class="hspace"> </span>(lf-saw rate freq iphase)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__tw-choose_trig_array_weights_normalize_%29" class="toclink" data-pltdoc="x">2.98<span class="hspace"> </span>(tw-choose trig array weights normalize)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part._gendy1%29" class="toclink" data-pltdoc="x">2.99<span class="hspace"> </span>gendy1</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__pulse_rate_freq_width_%29" class="toclink" data-pltdoc="x">2.100<span class="hspace"> </span>(pulse rate freq width)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__shaper_bufnum_in_%29" class="toclink" data-pltdoc="x">2.101<span class="hspace"> </span>(shaper bufnum in)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part._.S.C2__.Note_extra_iphase_argument_%29" class="toclink" data-pltdoc="x">2.102<span class="hspace"> </span>SC2: Note extra iphase argument.</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__v-osc_rate_bufpos_freq_phase_%29" class="toclink" data-pltdoc="x">2.103<span class="hspace"> </span>(v-osc rate bufpos freq phase)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__var-saw_rate_freq_iphasewidth_%29" class="toclink" data-pltdoc="x">2.104<span class="hspace"> </span>(var-saw rate freq iphasewidth)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part._buf-wr%29" class="toclink" data-pltdoc="x">2.105<span class="hspace"> </span>buf-wr</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part._impulse%29" class="toclink" data-pltdoc="x">2.106<span class="hspace"> </span>impulse</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part._blip%29" class="toclink" data-pltdoc="x">2.107<span class="hspace"> </span>blip</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__select_which_array_%29" class="toclink" data-pltdoc="x">2.108<span class="hspace"> </span>(select which array)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part._formant%29" class="toclink" data-pltdoc="x">2.109<span class="hspace"> </span>formant</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part._c-osc%29" class="toclink" data-pltdoc="x">2.110<span class="hspace"> </span>c-osc</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__v-osc3_rate_bufpos_freq1_freq2_freq3_%29" class="toclink" data-pltdoc="x">2.111<span class="hspace"> </span>(v-osc3 rate bufpos freq1 freq2 freq3)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__lf-cub_rate_freq_iphase_%29" class="toclink" data-pltdoc="x">2.112<span class="hspace"> </span>(lf-cub rate freq iphase)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__lf-pulse_rate_freq_iphase_width_%29" class="toclink" data-pltdoc="x">2.113<span class="hspace"> </span>(lf-pulse rate freq iphase width)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part._index%29" class="toclink" data-pltdoc="x">2.114<span class="hspace"> </span>index</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part._.See_lf-cub_%29" class="toclink" data-pltdoc="x">2.115<span class="hspace"> </span>See lf-cub.</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__sync-saw_rate_sync.Freq_saw.Freq_%29" class="toclink" data-pltdoc="x">2.116<span class="hspace"> </span>(sync-saw rate syncFreq sawFreq)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__t-choose_trig_array_%29" class="toclink" data-pltdoc="x">2.117<span class="hspace"> </span>(t-choose trig array)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__sin-osc_rate_freq_phase_%29" class="toclink" data-pltdoc="x">2.118<span class="hspace"> </span>(sin-osc rate freq phase)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__klang_rate_freq.Scale_freq.Offset_spec_%29" class="toclink" data-pltdoc="x">2.119<span class="hspace"> </span>(klang rate freqScale freqOffset spec)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__lag-in_num-channels_bus_lag_%29" class="toclink" data-pltdoc="x">2.120<span class="hspace"> </span>(lag-in num-channels bus lag)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__sound-in_channel_%29" class="toclink" data-pltdoc="x">2.121<span class="hspace"> </span>(sound-in channel)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__in_num-channels_rate_bus_%29" class="toclink" data-pltdoc="x">2.122<span class="hspace"> </span>(in num-channels rate bus)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__in-trig_num-channels_bus_%29" class="toclink" data-pltdoc="x">2.123<span class="hspace"> </span>(in-trig num-channels bus)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__replace-out_bufferindex_inputs_%29" class="toclink" data-pltdoc="x">2.124<span class="hspace"> </span>(replace-out bufferindex inputs)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__local-in_num-channels_rate_%29" class="toclink" data-pltdoc="x">2.125<span class="hspace"> </span>(local-in num-channels rate)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__offset-out_bufferindex_inputs_%29" class="toclink" data-pltdoc="x">2.126<span class="hspace"> </span>(offset-out bufferindex inputs)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__in-feedback_num-channels_bus_%29" class="toclink" data-pltdoc="x">2.127<span class="hspace"> </span>(in-feedback num-channels bus)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__x-out_buffer-index_xfade_inputs_%29" class="toclink" data-pltdoc="x">2.128<span class="hspace"> </span>(x-out buffer-index xfade inputs)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__out_bufferindex_inputs_%29" class="toclink" data-pltdoc="x">2.129<span class="hspace"> </span>(out bufferindex inputs)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__mix_.U.Gen_%29" class="toclink" data-pltdoc="x">2.130<span class="hspace"> </span>(mix UGen)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__mix-fill_n_f_%29" class="toclink" data-pltdoc="x">2.131<span class="hspace"> </span>(mix-fill n f)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__latch_in_trig_%29" class="toclink" data-pltdoc="x">2.132<span class="hspace"> </span>(latch in trig)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__decay_in_decay.Time_%29" class="toclink" data-pltdoc="x">2.133<span class="hspace"> </span>(decay in decayTime)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__wrap-index_bufnum_in_%29" class="toclink" data-pltdoc="x">2.134<span class="hspace"> </span>(wrap-index bufnum in)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__mouse-y_rate_minval_maxval_warp_lag_%29" class="toclink" data-pltdoc="x">2.135<span class="hspace"> </span>(mouse-y rate minval maxval warp lag)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__degree-to-key_bufnum_in_octave_%29" class="toclink" data-pltdoc="x">2.136<span class="hspace"> </span>(degree-to-key bufnum in octave)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__key-state_rate_keynum_minval_maxval_lag_%29" class="toclink" data-pltdoc="x">2.137<span class="hspace"> </span>(key-state rate keynum minval maxval lag)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__mrg2_left_right_%29" class="toclink" data-pltdoc="x">2.138<span class="hspace"> </span>(mrg2 left right)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__mouse-button_rate_minval_maxval_lag_%29" class="toclink" data-pltdoc="x">2.139<span class="hspace"> </span>(mouse-button rate minval maxval lag)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__slew_in_up_dn_%29" class="toclink" data-pltdoc="x">2.140<span class="hspace"> </span>(slew in up dn)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__mouse-x_rate_minval_maxval_warp_lag_%29" class="toclink" data-pltdoc="x">2.141<span class="hspace"> </span>(mouse-x rate minval maxval warp lag)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__decay2_in_attack.Time_decay.Time_%29" class="toclink" data-pltdoc="x">2.142<span class="hspace"> </span>(decay2 in attackTime decayTime)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__k2a_in_%29" class="toclink" data-pltdoc="x">2.143<span class="hspace"> </span>(k2a in)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__mul-add_a_b_c_%29" class="toclink" data-pltdoc="x">2.144<span class="hspace"> </span>(mul-add a b c)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__clip2_a_b_%29" class="toclink" data-pltdoc="x">2.145<span class="hspace"> </span>(clip2 a b)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__.Atan2_x_y_%29" class="toclink" data-pltdoc="x">2.146<span class="hspace"> </span>(Atan2 x y)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__trunc_a_b_%29" class="toclink" data-pltdoc="x">2.147<span class="hspace"> </span>(trunc a b)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__sub_a_b_%29" class="toclink" data-pltdoc="x">2.148<span class="hspace"> </span>(sub a b)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__round-up_a_b_%29" class="toclink" data-pltdoc="x">2.149<span class="hspace"> </span>(round-up a b)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__ring4_a_b_%29" class="toclink" data-pltdoc="x">2.150<span class="hspace"> </span>(ring4 a b)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__pow_a_b_%29" class="toclink" data-pltdoc="x">2.151<span class="hspace"> </span>(pow a b)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__ring1_a_b_%29" class="toclink" data-pltdoc="x">2.152<span class="hspace"> </span>(ring1 a b)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__gt_a_b_%29" class="toclink" data-pltdoc="x">2.153<span class="hspace"> </span>(gt a b)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__add_a_b_%29" class="toclink" data-pltdoc="x">2.154<span class="hspace"> </span>(add a b)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__abs-dif_a_b_%29" class="toclink" data-pltdoc="x">2.155<span class="hspace"> </span>(abs-dif a b)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__am-clip_a_b_%29" class="toclink" data-pltdoc="x">2.156<span class="hspace"> </span>(am-clip a b)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__ge_a_b_%29" class="toclink" data-pltdoc="x">2.157<span class="hspace"> </span>(ge a b)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__max_a_b_%29" class="toclink" data-pltdoc="x">2.158<span class="hspace"> </span>(max a b)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__ring3_a_b_%29" class="toclink" data-pltdoc="x">2.159<span class="hspace"> </span>(ring3 a b)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__thresh_a_b_%29" class="toclink" data-pltdoc="x">2.160<span class="hspace"> </span>(thresh a b)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__dif-sqr_a_b_%29" class="toclink" data-pltdoc="x">2.161<span class="hspace"> </span>(dif-sqr a b)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__excess_a_b_%29" class="toclink" data-pltdoc="x">2.162<span class="hspace"> </span>(excess a b)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__fold2_a_b_%29" class="toclink" data-pltdoc="x">2.163<span class="hspace"> </span>(fold2 a b)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__sqr-dif_a_b_%29" class="toclink" data-pltdoc="x">2.164<span class="hspace"> </span>(sqr-dif a b)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__hypot_x_y_%29" class="toclink" data-pltdoc="x">2.165<span class="hspace"> </span>(hypot x y)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__sqr-sum_a_b_%29" class="toclink" data-pltdoc="x">2.166<span class="hspace"> </span>(sqr-sum a b)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__sum-sqr_a_b_%29" class="toclink" data-pltdoc="x">2.167<span class="hspace"> </span>(sum-sqr a b)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__le_a_b_%29" class="toclink" data-pltdoc="x">2.168<span class="hspace"> </span>(le a b)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part._eq%29" class="toclink" data-pltdoc="x">2.169<span class="hspace"> </span>eq</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__scale-neg_a_b_%29" class="toclink" data-pltdoc="x">2.170<span class="hspace"> </span>(scale-neg a b)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__ring2_a_b_%29" class="toclink" data-pltdoc="x">2.171<span class="hspace"> </span>(ring2 a b)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__.Mod_a_b_%29" class="toclink" data-pltdoc="x">2.172<span class="hspace"> </span>(Mod a b)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__fdiv_a_b_%29" class="toclink" data-pltdoc="x">2.173<span class="hspace"> </span>(fdiv a b)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__mul_a_b_%29" class="toclink" data-pltdoc="x">2.174<span class="hspace"> </span>(mul a b)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__min_a_b_%29" class="toclink" data-pltdoc="x">2.175<span class="hspace"> </span>(min a b)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__lt_a_b_%29" class="toclink" data-pltdoc="x">2.176<span class="hspace"> </span>(lt a b)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__wrap2_a_b_%29" class="toclink" data-pltdoc="x">2.177<span class="hspace"> </span>(wrap2 a b)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__round_a_b_%29" class="toclink" data-pltdoc="x">2.178<span class="hspace"> </span>(round a b)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__hasher_in_%29" class="toclink" data-pltdoc="x">2.179<span class="hspace"> </span>(hasher in)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__rand-seed_rate_trig_seed_%29" class="toclink" data-pltdoc="x">2.180<span class="hspace"> </span>(rand-seed rate trig seed)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__lfd-noise0_rate_freq_%29" class="toclink" data-pltdoc="x">2.181<span class="hspace"> </span>(lfd-noise0 rate freq)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__lfclip-noise_rate_freq_%29" class="toclink" data-pltdoc="x">2.182<span class="hspace"> </span>(lfclip-noise rate freq)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part._.See_lf-noise0%29" class="toclink" data-pltdoc="x">2.183<span class="hspace"> </span>See lf-noise0</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__clip-noise_rate_%29" class="toclink" data-pltdoc="x">2.184<span class="hspace"> </span>(clip-noise rate)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__ti-rand_lo_hi_trig_%29" class="toclink" data-pltdoc="x">2.185<span class="hspace"> </span>(ti-rand lo hi trig)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__lf-noise0_rate_freq_%29" class="toclink" data-pltdoc="x">2.186<span class="hspace"> </span>(lf-noise0 rate freq)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__pink-noise_rate_%29" class="toclink" data-pltdoc="x">2.187<span class="hspace"> </span>(pink-noise rate)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__rand_lo_hi_%29" class="toclink" data-pltdoc="x">2.188<span class="hspace"> </span>(rand lo hi)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__gray-noise_rate_%29" class="toclink" data-pltdoc="x">2.189<span class="hspace"> </span>(gray-noise rate)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part._.See_lfd-noise0%29" class="toclink" data-pltdoc="x">2.190<span class="hspace"> </span>See lfd-noise0</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__i-rand_lo_hi_%29" class="toclink" data-pltdoc="x">2.191<span class="hspace"> </span>(i-rand lo hi)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__n-rand_lo_hi_n_%29" class="toclink" data-pltdoc="x">2.192<span class="hspace"> </span>(n-rand lo hi n)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__lfdclip-noise_rate_freq_%29" class="toclink" data-pltdoc="x">2.193<span class="hspace"> </span>(lfdclip-noise rate freq)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__coin-gate_prob_in_%29" class="toclink" data-pltdoc="x">2.194<span class="hspace"> </span>(coin-gate prob in)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__t-exp-rand_lo_hi_trig_%29" class="toclink" data-pltdoc="x">2.195<span class="hspace"> </span>(t-exp-rand lo hi trig)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__t-rand_lo_hi_trig_%29" class="toclink" data-pltdoc="x">2.196<span class="hspace"> </span>(t-rand lo hi trig)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__white-noise_rate_%29" class="toclink" data-pltdoc="x">2.197<span class="hspace"> </span>(white-noise rate)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__dust2_rate_density_%29" class="toclink" data-pltdoc="x">2.198<span class="hspace"> </span>(dust2 rate density)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part._.See_lfd-noise0%29" class="toclink" data-pltdoc="x">2.199<span class="hspace"> </span>See lfd-noise0</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__rand-id_rate_id_%29" class="toclink" data-pltdoc="x">2.200<span class="hspace"> </span>(rand-id rate id)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part._.See_lf-noise0%29" class="toclink" data-pltdoc="x">2.201<span class="hspace"> </span>See lf-noise0</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__mantissa-mask_in_bits_%29" class="toclink" data-pltdoc="x">2.202<span class="hspace"> </span>(mantissa-mask in bits)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__dust_rate_density_%29" class="toclink" data-pltdoc="x">2.203<span class="hspace"> </span>(dust rate density)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__lin-rand_lo_hi_minmax_%29" class="toclink" data-pltdoc="x">2.204<span class="hspace"> </span>(lin-rand lo hi minmax)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__exp-rand_lo_hi_%29" class="toclink" data-pltdoc="x">2.205<span class="hspace"> </span>(exp-rand lo hi)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__brown-noise_rate_%29" class="toclink" data-pltdoc="x">2.206<span class="hspace"> </span>(brown-noise rate)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__u_log_a_%29" class="toclink" data-pltdoc="x">2.207<span class="hspace"> </span>(u:log a)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__frac_a_%29" class="toclink" data-pltdoc="x">2.208<span class="hspace"> </span>(frac a)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__arc-tan_a_%29" class="toclink" data-pltdoc="x">2.209<span class="hspace"> </span>(arc-tan a)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__distort_a_%29" class="toclink" data-pltdoc="x">2.210<span class="hspace"> </span>(distort a)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__tan-h_a_%29" class="toclink" data-pltdoc="x">2.211<span class="hspace"> </span>(tan-h a)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__u_floor_a_%29" class="toclink" data-pltdoc="x">2.212<span class="hspace"> </span>(u:floor a)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__cps-oct_a_%29" class="toclink" data-pltdoc="x">2.213<span class="hspace"> </span>(cps-oct a)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__db-amp_a_%29" class="toclink" data-pltdoc="x">2.214<span class="hspace"> </span>(db-amp a)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__u_sqrt_a_%29" class="toclink" data-pltdoc="x">2.215<span class="hspace"> </span>(u:sqrt a)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__soft-clip_a_%29" class="toclink" data-pltdoc="x">2.216<span class="hspace"> </span>(soft-clip a)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__cps-midi_a_%29" class="toclink" data-pltdoc="x">2.217<span class="hspace"> </span>(cps-midi a)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__is-strictly-positive_a_%29" class="toclink" data-pltdoc="x">2.218<span class="hspace"> </span>(is-strictly-positive a)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__u_tan_a_%29" class="toclink" data-pltdoc="x">2.219<span class="hspace"> </span>(u:tan a)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__cos-h_a_%29" class="toclink" data-pltdoc="x">2.220<span class="hspace"> </span>(cos-h a)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__amp-db_a_%29" class="toclink" data-pltdoc="x">2.221<span class="hspace"> </span>(amp-db a)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__abs_a_%29" class="toclink" data-pltdoc="x">2.222<span class="hspace"> </span>(abs a)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__log10_a_%29" class="toclink" data-pltdoc="x">2.223<span class="hspace"> </span>(log10 a)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__midi-cps_a_%29" class="toclink" data-pltdoc="x">2.224<span class="hspace"> </span>(midi-cps a)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__is-positive_a_%29" class="toclink" data-pltdoc="x">2.225<span class="hspace"> </span>(is-positive a)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__sign_a_%29" class="toclink" data-pltdoc="x">2.226<span class="hspace"> </span>(sign a)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__neg_a_%29" class="toclink" data-pltdoc="x">2.227<span class="hspace"> </span>(neg a)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__log2_a_%29" class="toclink" data-pltdoc="x">2.228<span class="hspace"> </span>(log2 a)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__ceil_a_%29" class="toclink" data-pltdoc="x">2.229<span class="hspace"> </span>(ceil a)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__arc-cos_a_%29" class="toclink" data-pltdoc="x">2.230<span class="hspace"> </span>(arc-cos a)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__exp_a_%29" class="toclink" data-pltdoc="x">2.231<span class="hspace"> </span>(exp a)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__squared_a_%29" class="toclink" data-pltdoc="x">2.232<span class="hspace"> </span>(squared a)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__arc-sin_a_%29" class="toclink" data-pltdoc="x">2.233<span class="hspace"> </span>(arc-sin a)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__cubed_a_%29" class="toclink" data-pltdoc="x">2.234<span class="hspace"> </span>(cubed a)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__is-negative_a_%29" class="toclink" data-pltdoc="x">2.235<span class="hspace"> </span>(is-negative a)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__oct-cps_a_%29" class="toclink" data-pltdoc="x">2.236<span class="hspace"> </span>(oct-cps a)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__u_sin_a_%29" class="toclink" data-pltdoc="x">2.237<span class="hspace"> </span>(u:sin a)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__sin-h_a_%29" class="toclink" data-pltdoc="x">2.238<span class="hspace"> </span>(sin-h a)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__cos_a_%29" class="toclink" data-pltdoc="x">2.239<span class="hspace"> </span>(cos a)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__pv-mul_buffer.A_buffer.B_%29" class="toclink" data-pltdoc="x">2.240<span class="hspace"> </span>(pv-mul bufferA bufferB)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__pv-mag-squared_buffer_%29" class="toclink" data-pltdoc="x">2.241<span class="hspace"> </span>(pv-mag-squared buffer)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__pv-min_buffer.A_buffer.B_%29" class="toclink" data-pltdoc="x">2.242<span class="hspace"> </span>(pv-min bufferA bufferB)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__pv-mag-noise_buffer_%29" class="toclink" data-pltdoc="x">2.243<span class="hspace"> </span>(pv-mag-noise buffer)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__pv-mag-below_buffer_threshold_%29" class="toclink" data-pltdoc="x">2.244<span class="hspace"> </span>(pv-mag-below buffer threshold)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__convolution_in_kernel_framesize_%29" class="toclink" data-pltdoc="x">2.245<span class="hspace"> </span>(convolution in kernel framesize)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__pv-jensen-andersen_buffer_propsc_prophfe_prophfc_propsf_threshold_waittime_%29" class="toclink" data-pltdoc="x">2.246<span class="hspace"> </span>(pv-jensen-andersen buffer propsc prophfe prophfc propsf threshold waittime)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__pv-phase-shift270_buffer_%29" class="toclink" data-pltdoc="x">2.247<span class="hspace"> </span>(pv-phase-shift270 buffer)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__pv-hainsworth-foote_buffer_proph_propf_threshold_waittime_%29" class="toclink" data-pltdoc="x">2.248<span class="hspace"> </span>(pv-hainsworth-foote buffer proph propf threshold waittime)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__pv-phase-shift_buffer_shift_%29" class="toclink" data-pltdoc="x">2.249<span class="hspace"> </span>(pv-phase-shift buffer shift)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__pv-copy_buffer.A_buffer.B_%29" class="toclink" data-pltdoc="x">2.250<span class="hspace"> </span>(pv-copy bufferA bufferB)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__pv-brick-wall_buffer_wipe_%29" class="toclink" data-pltdoc="x">2.251<span class="hspace"> </span>(pv-brick-wall buffer wipe)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__pv-mag-smear_buffer_bins_%29" class="toclink" data-pltdoc="x">2.252<span class="hspace"> </span>(pv-mag-smear buffer bins)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__pv-mag-above_buffer_threshold_%29" class="toclink" data-pltdoc="x">2.253<span class="hspace"> </span>(pv-mag-above buffer threshold)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__pv-bin-shift_buffer_stretch_shift_%29" class="toclink" data-pltdoc="x">2.254<span class="hspace"> </span>(pv-bin-shift buffer stretch shift)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__fft_buffer_in_hop_wintype_active_%29" class="toclink" data-pltdoc="x">2.255<span class="hspace"> </span>(fft buffer in hop wintype active)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__pv-bin-wipe_buffer.A_buffer.B_wipe_%29" class="toclink" data-pltdoc="x">2.256<span class="hspace"> </span>(pv-bin-wipe bufferA bufferB wipe)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__pv-copy.Phase_buffer.A_buffer.B_%29" class="toclink" data-pltdoc="x">2.257<span class="hspace"> </span>(pv-copyPhase bufferA bufferB)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__pv-phase-shift90_buffer_%29" class="toclink" data-pltdoc="x">2.258<span class="hspace"> </span>(pv-phase-shift90 buffer)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__convolution2_in_bufnum_trigger_framesize_%29" class="toclink" data-pltdoc="x">2.259<span class="hspace"> </span>(convolution2 in bufnum trigger framesize)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__pv-rect-comb2_buffer.A_buffer.B_num.Teeth_phase_width_%29" class="toclink" data-pltdoc="x">2.260<span class="hspace"> </span>(pv-rect-comb2 bufferA bufferB numTeeth phase width)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__pv-add_buffer.A_buffer.B_%29" class="toclink" data-pltdoc="x">2.261<span class="hspace"> </span>(pv-add bufferA bufferB)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__pv-rand-comb_buffer_wipe_trig_%29" class="toclink" data-pltdoc="x">2.262<span class="hspace"> </span>(pv-rand-comb buffer wipe trig)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__pv-local-max_buffer_threshold_%29" class="toclink" data-pltdoc="x">2.263<span class="hspace"> </span>(pv-local-max buffer threshold)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__pv-mag-mul_buffer.A_buffer.B_%29" class="toclink" data-pltdoc="x">2.264<span class="hspace"> </span>(pv-mag-mul bufferA bufferB)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__pv-conformal-map_buffer_real_imag_%29" class="toclink" data-pltdoc="x">2.265<span class="hspace"> </span>(pv-conformal-map buffer real imag)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__pv-diffuser_buffer_trig_%29" class="toclink" data-pltdoc="x">2.266<span class="hspace"> </span>(pv-diffuser buffer trig)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__pv-max_buffer.A_buffer.B_%29" class="toclink" data-pltdoc="x">2.267<span class="hspace"> </span>(pv-max bufferA bufferB)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__.Ifft_buffer_wintype_%29" class="toclink" data-pltdoc="x">2.268<span class="hspace"> </span>(Ifft buffer wintype)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__pv-bin-scramble_buffer_wipe_width_trig_%29" class="toclink" data-pltdoc="x">2.269<span class="hspace"> </span>(pv-bin-scramble buffer wipe width trig)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__pv-rand-wipe_buffer.A_buffer.B_wipe_trig_%29" class="toclink" data-pltdoc="x">2.270<span class="hspace"> </span>(pv-rand-wipe bufferA bufferB wipe trig)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__.Packfft_chain_bufsize_frombin_tobin_zeroothers_magsphases_%29" class="toclink" data-pltdoc="x">2.271<span class="hspace"> </span>(Packfft chain bufsize frombin tobin zeroothers magsphases)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__pvcollect_chain_numframes_func_frombin_tobin_zeroothers_%29" class="toclink" data-pltdoc="x">2.272<span class="hspace"> </span>(pvcollect chain numframes func frombin tobin zeroothers)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__.P.V_.Magclip_buffer_threshold_%29" class="toclink" data-pltdoc="x">2.273<span class="hspace"> </span>(PV_Magclip buffer threshold)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__.P.V_.Magfreeze_buffer_freeze_%29" class="toclink" data-pltdoc="x">2.274<span class="hspace"> </span>(PV_Magfreeze buffer freeze)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__pv-rect-comb_buffer_num.Teeth_phase_width_%29" class="toclink" data-pltdoc="x">2.275<span class="hspace"> </span>(pv-rect-comb buffer numTeeth phase width)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__pv-mag-shift_buffer_stretch_shift_%29" class="toclink" data-pltdoc="x">2.276<span class="hspace"> </span>(pv-mag-shift buffer stretch shift)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part._.See_allpass-n%29" class="toclink" data-pltdoc="x">2.277<span class="hspace"> </span>See allpass-n</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part._.See_comb-n%29" class="toclink" data-pltdoc="x">2.278<span class="hspace"> </span>See comb-n</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part._.See_.Bufallpass-c%29" class="toclink" data-pltdoc="x">2.279<span class="hspace"> </span>See Bufallpass-c</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__free-verb_in_mix_room_damp_%29" class="toclink" data-pltdoc="x">2.280<span class="hspace"> </span>(free-verb in mix room damp)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part._.See_free.Verb%29" class="toclink" data-pltdoc="x">2.281<span class="hspace"> </span>See freeVerb</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__play-buf_num.Channels_bufnum_rate_trigger_start.Pos_loop_%29" class="toclink" data-pltdoc="x">2.282<span class="hspace"> </span>(play-buf numChannels bufnum rate trigger startPos loop)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part._.See_buf-delay-c%29" class="toclink" data-pltdoc="x">2.283<span class="hspace"> </span>See buf-delay-c</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__delay2_in_%29" class="toclink" data-pltdoc="x">2.284<span class="hspace"> </span>(delay2 in)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__comb-n_in_max.Delay.Time_delay.Time_decay.Time_%29" class="toclink" data-pltdoc="x">2.285<span class="hspace"> </span>(comb-n in maxDelayTime delayTime decayTime)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part._.See_.Bufallpass-c%29" class="toclink" data-pltdoc="x">2.286<span class="hspace"> </span>See Bufallpass-c</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__allpass-n_in_max.Delay.Time_delay.Time_decay.Time_%29" class="toclink" data-pltdoc="x">2.287<span class="hspace"> </span>(allpass-n in maxDelayTime delayTime decayTime)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part._.See_comb-n%29" class="toclink" data-pltdoc="x">2.288<span class="hspace"> </span>See comb-n</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__buf-allpass-c_buf_in_delaytime_decaytime_%29" class="toclink" data-pltdoc="x">2.289<span class="hspace"> </span>(buf-allpass-c buf in delaytime decaytime)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part._.See_allpass-n%29" class="toclink" data-pltdoc="x">2.290<span class="hspace"> </span>See allpass-n</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part._.See_buf-delay-c%29" class="toclink" data-pltdoc="x">2.291<span class="hspace"> </span>See buf-delay-c</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__buf-delay-c_buf_in_delaytime_%29" class="toclink" data-pltdoc="x">2.292<span class="hspace"> </span>(buf-delay-c buf in delaytime)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__pluck_in_tr_maxdelaytime_delaytime_decaytime_coef_%29" class="toclink" data-pltdoc="x">2.293<span class="hspace"> </span>(pluck in tr maxdelaytime delaytime decaytime coef)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__pitch-shift_in_win.Size_pch.Ratio_pch.Dispersion_time.Dispersion_%29" class="toclink" data-pltdoc="x">2.294<span class="hspace"> </span>(pitch-shift in winSize pchRatio pchDispersion timeDispersion)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part._.See_buf-comb-c%29" class="toclink" data-pltdoc="x">2.295<span class="hspace"> </span>See buf-comb-c</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__buf-comb-c_buf_in_delaytime_decaytime_%29" class="toclink" data-pltdoc="x">2.296<span class="hspace"> </span>(buf-comb-c buf in delaytime decaytime)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__buf-rd_num.Channels_rate_bufnum_phase_loop_interpolation_%29" class="toclink" data-pltdoc="x">2.297<span class="hspace"> </span>(buf-rd numChannels rate bufnum phase loop interpolation)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__delay1_in_%29" class="toclink" data-pltdoc="x">2.298<span class="hspace"> </span>(delay1 in)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__record-buf_bufnum_offset_reclevel_prelevel_run_loop_trigger_inputs_%29" class="toclink" data-pltdoc="x">2.299<span class="hspace"> </span>(record-buf bufnum offset reclevel prelevel run loop trigger inputs)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part._.See_delay-n%29" class="toclink" data-pltdoc="x">2.300<span class="hspace"> </span>See delay-n</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part._.See_buf-comb-c%29" class="toclink" data-pltdoc="x">2.301<span class="hspace"> </span>See buf-comb-c</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part._.See_delay-n%29" class="toclink" data-pltdoc="x">2.302<span class="hspace"> </span>See delay-n</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__delay-n_in_max.Delay.Time_delay.Time_%29" class="toclink" data-pltdoc="x">2.303<span class="hspace"> </span>(delay-n in maxDelayTime delayTime)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__ball_in_g_damp_friction_%29" class="toclink" data-pltdoc="x">2.304<span class="hspace"> </span>(ball in g damp friction)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__dswitch1_index_array_%29" class="toclink" data-pltdoc="x">2.305<span class="hspace"> </span>(dswitch1 index array)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__t-duty_rate_duration_reset_done.Action_level_gap_%29" class="toclink" data-pltdoc="x">2.306<span class="hspace"> </span>(t-duty rate duration reset doneAction level gap)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part._.See_dwhite%29" class="toclink" data-pltdoc="x">2.307<span class="hspace"> </span>See dwhite</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__dwhite__length_lo_hi_%29" class="toclink" data-pltdoc="x">2.308<span class="hspace"> </span>(dwhite length lo hi)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__dbufrd_bufnum_phase_loop_%29" class="toclink" data-pltdoc="x">2.309<span class="hspace"> </span>(dbufrd bufnum phase loop)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__demand-env-gen_rate_levels_times_shapes_curves_gate_reset%29" class="toclink" data-pltdoc="x">2.310<span class="hspace"> </span>(demand-env-gen rate levels times shapes curves gate reset</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__demand_trig_reset_ugens_%29" class="toclink" data-pltdoc="x">2.311<span class="hspace"> </span>(demand trig reset ugens)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__duty_rate_duration_reset_done.Action_level_%29" class="toclink" data-pltdoc="x">2.312<span class="hspace"> </span>(duty rate duration reset doneAction level)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__dser_length_array_%29" class="toclink" data-pltdoc="x">2.313<span class="hspace"> </span>(dser length array)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__dgeom_length_start_grow_%29" class="toclink" data-pltdoc="x">2.314<span class="hspace"> </span>(dgeom length start grow)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__drand__length_array_%29" class="toclink" data-pltdoc="x">2.315<span class="hspace"> </span>(drand length array)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part._.See_drand%29" class="toclink" data-pltdoc="x">2.316<span class="hspace"> </span>See drand</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__dseries_length_start_step_%29" class="toclink" data-pltdoc="x">2.317<span class="hspace"> </span>(dseries length start step)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__dswitch_index_array_%29" class="toclink" data-pltdoc="x">2.318<span class="hspace"> </span>(dswitch index array)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part._.See_dbrown%29" class="toclink" data-pltdoc="x">2.319<span class="hspace"> </span>See dbrown</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__dbrown__length_lo_hi_step_%29" class="toclink" data-pltdoc="x">2.320<span class="hspace"> </span>(dbrown length lo hi step)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__dseq_length_array_%29" class="toclink" data-pltdoc="x">2.321<span class="hspace"> </span>(dseq length array)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part._.See_latoocarfian-c_%29" class="toclink" data-pltdoc="x">2.322<span class="hspace"> </span>See latoocarfian-c.</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__fb-sine-c_rate_freq_im_fb_a_c_xi_yi_%29" class="toclink" data-pltdoc="x">2.323<span class="hspace"> </span>(fb-sine-c rate freq im fb a c xi yi)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part._.See_fb-sine-c%29" class="toclink" data-pltdoc="x">2.324<span class="hspace"> </span>See fb-sine-c</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__quad-n_rate_freq_a_b_c_xi_%29" class="toclink" data-pltdoc="x">2.325<span class="hspace"> </span>(quad-n rate freq a b c xi)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__lorenz-l_rate_freq_s_r_b_h_xi_yi_zi_%29" class="toclink" data-pltdoc="x">2.326<span class="hspace"> </span>(lorenz-l rate freq s r b h xi yi zi)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part._.See_standard-l_%29" class="toclink" data-pltdoc="x">2.327<span class="hspace"> </span>See standard-l.</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part._.See_quad-n%29" class="toclink" data-pltdoc="x">2.328<span class="hspace"> </span>See quad-n</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part._.See_cusp-n%29" class="toclink" data-pltdoc="x">2.329<span class="hspace"> </span>See cusp-n</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part._.See_latoocarfian-c_%29" class="toclink" data-pltdoc="x">2.330<span class="hspace"> </span>See latoocarfian-c.</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__logistic_rate_chaos.Param_freq_%29" class="toclink" data-pltdoc="x">2.331<span class="hspace"> </span>(logistic rate chaosParam freq)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part._.See_fb-sine-c%29" class="toclink" data-pltdoc="x">2.332<span class="hspace"> </span>See fb-sine-c</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__latoocarfian-c_rate_freq_a_b_c_d_xi_yi_%29" class="toclink" data-pltdoc="x">2.333<span class="hspace"> </span>(latoocarfian-c rate freq a b c d xi yi)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__rossler_rate_chaos.Param_dt_%29" class="toclink" data-pltdoc="x">2.334<span class="hspace"> </span>(rossler rate chaosParam dt)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__standard-l_rate_freq_k_xi_yi_%29" class="toclink" data-pltdoc="x">2.335<span class="hspace"> </span>(standard-l rate freq k xi yi)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part._.See_quad-n%29" class="toclink" data-pltdoc="x">2.336<span class="hspace"> </span>See quad-n</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__cusp-n_rate_freq_a_b_xi_%29" class="toclink" data-pltdoc="x">2.337<span class="hspace"> </span>(cusp-n rate freq a b xi)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__lin-cong-c_rate_freq_a_c_m_xi_%29" class="toclink" data-pltdoc="x">2.338<span class="hspace"> </span>(lin-cong-c rate freq a c m xi)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__crackle_rate_chaos.Param_%29" class="toclink" data-pltdoc="x">2.339<span class="hspace"> </span>(crackle rate chaosParam)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__henon-n_rate_freq_a_b_x0_x1_%29" class="toclink" data-pltdoc="x">2.340<span class="hspace"> </span>(henon-n rate freq a b x0 x1)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part._.See_henon-n%29" class="toclink" data-pltdoc="x">2.341<span class="hspace"> </span>See henon-n</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part._.See_lin-cong-c_%29" class="toclink" data-pltdoc="x">2.342<span class="hspace"> </span>See lin-cong-c.</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part._.See_.Gbman.L_%29" class="toclink" data-pltdoc="x">2.343<span class="hspace"> </span>See GbmanL.</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part._.See_.Gbman.L_%29" class="toclink" data-pltdoc="x">2.344<span class="hspace"> </span>See GbmanL.</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part._.See_henon-n%29" class="toclink" data-pltdoc="x">2.345<span class="hspace"> </span>See henon-n</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part._.See_lin-cong-c_%29" class="toclink" data-pltdoc="x">2.346<span class="hspace"> </span>See lin-cong-c.</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__gbman-c_rate_freq_xi_yi_%29" class="toclink" data-pltdoc="x">2.347<span class="hspace"> </span>(gbman-c rate freq xi yi)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__lin-pan2_in_pos_level_%29" class="toclink" data-pltdoc="x">2.348<span class="hspace"> </span>(lin-pan2 in pos level)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__rotate2_x_y_pos_%29" class="toclink" data-pltdoc="x">2.349<span class="hspace"> </span>(rotate2 x y pos)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__decode-b2_num.Channels_w_x_y_orientation_%29" class="toclink" data-pltdoc="x">2.350<span class="hspace"> </span>(decode-b2 numChannels w x y orientation)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__pan2_in_pos_level_%29" class="toclink" data-pltdoc="x">2.351<span class="hspace"> </span>(pan2 in pos level)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__pan-b2_in_azimuth_gain_%29" class="toclink" data-pltdoc="x">2.352<span class="hspace"> </span>(pan-b2 in azimuth gain)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__detect-silence_in_amp_time_done.Action_%29" class="toclink" data-pltdoc="x">2.353<span class="hspace"> </span>(detect-silence in amp time doneAction)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__line_rate_start_end_dur_done.Action_%29" class="toclink" data-pltdoc="x">2.354<span class="hspace"> </span>(line rate start end dur doneAction)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__free_trig_node.I.D_%29" class="toclink" data-pltdoc="x">2.355<span class="hspace"> </span>(free trig nodeID)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__pause-self-when-done_src_%29" class="toclink" data-pltdoc="x">2.356<span class="hspace"> </span>(pause-self-when-done src)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__pause-self_src_%29" class="toclink" data-pltdoc="x">2.357<span class="hspace"> </span>(pause-self src)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__env-gen_rate_gate_level.Scale_level.Bias_time.Scale_done.Action_envelope_%29" class="toclink" data-pltdoc="x">2.358<span class="hspace"> </span>(env-gen rate gate levelScale levelBias timeScale doneAction envelope)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__free-self-when-done_src_%29" class="toclink" data-pltdoc="x">2.359<span class="hspace"> </span>(free-self-when-done src)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__pause_gate_node.I.D_%29" class="toclink" data-pltdoc="x">2.360<span class="hspace"> </span>(pause gate nodeID)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__x-line_rate_start_end_dur_done.Action_%29" class="toclink" data-pltdoc="x">2.361<span class="hspace"> </span>(x-line rate start end dur doneAction)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__done_src_%29" class="toclink" data-pltdoc="x">2.362<span class="hspace"> </span>(done src)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__linen_gate_attack.Time_sus.Level_release.Time_done.Action_%29" class="toclink" data-pltdoc="x">2.363<span class="hspace"> </span>(linen gate attackTime susLevel releaseTime doneAction)</a></p></td></tr><tr><td><p><span class="hspace"> </span><a href="rsc3__ugens.html#%28part.__free-self_src_%29" class="toclink" data-pltdoc="x">2.364<span class="hspace"> </span>(free-self src)</a></p></td></tr></table><p>filters</p><p>granular</p><p>disk-io</p><p>information</p><p>analysis</p><p>triggers</p><p>oscillators</p><p>io</p><p>composite</p><p>controls</p><p>ternary-ops</p><p>binary-ops</p><p>noise</p><p>unary-ops</p><p>fft</p><p>delays</p><p>physical-models</p><p>demand</p><p>chaos</p><p>panners</p><p>envelopes</p><h4>2.1<tt> </tt><a name="(part.__.Rlpf_in_freq_rq_)"></a>(Rlpf in freq rq)</h4><p>A resonant low pass filter.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">f1</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.7</span><span class="hspace"> </span><span class="RktVal">300</span><span class="hspace"> </span><span class="RktVal">20</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktSym">f1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">3600</span><span class="hspace"> </span><span class="RktVal">4000</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rlpf</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">saw</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">200</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">f2</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.2<tt> </tt><a name="(part.__fold_in_lo_hi_)"></a>(fold in lo hi)</h4><p>fold a signal outside given thresholds.</p><p>This differs from the BinaryOpUGen fold2 in that it allows one to
|
|
set both low and high thresholds.</p><p>in - signal to be foldped
|
|
lo - low threshold of foldping
|
|
hi - high threshold of foldping</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">o</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">440</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">l</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rand</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-0</span>.175</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-0</span>.025</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">r</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rand</span><span class="hspace"> </span><span class="RktVal">0.025</span><span class="hspace"> </span><span class="RktVal">0.175</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fold</span><span class="hspace"> </span><span class="RktSym">o</span><span class="hspace"> </span><span class="RktSym">l</span><span class="hspace"> </span><span class="RktSym">r</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>lo and hi are i-rate only.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">o</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">440</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-0</span>.175</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-0</span>.025</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">y</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-y</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.025</span><span class="hspace"> </span><span class="RktVal">0.175</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fold</span><span class="hspace"> </span><span class="RktSym">o</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktSym">y</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.3<tt> </tt><a name="(part.__formlet_in_freq_attack.Time_decay.Time_)"></a>(formlet in freq attackTime decayTime)</h4><p>FOF-like filter</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">20</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">formlet</span><span class="hspace"> </span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktVal">1000</span><span class="hspace"> </span><span class="RktVal">0.01</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">400</span><span class="hspace"> </span><span class="RktVal">8</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">blip</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">1000</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">formlet</span><span class="hspace"> </span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktVal">1000</span><span class="hspace"> </span><span class="RktVal">0.01</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Modulating formant frequency.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">blip</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">5</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">20</span><span class="hspace"> </span><span class="RktVal">300</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">1000</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">1500</span><span class="hspace"> </span><span class="RktVal">700</span><span class="hspace"> </span><span class="RktVal">8</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">formlet</span><span class="hspace"> </span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0.005</span><span class="hspace"> </span><span class="RktVal">0.04</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.4<tt> </tt><a name="(part.__lin-lin_in_srclo_srchi_dstlo_dsthi_)"></a>(lin-lin in srclo srchi dstlo dsthi)</h4><p>Map a linear range to another linear range.</p><p>in - input to convert - kr, ar
|
|
srclo - lower limit of input range - ir
|
|
srchi - upper limit of input range - ir
|
|
dstlo - lower limit of output range - ir
|
|
dsthi - upper limit of output range - ir</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lin-lin</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">440</span><span class="hspace"> </span><span class="RktVal">660</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lin-lin</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-y</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.01</span><span class="hspace"> </span><span class="RktVal">0.25</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.5<tt> </tt><a name="(part.__fos_in_a0_a1_b1_)"></a>(fos in a0 a1 b1)</h4><p>First order filter section.</p><p>Same as one-pole.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-tri</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">0.4</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.99</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-saw</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">200</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fos</span><span class="hspace"> </span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sub</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">u:abs</span><span class="hspace"> </span><span class="RktSym">x</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktSym">x</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Same as one-zero</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-tri</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">0.4</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.99</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-saw</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">200</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fos</span><span class="hspace"> </span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sub</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">u:abs</span><span class="hspace"> </span><span class="RktSym">x</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.6<tt> </tt><a name="(part.__bpf_in_freq_rq_)"></a>(bpf in freq rq)</h4><p>Second order Butterworth bandpass filter</p><p>in - input signal to be processed
|
|
freq - cutoff frequency in Hertz.
|
|
rq - the reciprocal of Q. bandwidth / cutoffFreq.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">f1</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.7</span><span class="hspace"> </span><span class="RktVal">300</span><span class="hspace"> </span><span class="RktVal">20</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktSym">f1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">3600</span><span class="hspace"> </span><span class="RktVal">4000</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">bpf</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">saw</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">200</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.25</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">f2</span><span class="hspace"> </span><span class="RktVal">0.3</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">f1</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">220</span><span class="hspace"> </span><span class="RktVal">440</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktSym">f1</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sub</span><span class="hspace"> </span><span class="RktVal">550</span><span class="hspace"> </span><span class="RktSym">f1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rq</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-y</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.01</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">bpf</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">white-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">f2</span><span class="hspace"> </span><span class="RktSym">rq</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.7<tt> </tt><a name="(part.__wrap_in_lo_hi_)"></a>(wrap in lo hi)</h4><p>wrap a signal outside given thresholds.</p><p>This differs from the BinaryOpUGen wrap2 in that it allows one to
|
|
set both low and high thresholds.</p><p>in - signal to be wrapped
|
|
lo - low threshold of wrapping
|
|
hi - high threshold of wrapping</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">o</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">440</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">l</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rand</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-0</span>.175</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-0</span>.025</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">r</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rand</span><span class="hspace"> </span><span class="RktVal">0.025</span><span class="hspace"> </span><span class="RktVal">0.175</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">wrap</span><span class="hspace"> </span><span class="RktSym">o</span><span class="hspace"> </span><span class="RktSym">l</span><span class="hspace"> </span><span class="RktSym">r</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>lo and hi are i-rate only.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">o</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">440</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-0</span>.175</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-0</span>.025</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">y</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-y</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.025</span><span class="hspace"> </span><span class="RktVal">0.175</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">wrap</span><span class="hspace"> </span><span class="RktSym">o</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktSym">y</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.8<tt> </tt><a name="(part.__bpz2_in_)"></a>(bpz2 in)</h4><p>Two zero fixed midpass. This filter cuts out 0 Hz and the Nyquist
|
|
frequency.</p><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">bpz2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">white-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.25</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><h4>2.9<tt> </tt><a name="(part.__amp-comp_freq_root_exp_)"></a>(amp-comp freq root exp)</h4><p>Basic psychoacoustic amplitude compensation.</p><p>Implements the (optimized) formula: compensationFactor = (root /
|
|
freq) ** exp. Higher frequencies are normally perceived as louder,
|
|
which amp-comp compensates.</p><p>See also amp-compA</p><p>freq - input frequency value. For freq == root, the output is 1.0.</p><p>root - root freq relative to which the curve is calculated (usually
|
|
lowest freq) default value: C (60.midicps)</p><p>exp - exponent. how steep the curve decreases for increasing freq
|
|
(see plots below). default value 0.3333</p><p>Note that for frequencies very much smaller than root the
|
|
amplitudes can become very high. in this case limit the freq with
|
|
freq.max(minval), or use amp-compA.</p><p>compare a sine without compensation with one that uses amplitude
|
|
compensation</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">300</span><span class="hspace"> </span><span class="RktVal">15000</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">y</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-y</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">o</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">c</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">amp-comp</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktVal">300</span><span class="hspace"> </span><span class="RktVal">0.333</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktSym">o</span><span class="hspace"> </span><span class="RktSym">y</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul3</span><span class="hspace"> </span><span class="RktSym">o</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sub</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktSym">y</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">c</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>different sounds cause quite different loudness perception, and the
|
|
desired musical behavior can vary, so the exponent can be tuned:</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">300</span><span class="hspace"> </span><span class="RktVal">15000</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">o</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pulse</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">c</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">amp-comp</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktVal">300</span><span class="hspace"> </span><span class="RktVal">1.3</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktSym">o</span><span class="hspace"> </span><span class="RktSym">c</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>amplitude compensation in frequency modulation</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">300</span><span class="hspace"> </span><span class="RktVal">15000</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">y</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-y</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">3</span><span class="hspace"> </span><span class="RktVal">200</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">m</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">y</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">amp-comp</span><span class="hspace"> </span><span class="RktSym">m</span><span class="hspace"> </span><span class="RktVal">300</span><span class="hspace"> </span><span class="RktVal">0.333</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">c</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul3</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">m</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktSym">c</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.10<tt> </tt><a name="(part.__lag2_in_lag.Time_)"></a>(lag2 in lagTime)</h4><p>lag2 is the same as (lag kr (Lag kr in time) time).</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">220</span><span class="hspace"> </span><span class="RktVal">440</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lag2</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.11<tt> </tt><a name="(part.__one-zero_in_coef_)"></a>(one-zero in coef)</h4><p>One zero filter</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">one-zero</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">white-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">one-zero</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">white-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-0</span>.5</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">one-zero</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">white-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-0</span>.5</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.12<tt> </tt><a name="(part.__klank_in_freq.Scale_freq.Offset_decay.Scale_spec_)"></a>(klank in freqScale freqOffset decayScale spec)</h4><p>klank is a bank of fixed frequency resonators which can be used to
|
|
simulate the resonant modes of an object. Each mode is given a ring
|
|
time, which is the time for the mode to decay by 60 dB.</p><p>The UGen assistant klank-data can help create the ’spec’ entry.
|
|
Note that the SC3 language reorders the inputs, the RSC client does
|
|
not.</p><p>input - the excitation input to the resonant filter bank.</p><p>freqscale - a scale factor multiplied by all frequencies at
|
|
initialization time.</p><p>freqoffset - an offset added to all frequencies at initialization
|
|
time.</p><p>decayscale - a scale factor multiplied by all ring times at
|
|
initialization time.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">d</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">klank-data</span><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">(</span><span class="RktVal">800</span><span class="hspace"> </span><span class="RktVal">1071</span><span class="hspace"> </span><span class="RktVal">1153</span><span class="hspace"> </span><span class="RktVal">1723</span><span class="RktVal">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">replicate</span><span class="hspace"> </span><span class="RktVal">5</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">replicate</span><span class="hspace"> </span><span class="RktVal">5</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">klank</span><span class="hspace"> </span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktSym">d</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dust</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">8</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">d</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">klank-data</span><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">(</span><span class="RktVal">800</span><span class="hspace"> </span><span class="RktVal">1071</span><span class="hspace"> </span><span class="RktVal">1353</span><span class="hspace"> </span><span class="RktVal">1723</span><span class="RktVal">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">replicate</span><span class="hspace"> </span><span class="RktVal">4</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">replicate</span><span class="hspace"> </span><span class="RktVal">4</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">klank</span><span class="hspace"> </span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktSym">d</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pink-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.007</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">d</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">klank-data</span><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">(</span><span class="RktVal">800</span><span class="hspace"> </span><span class="RktVal">1071</span><span class="hspace"> </span><span class="RktVal">1353</span><span class="hspace"> </span><span class="RktVal">1723</span><span class="RktVal">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">replicate</span><span class="hspace"> </span><span class="RktVal">4</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">replicate</span><span class="hspace"> </span><span class="RktVal">4</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">klank</span><span class="hspace"> </span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktSym">d</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pink-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktVal">0.007</span><span class="hspace"> </span><span class="RktVal">0.007</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">d</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">klank-data</span><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">(</span><span class="RktVal">200</span><span class="hspace"> </span><span class="RktVal">671</span><span class="hspace"> </span><span class="RktVal">1153</span><span class="hspace"> </span><span class="RktVal">1723</span><span class="RktVal">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">replicate</span><span class="hspace"> </span><span class="RktVal">4</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">replicate</span><span class="hspace"> </span><span class="RktVal">4</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">klank</span><span class="hspace"> </span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktSym">d</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">decay</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">4</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.03</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">clip-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.01</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">d</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">klank-data</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">replicate-m</span><span class="hspace"> </span><span class="RktVal">12</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rand</span><span class="hspace"> </span><span class="RktVal">800</span><span class="hspace"> </span><span class="RktVal">4000</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">replicate</span><span class="hspace"> </span><span class="RktVal">12</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">replicate-m</span><span class="hspace"> </span><span class="RktVal">12</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rand</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal">2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">klank</span><span class="hspace"> </span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktSym">d</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.13<tt> </tt><a name="(part.__lpz2_ar_in_)"></a>(lpz2 ar in)</h4><p>Two zero fixed lowpass filter</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lpz2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">white-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.25</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.14<tt> </tt><a name="(part.__lin-exp_in_srclo_srchi_dstlo_dsthi_)"></a>(lin-exp in srclo srchi dstlo dsthi)</h4><p>Map a linear range to an exponential range.</p><p>in - input to convert - kr, ar
|
|
srclo - lower limit of input range - ir
|
|
srchi - upper limit of input range - ir
|
|
dstlo - lower limit of output range - ir
|
|
dsthi - upper limit of output range - ir</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lin-exp</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">440</span><span class="hspace"> </span><span class="RktVal">660</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lin-exp</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-y</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.01</span><span class="hspace"> </span><span class="RktVal">0.25</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.15<tt> </tt><a name="(part.__hpz2_in_)"></a>(hpz2 in)</h4><p>Two zero fixed highpass filter.</p><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">hpz2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">white-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.25</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><h4>2.16<tt> </tt><a name="(part.__leak-dc_in_coef_)"></a>(leak-dc in coef)</h4><p>Remove DC. This filter removes a DC offset from a signal.</p><p>in - input signal
|
|
coef - leak coefficient</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-pulse</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">800</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">leak-dc</span><span class="hspace"> </span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktVal">0.995</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.17<tt> </tt><a name="(part.__hpf_in_freq_)"></a>(hpf in freq)</h4><p>Second order Butterworth highpass filter.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">saw</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">200</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f1</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.7</span><span class="hspace"> </span><span class="RktVal">300</span><span class="hspace"> </span><span class="RktVal">20</span><span class="hspace"> </span><span class="RktSym">do-nothing</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktSym">f1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">3600</span><span class="hspace"> </span><span class="RktVal">4000</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">hpf</span><span class="hspace"> </span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktSym">f2</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">5</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.18<tt> </tt><a name="(part.__sos_in_a0_a1_a2_b1_b2_)"></a>(sos in a0 a1 a2 b1 b2)</h4><p>Second order filter section (biquad). A standard second order
|
|
filter section. Filter coefficients are given directly rather than
|
|
calculated for you.</p><p>Same as two-pole</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">theta</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">*</span></span></span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="hspace"> </span><span class="RktSym"><span class="badlink"><span class="RktValLink">pi</span></span></span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym"><span class="badlink"><span class="RktValLink">pi</span></span></span><span class="hspace"> </span><span class="RktVal">5</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rho</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.6</span><span class="hspace"> </span><span class="RktVal">0.99</span><span class="hspace"> </span><span class="RktVal">5</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b1</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktSym">rho</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">u:cos</span><span class="hspace"> </span><span class="RktSym">theta</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">neg</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">squared</span><span class="hspace"> </span><span class="RktSym">rho</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sos</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-saw</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">200</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktSym">b1</span><span class="hspace"> </span><span class="RktSym">b2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.19<tt> </tt><a name="(part.__normalizer_in_level_dur_)"></a>(normalizer in level dur)</h4><p>Flattens dynamics.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">z</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">decay2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">8</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-saw</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.25</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-0</span>.6</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.7</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0.001</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0.3</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">500</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktSym">z</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">normalizer</span><span class="hspace"> </span><span class="RktSym">z</span><span class="hspace"> </span><span class="RktVal">0.4</span><span class="hspace"> </span><span class="RktVal">0.01</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.20<tt> </tt><a name="(part.__two-zero_in_freq_radius_)"></a>(two-zero in freq radius)</h4><p>Two zero filter</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">two-zero</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">white-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.125</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">20</span><span class="hspace"> </span><span class="RktVal">20000</span><span class="hspace"> </span><span class="RktVal">8</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.21<tt> </tt><a name="(part.__clip_in_lo_hi_)"></a>(clip in lo hi)</h4><p>clip ‘in’ to lie between ‘lo’ and ‘hi’, which are i-rate inputs.</p><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">clip</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">440</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.4</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-0</span>.25</span><span class="hspace"> </span><span class="RktVal">0.25</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><h4>2.22<tt> </tt><a name="(part.__limiter_input_level_look.Ahead.Time_)"></a>(limiter input level lookAheadTime)</h4><p>peak limiter. Limits the input amplitude to the given
|
|
level. limiter will not overshoot like compander will, but it needs
|
|
to look ahead in the audio. Thus there is a delay equal to twice
|
|
the lookAheadTime. limiter, unlike compander, is completely
|
|
transparent for an in range signal.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">8</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-saw</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.25</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-0</span>.6</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.7</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">decay2</span><span class="hspace"> </span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktVal">0.001</span><span class="hspace"> </span><span class="RktVal">0.3</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">500</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">limiter</span><span class="hspace"> </span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="hspace"> </span><span class="RktVal">0.01</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.23<tt> </tt><a name="(part.__median_length_in_)"></a>(median length in)</h4><p>median filter.</p><p>Signal with impulse noise.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">median</span><span class="hspace"> </span><span class="RktVal">3</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">saw</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">500</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dust2</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">100</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.9</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>The median length can be increased for longer duration noise.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">median</span><span class="hspace"> </span><span class="RktVal">5</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">saw</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">500</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lpz1</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dust2</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">100</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.9</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Long median filters begin chopping off the peaks of the waveform</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">1000</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">median</span><span class="hspace"> </span><span class="RktVal">31</span><span class="hspace"> </span><span class="RktSym">x</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Another noise reduction application. Use median filter for high
|
|
frequency noise. Use leak-dc for low frequency noise.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">s0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">white-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">800</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">s1</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">median</span><span class="hspace"> </span><span class="RktVal">31</span><span class="hspace"> </span><span class="RktSym">s0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">leak-dc</span><span class="hspace"> </span><span class="RktSym">s1</span><span class="hspace"> </span><span class="RktVal">0.9</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.24<tt> </tt><a name="(part.__lag3_in_lag.Time_)"></a>(lag3 in lagTime)</h4><p>lag3 is the same as (lag (Lag (Lag in time) time) time).</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">220</span><span class="hspace"> </span><span class="RktVal">440</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lag3</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.25<tt> </tt><a name="(part.__amp-comp.A_freq_root_min.Amp_root.Amp_)"></a>(amp-compA freq root minAmp rootAmp)</h4><p>ANSI A-weighting curve.</p><p>Basic psychoacoustic amplitude compensation</p><p>Higher frequencies are normally perceived as louder, which amp-compA
|
|
compensates. Following the measurings by Fletcher and Munson, the
|
|
ANSI standard describes a function for loudness vs. frequency.
|
|
Note that this curve is only valid for standardized amplitude.
|
|
For a simpler but more flexible curve, see amp-comp.</p><p>freq - input frequency value. For freq == root, the output is
|
|
rootAmp. (default freq 0 Hz)</p><p>root - root freq relative to which the curve is calculated (usually
|
|
lowest freq) (default 0 Hz) default value: C (60.midicps)</p><p>minAmp - amplitude at the minimum point of the curve (around 2512
|
|
Hz) (default -10dB)</p><p>rootAmp - amplitude at the root frequency. (default 1) apart from
|
|
freq, the values are not modulatable</p><p>compare a sine without compensation with one that uses amplitude
|
|
compensation</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">300</span><span class="hspace"> </span><span class="RktVal">15000</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">y</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-y</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">o</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">c</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">amp-comp-a</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktVal">300</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">db-amp</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-1</span>0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktSym">o</span><span class="hspace"> </span><span class="RktSym">y</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul3</span><span class="hspace"> </span><span class="RktSym">o</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sub</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktSym">y</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">c</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>adjust the minimum and root amp (in this way one can flatten out
|
|
the curve for higher amplitudes)</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">300</span><span class="hspace"> </span><span class="RktVal">18000</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">y</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-y</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">o</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">formant</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">300</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktVal">20</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">c</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">amp-comp-a</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktVal">300</span><span class="hspace"> </span><span class="RktVal">0.6</span><span class="hspace"> </span><span class="RktVal">0.3</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktSym">o</span><span class="hspace"> </span><span class="RktSym">y</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul3</span><span class="hspace"> </span><span class="RktSym">o</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sub</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktSym">y</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">c</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>amplitude compensation in frequency modulation (using
|
|
Fletscher-Munson curve)</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">300</span><span class="hspace"> </span><span class="RktVal">15000</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">y</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-y</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">3</span><span class="hspace"> </span><span class="RktVal">200</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">m</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">y</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">amp-comp-a</span><span class="hspace"> </span><span class="RktSym">m</span><span class="hspace"> </span><span class="RktVal">300</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">db-amp</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-1</span>0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">c</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul3</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">m</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktSym">c</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.26<tt> </tt><a name="(part.__two-pole_in_freq_radius_)"></a>(two-pole in freq radius)</h4><p>Two pole filter. This provides lower level access to setting of
|
|
pole location. For general purposes resonz is better.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">two-pole</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">white-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.005</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">2000</span><span class="hspace"> </span><span class="RktVal">0.95</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">two-pole</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">white-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.005</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">800</span><span class="hspace"> </span><span class="RktVal">8000</span><span class="hspace"> </span><span class="RktVal">8</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0.95</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.27<tt> </tt><a name="(part.__lpf_in_freq_)"></a>(lpf in freq)</h4><p>Second order Butterworth lowpass filter.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.7</span><span class="hspace"> </span><span class="RktVal">300</span><span class="hspace"> </span><span class="RktVal">20</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lpf</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">saw</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">200</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">3600</span><span class="hspace"> </span><span class="RktVal">4000</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.28<tt> </tt><a name="(part.__hpz1_in_)"></a>(hpz1 in)</h4><p>Two point difference filter.</p><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">hpz1</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">white-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.25</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><h4>2.29<tt> </tt><a name="(part.__freq-shift_input_shift_phase_)"></a>(freq-shift input shift phase)</h4><p>freq-shift implements single sideband amplitude modulation, also
|
|
known as frequency shifting, but not to be confused with pitch
|
|
shifting. Frequency shifting moves all the components of a signal
|
|
by a fixed amount but does not preserve the original harmonic
|
|
relationships.</p><p>input - audio input
|
|
shift - amount of shift in cycles per second
|
|
phase - phase of the frequency shift (0 - 2pi)</p><p>shifting a 100Hz tone by 1 Hz rising to 500Hz</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">100</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">500</span><span class="hspace"> </span><span class="RktVal">5</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">freq-shift</span><span class="hspace"> </span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>shifting a complex tone by 1 Hz rising to 500Hz</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">klang</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">klang-data</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">list</span></span></span><span class="hspace"> </span><span class="RktVal">101</span><span class="hspace"> </span><span class="RktVal">303</span><span class="hspace"> </span><span class="RktVal">606</span><span class="hspace"> </span><span class="RktVal">808</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">replicate</span><span class="hspace"> </span><span class="RktVal">4</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">replicate</span><span class="hspace"> </span><span class="RktVal">4</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">500</span><span class="hspace"> </span><span class="RktVal">5</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">freq-shift</span><span class="hspace"> </span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>modulating shift and phase</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-noise2</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">0.3</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">1500</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">p</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lin-lin</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">500</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-1</span></span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">*</span></span></span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktSym"><span class="badlink"><span class="RktValLink">pi</span></span></span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">freq-shift</span><span class="hspace"> </span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktSym">p</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>shifting bandpassed noise</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">bpf</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">white-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">1000</span><span class="hspace"> </span><span class="RktVal">0.001</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-noise0</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">5.5</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">1000</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">freq-shift</span><span class="hspace"> </span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">32</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.30<tt> </tt><a name="(part.__lpz1_ar_in_)"></a>(lpz1 ar in)</h4><p>Two point average filter</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lpz1</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">white-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.25</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.31<tt> </tt><a name="(part.__moog-ff_in_freq_gain_reset_)"></a>(moog-ff in freq gain reset)</h4><p>Moog VCF implementation, designed by Federico Fontana. A digital
|
|
implementation of the Moog VCF (filter).</p><p>in - the input signal
|
|
freq - the cutoff frequency
|
|
gain - the filter resonance gain, between zero and 4
|
|
reset - when greater than zero, this will reset the
|
|
state of the digital filters at the beginning
|
|
of a computational block.</p><p>The design of this filter is described in the conference paper
|
|
Fontana, F. (2007) Preserving the Digital Structure of the Moog
|
|
VCF. in Proc. ICMC07, Copenhagen, 25-31 August 2007</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">n</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">white-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">y</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-y</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">100</span><span class="hspace"> </span><span class="RktVal">10000</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">4</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">moog-ff</span><span class="hspace"> </span><span class="RktSym">n</span><span class="hspace"> </span><span class="RktSym">y</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">p</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pulse</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktVal">40</span><span class="hspace"> </span><span class="RktVal">121</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktVal">0.3</span><span class="hspace"> </span><span class="RktVal">0.7</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lin-lin</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-noise0</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.43</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-1</span></span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.001</span><span class="hspace"> </span><span class="RktVal">2.2</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f1</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lin-lin</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktSym">f0</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-1</span></span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">30</span><span class="hspace"> </span><span class="RktVal">4200</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">y</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-y</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">4</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">moog-ff</span><span class="hspace"> </span><span class="RktSym">p</span><span class="hspace"> </span><span class="RktSym">f1</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktVal">0.83</span><span class="hspace"> </span><span class="RktSym">y</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.32<tt> </tt><a name="(part.__resonz_in_freq_bwr_)"></a>(resonz in freq bwr)</h4><p>Resonant filter.</p><p>A two pole resonant filter with zeroes at z = +/- 1. Based on
|
|
K. Steiglitz, "A Note on Constant-Gain Digital Resonators,"
|
|
Computer Music Journal, vol 18, no. 4, pp. 8-10, Winter 1994. The
|
|
reciprocal of Q is used rather than Q because it saves a divide
|
|
operation inside the unit generator.</p><p>in - input signal to be processed
|
|
freq - resonant frequency in Hertz
|
|
rq - bandwidth ratio (reciprocal of Q). rq = bandwidth / centerFreq</p><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">resonz</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">white-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">2000</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><p>Modulate frequency</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">1000</span><span class="hspace"> </span><span class="RktVal">8000</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">resonz</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">white-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0.05</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Modulate bandwidth</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">rq</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.001</span><span class="hspace"> </span><span class="RktVal">8</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">resonz</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">white-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">2000</span><span class="hspace"> </span><span class="RktSym">rq</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Modulate bandwidth opposite direction</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">rq</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.001</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">8</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">resonz</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">white-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">2000</span><span class="hspace"> </span><span class="RktSym">rq</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>random resonator at a random location, run as often as you like...</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">freq</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">choose</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">map</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">z</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">*</span></span></span><span class="hspace"> </span><span class="RktSym">z</span><span class="hspace"> </span><span class="RktVal">120</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">enum-from-to</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">16</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">bw</span><span class="hspace"> </span><span class="RktVal">1/4</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">gain</span><span class="hspace"> </span><span class="RktVal">8</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pan2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">resonz</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">white-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">freq</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">/</span></span></span><span class="hspace"> </span><span class="RktSym">bw</span><span class="hspace"> </span><span class="RktSym">freq</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rand</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-1</span></span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktSym">gain</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.33<tt> </tt><a name="(part.__brz2_in_)"></a>(brz2 in)</h4><p>A two zero fixed midcut filter. A special case fixed
|
|
filter. Implements the formula:</p><p>out(i) = 0.5 * (in(i) + in(i-2))</p><p>This filter cuts out frequencies around 1/2 of the Nyquist
|
|
frequency.</p><p>Compare:</p><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">white-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.15</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">brz2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">white-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.15</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><h4>2.34<tt> </tt><a name="(part.__.Rhpf_in_freq_rq_)"></a>(Rhpf in freq rq)</h4><p>A resonant high pass filter.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rhpf</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">saw</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">200</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.7</span><span class="hspace"> </span><span class="RktVal">300</span><span class="hspace"> </span><span class="RktVal">20</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">3600</span><span class="hspace"> </span><span class="RktVal">4000</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.35<tt> </tt><a name="(part.__brf_in_freq_rq_)"></a>(brf in freq rq)</h4><p>Second order Butterworth band reject filter.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">f1</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.7</span><span class="hspace"> </span><span class="RktVal">300</span><span class="hspace"> </span><span class="RktVal">20</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktSym">f1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">3600</span><span class="hspace"> </span><span class="RktVal">4000</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">brf</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">saw</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">200</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">f2</span><span class="hspace"> </span><span class="RktVal">0.3</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.36<tt> </tt><a name="(part.__one-pole_in_coef_)"></a>(one-pole in coef)</h4><p>A one pole filter. Implements the formula: out(i) = ((1 -
|
|
abs(coef)) * in(i)) + (coef * out(i-1)).</p><p>in - input signal to be processed
|
|
coef - feedback coefficient. Should be between -1 and +1</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">one-pole</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">white-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.95</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">one-pole</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">white-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-0</span>.95</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">one-pole</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">white-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-0</span>.99</span><span class="hspace"> </span><span class="RktVal">0.99</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.37<tt> </tt><a name="(part.__lag_in_lag.Time_)"></a>(lag in lagTime)</h4><p>A simple averaging filter.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">220</span><span class="hspace"> </span><span class="RktVal">440</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lag</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.38<tt> </tt><a name="(part.__ringz_in_freq_decay.Time_)"></a>(ringz in freq decayTime)</h4><p>Ringing filter. This is the same as resonz, except that instead of
|
|
a resonance parameter, the bandwidth is specified in a 60dB ring
|
|
decay time. One ringz is equivalent to one component of the klank
|
|
UGen.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">ringz</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dust</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">3</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.3</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">2000</span><span class="hspace"> </span><span class="RktVal">2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">ringz</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">white-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.005</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">2000</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Modulate frequency</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">ringz</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">white-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.005</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">100</span><span class="hspace"> </span><span class="RktVal">3000</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktSym">do-nothing</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">ringz</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">6</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.3</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">100</span><span class="hspace"> </span><span class="RktVal">3000</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktSym">do-nothing</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Modulate ring time</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">ringz</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">6</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.3</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">2000</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">4</span><span class="hspace"> </span><span class="RktVal">0.04</span><span class="hspace"> </span><span class="RktVal">8</span><span class="hspace"> </span><span class="RktSym">do-nothing</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Modulate ring time opposite direction</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">ringz</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">6</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.3</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">2000</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.04</span><span class="hspace"> </span><span class="RktVal">4</span><span class="hspace"> </span><span class="RktVal">8</span><span class="hspace"> </span><span class="RktSym">do-nothing</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">n</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">white-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.001</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mix-fill</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">10</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">_</span></span></span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rand</span><span class="hspace"> </span><span class="RktVal">100</span><span class="hspace"> </span><span class="RktVal">5000</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rand</span><span class="hspace"> </span><span class="RktVal">100</span><span class="hspace"> </span><span class="RktVal">5000</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">20</span><span class="hspace"> </span><span class="RktSym">do-nothing</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">ringz</span><span class="hspace"> </span><span class="RktSym">n</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.39<tt> </tt><a name="(part.__dyn-klank_in_freq.Scale_freq.Offset_decay.Scale_spec_)"></a>(dyn-klank in freqScale freqOffset decayScale spec)</h4><p>Dynklank is a bank of frequency resonators which can be used to
|
|
simulate the resonant modes of an object. Each mode is given a ring
|
|
time, which is the time for the mode to decay by 60 dB.</p><p>Unlike klank, the parameters in specificationsArrayRef can be
|
|
changed after it has been started.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">d</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">klank-data</span><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">(</span><span class="RktVal">800</span><span class="hspace"> </span><span class="RktVal">1071</span><span class="hspace"> </span><span class="RktVal">1153</span><span class="hspace"> </span><span class="RktVal">1723</span><span class="RktVal">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">replicate</span><span class="hspace"> </span><span class="RktVal">4</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">replicate</span><span class="hspace"> </span><span class="RktVal">4</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dyn-klank</span><span class="hspace"> </span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktSym">d</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dust</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">8</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">d</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">klank-data</span><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">(</span><span class="RktVal">800</span><span class="hspace"> </span><span class="RktVal">1071</span><span class="hspace"> </span><span class="RktVal">1353</span><span class="hspace"> </span><span class="RktVal">1723</span><span class="RktVal">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">replicate</span><span class="hspace"> </span><span class="RktVal">4</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">replicate</span><span class="hspace"> </span><span class="RktVal">4</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dyn-klank</span><span class="hspace"> </span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktSym">d</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">3</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">list</span></span></span><span class="hspace"> </span><span class="RktVal">800</span><span class="hspace"> </span><span class="RktVal">1071</span><span class="hspace"> </span><span class="RktVal">1153</span><span class="hspace"> </span><span class="RktVal">1723</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">r</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">list</span></span></span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">y</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-y</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">d</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">klank-data</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">map</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">e</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktSym">e</span><span class="hspace"> </span><span class="RktSym">x</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">f</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">replicate</span><span class="hspace"> </span><span class="RktVal">4</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">map</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">e</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktSym">e</span><span class="hspace"> </span><span class="RktSym">y</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">r</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dyn-klank</span><span class="hspace"> </span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktSym">d</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lin-lin</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-noise0</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktSym">f</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-1</span></span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">3</span><span class="hspace"> </span><span class="RktVal">12</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktSym">d</span><span class="hspace"> </span><span class="RktSym">l</span><span class="hspace"> </span><span class="RktSym">r</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">map</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">e</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktSym">e</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">t-rand</span><span class="hspace"> </span><span class="RktSym">l</span><span class="hspace"> </span><span class="RktSym">r</span><span class="hspace"> </span><span class="RktSym">i</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">d</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">d</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktSym">r</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">klank-data</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="hspace"> </span><span class="RktVal">2</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">replicate</span><span class="hspace"> </span><span class="RktVal">4</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktSym">r</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal">10</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f1</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">list</span></span></span><span class="hspace"> </span><span class="RktVal">800</span><span class="hspace"> </span><span class="RktVal">1071</span><span class="hspace"> </span><span class="RktVal">1153</span><span class="hspace"> </span><span class="RktVal">1723</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">list</span></span></span><span class="hspace"> </span><span class="RktVal">786</span><span class="hspace"> </span><span class="RktVal">1083</span><span class="hspace"> </span><span class="RktVal">1169</span><span class="hspace"> </span><span class="RktVal">1715</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">r1</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">list</span></span></span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.95</span><span class="hspace"> </span><span class="RktVal">0.75</span><span class="hspace"> </span><span class="RktVal">1.25</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">r2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">list</span></span></span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">1.35</span><span class="hspace"> </span><span class="RktVal">0.95</span><span class="hspace"> </span><span class="RktVal">1.15</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">i1</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktVal">1.5</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">i2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktVal">1.25</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dyn-klank</span><span class="hspace"> </span><span class="RktSym">i1</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">d</span><span class="hspace"> </span><span class="RktSym">i1</span><span class="hspace"> </span><span class="RktSym">f1</span><span class="hspace"> </span><span class="RktSym">r1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dyn-klank</span><span class="hspace"> </span><span class="RktSym">i2</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">d</span><span class="hspace"> </span><span class="RktSym">i2</span><span class="hspace"> </span><span class="RktSym">f2</span><span class="hspace"> </span><span class="RktSym">r2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.40<tt> </tt><a name="(part.__.Grainin_nc_tr_dur_in_pan_envbuf_)"></a>(Grainin nc tr dur in pan envbuf)</h4><p>Granulate an input signal</p><p>nc - the number of channels to output. If 1, mono is
|
|
returned and pan is ignored.</p><p>tr - a kr or ar trigger to start a new grain. If ar, grains
|
|
after the start of the synth are sample accurate.</p><p>The following args are polled at grain creation time</p><p>dur - size of the grain.</p><p>in - the input to granulate</p><p>pan - a value from -1 to 1. Determines where to pan the output in
|
|
the same manner as pan-az.</p><p>envbuf - the buffer number containing a singal to use for the
|
|
grain envelope. -1 uses a built-in Hanning envelope.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-0</span>.5</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">y</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-y</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">5</span><span class="hspace"> </span><span class="RktVal">25</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">n</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pink-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktSym">y</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">grain-in</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktSym">n</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-1</span></span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.41<tt> </tt><a name="(part.__grain-buf_nc_tr_dur_sndbuf_rate_pos_interp_pan_envbuf_)"></a>(grain-buf nc tr dur sndbuf rate pos interp pan envbuf)</h4><p>Granular synthesis with sound stored in a buffer</p><p>nc - the number of channels to output. If 1, mono is returned and
|
|
pan is ignored.</p><p>tr - a kr or ar trigger to start a new grain. If ar, grains after
|
|
the start of the synth are sample accurate.</p><p>The following args are polled at grain creation time</p><p>dur - size of the grain.</p><p>sndbuf - the buffer holding an audio signal</p><p>rate - the playback rate of the sampled sound</p><p>pos - the playback position for the grain to start with (0 is
|
|
beginning, 1 is end of file)</p><p>interp - the interpolation method used for pitchshifting grains.
|
|
1 = no interpolation. 2 = linear. 4 = cubic interpolation
|
|
(more computationally intensive).</p><p>pan - a value from -1 to 1. Determines where to pan the output in
|
|
the same manner as pan-az.</p><p>envb - the buffer number containing a singal to use for the
|
|
grain envelope. -1 uses a built-in Hanning envelope.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-alloc-read</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">"/home/rohan/audio/metal.wav"</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">g</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">letc</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">gate</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">amp</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sndbuf</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">envbuf</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-1</span></span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-1</span></span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">y</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-y</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">45</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktSym">y</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">r</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lin-lin</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-noise1</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">500</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-1</span></span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="hspace"> </span><span class="RktVal">2</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">p</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lin-lin</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-noise2</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-1</span></span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">grain-buf</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktSym">sndbuf</span><span class="hspace"> </span><span class="RktSym">r</span><span class="hspace"> </span><span class="RktSym">p</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktSym">envbuf</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">send-synth</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktVal">"g"</span><span class="hspace"> </span><span class="RktSym">g</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">send</span></span></span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">s-new2</span><span class="hspace"> </span><span class="RktVal">"g"</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-1</span></span><span class="hspace"> </span><span class="RktSym">add-to-tail</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">"sndbuf"</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">"envbuf"</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-1</span></span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.42<tt> </tt><a name="(part.__grain-sin_nc_tr_dur_freq_pan_envbuf_)"></a>(grain-sin nc tr dur freq pan envbuf)</h4><p>Granular synthesis with sine tones</p><p>nc - the number of channels to output. If 1, mono is returned and
|
|
pan is ignored.</p><p>tr - a kr or ar trigger to start a new grain. If ar, grains after
|
|
the start of the synth are sample accurate.</p><p>The following args are polled at grain creation time</p><p>dur - size of the grain.</p><p>freq - the input to granulate</p><p>pan - a value from -1 to 1. Determines where to pan the output in
|
|
the same manner as pan-az.</p><p>envbuf - the buffer number containing a singal to use for the grain
|
|
envelope. -1 uses a built-in Hanning envelope.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-0</span>.5</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">y</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-y</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">400</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">n</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">white-noise</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">add</span><span class="hspace"> </span><span class="RktVal">440</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktSym">n</span><span class="hspace"> </span><span class="RktSym">y</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">grain-sin</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-1</span></span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.43<tt> </tt><a name="(part.__warp1_nc_buf_ptr_freq.Scale_window.Size_envbuf_overlaps_windowrand.Ratio_interp_)"></a>(warp1 nc buf ptr freqScale windowSize envbuf overlaps windowrandRatio interp)</h4><p>Warp a buffer with a time pointer</p><p>inspired by Chad Kirby’s SuperCollider2 warp1 class, which was
|
|
inspired by Richard Karpen’s sndwarp for CSound. A granular time
|
|
strecher and pitchshifter.</p><p>nc - the number of channels in the soundfile used in bufnum.</p><p>buf - the buffer number of a mono soundfile.</p><p>ptr - the position in the buffer. The value should be between 0
|
|
and 1, with 0 being the begining of the buffer, and 1 the
|
|
end.</p><p>freqScale - the amount of frequency shift. 1.0 is normal, 0.5 is
|
|
one octave down, 2.0 is one octave up. Negative values
|
|
play the soundfile backwards.</p><p>windowSize - the size of each grain window.</p><p>envbuf - the buffer number containing a singal to use for the grain
|
|
envelope. -1 uses a built-in Hanning envelope.</p><p>overlaps - the number of overlaping windows.</p><p>windowrandRatio - the amount of randomness to the windowing
|
|
function. Must be between 0 (no randomness) to
|
|
1.0 (probably to random actually)</p><p>interp - the interpolation method used for pitchshifting grains. 1
|
|
= no interpolation. 2 = linear. 4 = cubic interpolation
|
|
(more computationally intensive).</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-alloc-read</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">"/home/rohan/audio/metal.wav"</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">p</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lin-lin</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-saw</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.05</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-1</span></span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">w</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">warp1</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktSym">p</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-1</span></span><span class="hspace"> </span><span class="RktVal">8</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal">2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktSym">w</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.44<tt> </tt><a name="(part.__grain-fm_nc_tr_dur_carfreq_modfreq_index_pan_envbuf_)"></a>(grain-fm nc tr dur carfreq modfreq index pan envbuf)</h4><p>Granular synthesis with frequency modulated sine tones</p><p>nc - the number of channels to output. If 1, mono is returned and
|
|
pan is ignored.</p><p>tr - a kr or ar trigger to start a new grain. If ar, grains after
|
|
the start of the synth are sample accurate.</p><p>The following args are polled at grain creation time</p><p>dur - size of the grain.</p><p>carfreq - the carrier freq of the grain generators internal
|
|
oscillator</p><p>modfreq - the modulating freq of the grain generators internal
|
|
oscillator</p><p>index - the index of modulation</p><p>pan - a value from -1 to 1. Determines where to pan the output in
|
|
the same manner as pan-az.</p><p>envbuf - the buffer number containing a singal to use for the grain
|
|
envelope. -1 uses a built-in Hanning envelope.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-0</span>.5</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">y</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-y</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">400</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">n</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">white-noise</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">add</span><span class="hspace"> </span><span class="RktVal">440</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktSym">n</span><span class="hspace"> </span><span class="RktSym">y</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lin-lin</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-noise1</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">500</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-1</span></span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">10</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">grain-fm</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktVal">200</span><span class="hspace"> </span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-1</span></span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.45<tt> </tt><a name="(part.__disk-in_num-channels_rate_bufnum_)"></a>(disk-in num-channels rate bufnum)</h4><p>Continously play a soundfile from disk. This requires a buffer to
|
|
be preloaded with one buffer size of sound. The buffer size must
|
|
be a multiple of twice the synth block size. The default block size
|
|
is 64.</p><p>Note that disk-in reads the number of outputs to create from what
|
|
looks like an input, but it is not an input, and cannot be set
|
|
using a control.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">"/home/rohan/audio/metal.wav"</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">n</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-alloc</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">8192</span><span class="hspace"> </span><span class="RktSym">n</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-read</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-1</span></span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">play</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">disk-in</span><span class="hspace"> </span><span class="RktSym">n</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">with-sc3</span><span class="hspace"> </span><span class="RktSym">reset</span><span class="RktPn">)</span></p></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-close</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-free</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.46<tt> </tt><a name="(part.__disk-out_bufnum_channels_)"></a>(disk-out bufnum channels)</h4><p>Note: There are constraints on the size of the buffer, it must be
|
|
greater than or equal to twice the size of the audio bus. There
|
|
must be the same number of channels at the buffer and the disk-out
|
|
ugen.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">bus-size</span><span class="hspace"> </span><span class="RktVal">1024</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">bufferexpt</span><span class="hspace"> </span><span class="RktVal">15</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">=</span></span></span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fxand</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">expt</span></span></span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktSym">bufferexpt</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">-</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fxarithmetic-shift</span><span class="hspace"> </span><span class="RktSym">bus-size</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">g</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">letc</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">bufnum</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">z</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">clip2</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rlpf</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-pulse</span><span class="hspace"> </span><span class="RktSym">ar</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">21</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">100</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0.4</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mrg2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">disk-out</span><span class="hspace"> </span><span class="RktSym">bufnum</span><span class="hspace"> </span><span class="RktSym">z</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktSym">z</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">send-synth</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktVal">"disk-out-help"</span><span class="hspace"> </span><span class="RktSym">g</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-alloc</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">32768</span><span class="hspace"> </span><span class="RktVal">2</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-write</span><span class="hspace"> </span><span class="RktVal">10</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">"/tmp/test.aiff"</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">"aiff"</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">"float"</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">32768</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">send</span></span></span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">s-new1</span><span class="hspace"> </span><span class="RktVal">"disk-out-help"</span><span class="hspace"> </span><span class="RktVal">1001</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">"bufnum"</span><span class="hspace"> </span><span class="RktVal">10</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">send</span></span></span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">n-free1</span><span class="hspace"> </span><span class="RktVal">1001</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-close</span><span class="hspace"> </span><span class="RktVal">10</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-free</span><span class="hspace"> </span><span class="RktVal">10</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">system</span></span></span><span class="hspace"> </span><span class="RktVal">"sndfile-info /tmp/test.aiff"</span><span class="RktPn">)</span></p></blockquote><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">system</span></span></span><span class="hspace"> </span><span class="RktVal">"jack.play /tmp/test.aiff"</span><span class="RktPn">)</span></p></blockquote><h4>2.47<tt> </tt><a name="(part._num-input-buses)"></a>num-input-buses</h4><p>The number of audio buses allocated to input. input buses follow
|
|
output buses which begin at zero.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">bus</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">add</span><span class="hspace"> </span><span class="RktSym">num-output-buses</span><span class="hspace"> </span><span class="RktSym">num-input-buses</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mrg2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">in</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">bus</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktSym">bus</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">440</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.48<tt> </tt><a name="(part._num-control-buses)"></a>num-control-buses</h4><h4>2.49<tt> </tt><a name="(part._num-buffers)"></a>num-buffers</h4><h4>2.50<tt> </tt><a name="(part._num-output-buses)"></a>num-output-buses</h4><p>The number of audio buses allocated to output.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">bus</span><span class="hspace"> </span><span class="RktSym">num-output-buses</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pulse</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">90</span><span class="hspace"> </span><span class="RktVal">0.3</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">amplitude</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lag</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">in</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">bus</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.01</span><span class="hspace"> </span><span class="RktVal">0.01</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.51<tt> </tt><a name="(part.__buf-frames_rate_bufnum_)"></a>(buf-frames rate bufnum)</h4><p>Current duration of buffer.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-alloc-read</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">"/home/rohan/audio/metal.wav"</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">p</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">phasor</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">buf-rate-scale</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">buf-frames</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">buf-rd</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktSym">p</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">p</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">k2a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">buf-frames</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">buf-rd</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktSym">p</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.52<tt> </tt><a name="(part.__buf-rate-scale_rate_bufnum_)"></a>(buf-rate-scale rate bufnum)</h4><p>Buffer rate scaling in respect to server samplerate. Returns a
|
|
ratio by which the playback of a soundfile is to be scaled.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-alloc-read</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">"/home/rohan/audio/metal.wav"</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">r</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rand</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="hspace"> </span><span class="RktVal">2</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">buf-rate-scale</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">p</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">phasor</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktSym">r</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">buf-frames</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">buf-rd</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktSym">p</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.53<tt> </tt><a name="(part._sample-dur)"></a>sample-dur</h4><p>Duration of one sample. Equivalent to 1 / sample-rate.</p><p>Compare a sine tone derived from sample rate with a 440Hz tone.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">freq</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">recip</span><span class="hspace"> </span><span class="RktSym">sample-dur</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.01</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">440</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">freq</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.54<tt> </tt><a name="(part._sample-rate)"></a>sample-rate</h4><p>Server sample rate.</p><p>Compare a sine tone derived from sample rate with a 440Hz tone.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">freq</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktSym">sample-rate</span><span class="hspace"> </span><span class="RktVal">0.01</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">440</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">freq</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.55<tt> </tt><a name="(part._radians-per-sample)"></a>radians-per-sample</h4><h4>2.56<tt> </tt><a name="(part.__buf-dur_rate_bufnum_)"></a>(buf-dur rate bufnum)</h4><p>Current duration of buffer.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-alloc-read</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">"/home/rohan/audio/metal.wav"</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">recip</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">buf-dur</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">p</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sweep</span><span class="hspace"> </span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">buf-sample-rate</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">buf-rd</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktSym">p</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.57<tt> </tt><a name="(part.__buf-channels_rate_bufnum_)"></a>(buf-channels rate bufnum)</h4><p>Current number of channels of buffer. Using at .ir is not the
|
|
safest choice. Since a buffer can be reallocated at any time, using
|
|
ir will not track the changes.</p><h4>2.58<tt> </tt><a name="(part.__buf-sample-rate_rate_bufnum_)"></a>(buf-sample-rate rate bufnum)</h4><p>Buffer sample rate.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-alloc-read</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">"/home/rohan/audio/metal.wav"</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Compare a sine tone derived from sample rate of a buffer with a
|
|
440Hz tone.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">freq</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">buf-sample-rate</span><span class="hspace"> </span><span class="RktSym">ir</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.01</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">440</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">freq</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.59<tt> </tt><a name="(part._num-audio-buses)"></a>num-audio-buses</h4><h4>2.60<tt> </tt><a name="(part._num-running-synths)"></a>num-running-synths</h4><p>Number of currently running synths.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktSym">num-running-synths</span><span class="hspace"> </span><span class="RktVal">200</span><span class="hspace"> </span><span class="RktVal">400</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.61<tt> </tt><a name="(part._subsample-offset)"></a>subsample-offset</h4><p>Offset from synth start within one sample.</p><p>When a synth is created from a time stamped osc-bundle, it starts
|
|
calculation at the next possible block (normally 64 samples). Using
|
|
an offset-out ugen, one can delay the audio so that it matches
|
|
sample accurately. For some synthesis methods, one needs subsample
|
|
accuracy. subsample-offset provides the information where, within
|
|
the current sample, the synth was scheduled. It can be used to
|
|
offset envelopes or resample the audio output.</p><p>See also offset-out.</p><p>Demonstrate cubic subsample interpolation. An impulse train that
|
|
can be moved between samples.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">send-synth</span></td></tr><tr><td><span class="hspace"> </span><span class="RktSym">fd</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">"s"</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">letc</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">add-offset</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">2000</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.3</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">d</span><span class="hspace"> </span><span class="RktSym">sample-dur</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktVal">4</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">o</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sub</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktSym">subsample-offset</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktSym">add-offset</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">r</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">delay-c</span><span class="hspace"> </span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktSym">d</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">add</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktSym">x</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktSym">d</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">add</span><span class="hspace"> </span><span class="RktSym">o</span><span class="hspace"> </span><span class="RktSym">x</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">offset-out</span><span class="hspace"> </span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktSym">r</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Create two pulse trains one sample apart, move one relative to the
|
|
other. When cursor is at the left, the impulses are adjacent, on
|
|
the right, they are exactly 1 sample apart. View this with an
|
|
oscilloscope.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">utc</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dt</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">/</span></span></span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">server-sample-rate-actual</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">send</span></span></span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">bundle</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">+</span></span></span><span class="hspace"> </span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">list</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">s-new1</span><span class="hspace"> </span><span class="RktVal">"s"</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-1</span></span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">"addOffset"</span><span class="hspace"> </span><span class="RktVal">3</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">send</span></span></span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">bundle</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">+</span></span></span><span class="hspace"> </span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="hspace"> </span><span class="RktSym">dt</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">list</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">s-new1</span><span class="hspace"> </span><span class="RktVal">"s"</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-1</span></span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">"addOffset"</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.62<tt> </tt><a name="(part.__zero-crossing_in_)"></a>(zero-crossing in)</h4><p>Zero crossing frequency follower.</p><p>outputs a frequency based upon the distance between interceptions
|
|
of the X axis. The X intercepts are determined via linear
|
|
interpolation so this gives better than just integer wavelength
|
|
resolution. This is a very crude pitch follower, but can be useful
|
|
in some situations.</p><p>in - input signal.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">600</span><span class="hspace"> </span><span class="RktVal">700</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">zero-crossing</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.25</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktSym">b</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.63<tt> </tt><a name="(part.__slope_in_)"></a>(slope in)</h4><p>slope of signal. Measures the rate of change per second of a
|
|
signal. Formula implemented is:</p><p>out[i] = (in[i] - in[i-1]) * sampling_rate</p><p>in - input signal to measure.</p><p>a = quadratic noise, b = first derivative line segments, c = second
|
|
derivative constant segments</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">r</span><span class="hspace"> </span><span class="RktVal">2</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-noise2</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktSym">r</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">scale</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">recip</span><span class="hspace"> </span><span class="RktSym">r</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">slope</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">scale</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">c</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">slope</span><span class="hspace"> </span><span class="RktSym">b</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">squared</span><span class="hspace"> </span><span class="RktSym">scale</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">o</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce3</span><span class="hspace"> </span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktSym">c</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">220</span><span class="hspace"> </span><span class="RktVal">220</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mix</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktSym">o</span><span class="hspace"> </span><span class="RktVal">1/3</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.64<tt> </tt><a name="(part.__running-sum_in_numsamp_)"></a>(running-sum in numsamp)</h4><p>A running sum over a user specified number of samples, useful for
|
|
running RMS power windowing.</p><p>in - input signal
|
|
numsamp - How many samples to take the running sum over
|
|
(initialisation rate)</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">n</span><span class="hspace"> </span><span class="RktVal">40</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">foldl1</span><span class="hspace"> </span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">list</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">440</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">running-sum</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sound-in</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">n</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">recip</span><span class="hspace"> </span><span class="RktSym">n</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.65<tt> </tt><a name="(part.__pitch_in_init.Freq_min.Freq_max.Freq_exec.Freq_max.Bins.Per.Octave)"></a>(pitch in initFreq minFreq maxFreq execFreq maxBinsPerOctave</h4><p>median ampThreshold peakThreshold downSample)</p><p>Autocorrelation pitch follower</p><p>This is a better pitch follower than zero-crossing, but more costly
|
|
of CPU. For most purposes the default settings can be used and only
|
|
in needs to be supplied. pitch returns two values (via an Array of
|
|
outputProxys, see the outputProxy help file), a freq which is the
|
|
pitch estimate and hasFreq, which tells whether a pitch was
|
|
found. Some vowels are still problematic, for instance a wide open
|
|
mouth sound somewhere between a low pitched short ’a’ sound as in
|
|
’sat’, and long ’i’ sound as in ’fire’, contains enough overtone
|
|
energy to confuse the algorithm.</p><p>sclang default argument values are: in = 0.0, initFreq = 440.0,
|
|
minFreq = 60.0, maxFreq = 4000.0, execFreq = 100.0,
|
|
maxBinsPerOctave = 16, median = 1, ampThreshold = 0.01,
|
|
peakThreshold = 0.5, downSample = 1.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">define</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pitch*</span><span class="hspace"> </span><span class="RktSym">in</span><span class="hspace"> </span><span class="RktSym">median</span><span class="hspace"> </span><span class="RktSym">ampThreshold</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pitch</span><span class="hspace"> </span><span class="RktSym">in</span><span class="hspace"> </span><span class="RktVal">444.0</span><span class="hspace"> </span><span class="RktVal">60.0</span><span class="hspace"> </span><span class="RktVal">4000.0</span><span class="hspace"> </span><span class="RktVal">100.0</span><span class="hspace"> </span><span class="RktVal">16</span><span class="hspace"> </span><span class="RktSym">median</span><span class="hspace"> </span><span class="RktSym">ampThreshold</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">in</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">220</span><span class="hspace"> </span><span class="RktVal">660</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-y</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.05</span><span class="hspace"> </span><span class="RktVal">0.25</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">amp</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">amplitude</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktSym">in</span><span class="hspace"> </span><span class="RktVal">0.05</span><span class="hspace"> </span><span class="RktVal">0.05</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">freq+</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pitch*</span><span class="hspace"> </span><span class="RktSym">in</span><span class="hspace"> </span><span class="RktVal">7</span><span class="hspace"> </span><span class="RktVal">0.02</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fdiv</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">car</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce-channels</span><span class="hspace"> </span><span class="RktSym">freq+</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">2</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">o</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">amp</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktSym">in</span><span class="hspace"> </span><span class="RktSym">o</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">in</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sound-in</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">amp</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">amplitude</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktSym">in</span><span class="hspace"> </span><span class="RktVal">0.05</span><span class="hspace"> </span><span class="RktVal">0.05</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">freq+</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pitch*</span><span class="hspace"> </span><span class="RktSym">in</span><span class="hspace"> </span><span class="RktVal">7</span><span class="hspace"> </span><span class="RktVal">0.02</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">car</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce-channels</span><span class="hspace"> </span><span class="RktSym">freq+</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">o</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">amp</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktSym">in</span><span class="hspace"> </span><span class="RktSym">o</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.66<tt> </tt><a name="(part.__compander_input_control_thresh_slope.Below_slope.Above_clamp.Time_relax.Time_)"></a>(compander input control thresh slopeBelow slopeAbove clampTime relaxTime)</h4><p>Compressor, expander, limiter, gate, ducker. General purpose
|
|
dynamics processor.</p><p>input: The signal to be compressed / expanded / gated.</p><p>control: The signal whose amplitude determines the gain applied to
|
|
the input signal. Often the same as in (for standard
|
|
gating or compression) but should be different for
|
|
ducking.</p><p>thresh: Control signal amplitude threshold, which determines the
|
|
break point between slopeBelow and slopeAbove. Usually
|
|
0..1. The control signal amplitude is calculated using RMS.</p><p>slopeBelow: slope of the amplitude curve below the threshold. If
|
|
this slope > 1.0, the amplitude will drop off more
|
|
quickly the softer the control signal gets when the
|
|
control signal is close to 0 amplitude, the output
|
|
should be exactly zero – hence, noise gating. Values <
|
|
1.0 are possible, but it means that a very low-level
|
|
control signal will cause the input signal to be
|
|
amplified, which would raise the noise floor.</p><p>slopeAbove: Same thing, but above the threshold. Values < 1.0
|
|
achieve compression (louder signals are attenuated) >
|
|
1.0, you get expansion (louder signals are made even
|
|
louder). For 3:1 compression, you would use a value of
|
|
1/3 here.</p><p>clampTime: The amount of time it takes for the amplitude adjustment
|
|
to kick in fully. This is usually pretty small, not much
|
|
more than 10 milliseconds (the default value).</p><p>relaxTime: The amount of time for the amplitude adjustment to be
|
|
released. Usually a bit longer than clampTime if both
|
|
times are too short, you can get some (possibly
|
|
unwanted) artifacts.</p><p>Example signal to process.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">define</span></span></span><span class="hspace"> </span><span class="RktSym">z</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">decay2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">8</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-saw</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.3</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.3</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.001</span><span class="hspace"> </span><span class="RktVal">0.3</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mix</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pulse</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktVal">80</span><span class="hspace"> </span><span class="RktVal">81</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.3</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktSym">z</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><p>Noise gate</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.01</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktSym">z</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">compander</span><span class="hspace"> </span><span class="RktSym">z</span><span class="hspace"> </span><span class="RktSym">z</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.01</span><span class="hspace"> </span><span class="RktVal">0.01</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Compressor</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.01</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktSym">z</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">compander</span><span class="hspace"> </span><span class="RktSym">z</span><span class="hspace"> </span><span class="RktSym">z</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="hspace"> </span><span class="RktVal">0.01</span><span class="hspace"> </span><span class="RktVal">0.01</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>limiter</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.01</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktSym">z</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">compander</span><span class="hspace"> </span><span class="RktSym">z</span><span class="hspace"> </span><span class="RktSym">z</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal">0.01</span><span class="hspace"> </span><span class="RktVal">0.01</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Sustainer</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.01</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktSym">z</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">compander</span><span class="hspace"> </span><span class="RktSym">z</span><span class="hspace"> </span><span class="RktSym">z</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal">1.0</span><span class="hspace"> </span><span class="RktVal">0.01</span><span class="hspace"> </span><span class="RktVal">0.01</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.67<tt> </tt><a name="(part.__amplitude_rate_in_attack.Time_release.Time_)"></a>(amplitude rate in attackTime releaseTime)</h4><p>Amplitude follower. Tracks the peak amplitude of a signal.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pulse</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">90</span><span class="hspace"> </span><span class="RktVal">0.3</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">amplitude</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">in</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">num-output-buses</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.01</span><span class="hspace"> </span><span class="RktVal">0.01</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">amplitude</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">in</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">num-output-buses</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.01</span><span class="hspace"> </span><span class="RktVal">0.01</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktVal">1200</span><span class="hspace"> </span><span class="RktVal">400</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.3</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.68<tt> </tt><a name="(part.__pulse-divider_trig_div_start_)"></a>(pulse-divider trig div start)</h4><p>outputs one impulse each time it receives a certain number of
|
|
triggers at its input. A trigger happens when the signal changes
|
|
from non-positive to positive.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">p</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">8</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">d</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pulse-divider</span><span class="hspace"> </span><span class="RktSym">p</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktVal">4</span><span class="hspace"> </span><span class="RktVal">7</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">1200</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">decay2</span><span class="hspace"> </span><span class="RktSym">p</span><span class="hspace"> </span><span class="RktVal">0.005</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">600</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">decay2</span><span class="hspace"> </span><span class="RktSym">d</span><span class="hspace"> </span><span class="RktVal">0.005</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">add</span><span class="hspace"> </span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktSym">b</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.4</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.69<tt> </tt><a name="(part.__gate_in_trig_)"></a>(gate in trig)</h4><p>The signal at ‘in’ is passed while ‘trig’ is greater than zero.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">500</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">1/4</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-pulse</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1/10</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">gate</span><span class="hspace"> </span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktSym">t</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.70<tt> </tt><a name="(part.__poll_trig_in_trigid_label_)"></a>(poll trig in trigid label)</h4><p>Print/query the current output value of a UGen.</p><p>trig - a non-positive to positive transition telling poll to return
|
|
a value</p><p>in - the signal you want to poll</p><p>trigid - if greater then 0, a ’/tr’ message is sent back to the
|
|
client (similar to send-trig)</p><p>label - a string or symbol to be printed with the polled value</p><p>poll returns its in signal (and is therefore transparent).
|
|
WARNING: Printing values from the Server in intensive for the
|
|
CPU. poll should be used for debugging purposes.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">define</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">string->ugen</span><span class="hspace"> </span><span class="RktSym">s</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">make-mce</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">cons</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">string-length</span></span></span><span class="hspace"> </span><span class="RktSym">s</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">map</span></span></span><span class="hspace"> </span><span class="RktSym"><span class="badlink"><span class="RktValLink">char->integer</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">string->list</span></span></span><span class="hspace"> </span><span class="RktSym">s</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">5</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">poll</span><span class="hspace"> </span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">string->ugen</span><span class="hspace"> </span><span class="RktVal">"Test"</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">letrec</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">print</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">e</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">display</span></span></span><span class="hspace"> </span><span class="RktSym">e</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">newline</span></span></span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">showing</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">v</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">print</span></span></span><span class="hspace"> </span><span class="RktSym">v</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">v</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">repeat</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">if</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">repeat</span><span class="hspace"> </span><span class="RktSym">f</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">#f</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">/notify</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">repeat</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">showing</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">wait</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktVal">"/tr"</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">/notify</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>multichannel Expansion (Broken...)</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">define</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">poll*</span><span class="hspace"> </span><span class="RktSym">trig</span><span class="hspace"> </span><span class="RktSym">in</span><span class="hspace"> </span><span class="RktSym">trigId</span><span class="hspace"> </span><span class="RktSym">label</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">poll</span><span class="hspace"> </span><span class="RktSym">trig</span><span class="hspace"> </span><span class="RktSym">in</span><span class="hspace"> </span><span class="RktSym">trigId</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">string->ugen</span><span class="hspace"> </span><span class="RktSym">label</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">poll*</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">5</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">5</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">2</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">do-nothing</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">"Test"</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">with-sc3</span><span class="hspace"> </span><span class="RktSym">server-status</span><span class="RktPn">)</span></p></blockquote><h4>2.71<tt> </tt><a name="(part.__most-change_a_b_)"></a>(most-change a b)</h4><p>output the input that changed most.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">200</span><span class="hspace"> </span><span class="RktVal">300</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">most-change</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-noise0</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">400</span><span class="hspace"> </span><span class="RktVal">900</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">x</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.72<tt> </tt><a name="(part.__trig_in_dur_)"></a>(trig in dur)</h4><p>When ‘in’ is trigerred output the trigger value for ‘dur’ seconds.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">800</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">g</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">trig</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dust</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul3</span><span class="hspace"> </span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktSym">g</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">trig</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dust</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">4</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><h4>2.73<tt> </tt><a name="(part.__pulse-count_trig_reset_)"></a>(pulse-count trig reset)</h4><p>This outputs the number of pulses received at ‘trig’ and outputs
|
|
that value until ‘reset’ is triggered.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pulse-count</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">0.4</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">200</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.05</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.74<tt> </tt><a name="(part.__stepper_trig_reset_min_max_step_resetval_)"></a>(stepper trig reset min max step resetval)</h4><p>stepper pulse counter. Each trigger increments a counter which is
|
|
output as a signal. The counter wraps between min and max.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">list</span></span></span><span class="hspace"> </span><span class="RktVal">97.999</span><span class="hspace"> </span><span class="RktVal">195.998</span><span class="hspace"> </span><span class="RktVal">523.251</span><span class="hspace"> </span><span class="RktVal">466.164</span><span class="hspace"> </span><span class="RktVal">195.998</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">233.082</span><span class="hspace"> </span><span class="RktVal">87.307</span><span class="hspace"> </span><span class="RktVal">391.995</span><span class="hspace"> </span><span class="RktVal">87.307</span><span class="hspace"> </span><span class="RktVal">261.626</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">195.998</span><span class="hspace"> </span><span class="RktVal">77.782</span><span class="hspace"> </span><span class="RktVal">233.082</span><span class="hspace"> </span><span class="RktVal">195.998</span><span class="hspace"> </span><span class="RktVal">97.999</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">155.563</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-alloc</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">128</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">send</span></span></span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-setn1</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Function composition...</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">define</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">seq</span><span class="hspace"> </span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktSym">l</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">if</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">null?</span></span></span><span class="hspace"> </span><span class="RktSym">l</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktSym">s</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">seq</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">car</span></span></span><span class="hspace"> </span><span class="RktSym">l</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">s</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">cdr</span></span></span><span class="hspace"> </span><span class="RktSym">l</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">rate</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">5</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">clock</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktSym">rate</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">env</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">decay2</span><span class="hspace"> </span><span class="RktSym">clock</span><span class="hspace"> </span><span class="RktVal">0.002</span><span class="hspace"> </span><span class="RktVal">2.5</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">index</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">stepper</span><span class="hspace"> </span><span class="RktSym">clock</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">15</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">freq</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">buf-rd</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktSym">index</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">ffreq</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">if</span></span></span><span class="hspace"> </span><span class="RktVal">#t</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lag2</span><span class="hspace"> </span><span class="RktSym">freq</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-y</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">80</span><span class="hspace"> </span><span class="RktVal">1600</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">Mul</span><span class="hspace"> </span><span class="RktSym">env</span><span class="hspace"> </span><span class="RktVal">4</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.3</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lfo</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce4</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">/</span></span></span><span class="hspace"> </span><span class="RktSym"><span class="badlink"><span class="RktValLink">pi</span></span></span><span class="hspace"> </span><span class="RktVal">2</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.0024</span><span class="hspace"> </span><span class="RktVal">0.0025</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rvb</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">s</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">allpass-n</span><span class="hspace"> </span><span class="RktSym">s</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0.05</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">clone</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rand</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.05</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rand</span><span class="hspace"> </span><span class="RktVal">1.5</span><span class="hspace"> </span><span class="RktVal">2.0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">proc</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">list</span></span></span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">s</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rlpf</span><span class="hspace"> </span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktSym">ffreq</span><span class="hspace"> </span><span class="RktVal">0.3</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">env</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">s</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rlpf</span><span class="hspace"> </span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktSym">ffreq</span><span class="hspace"> </span><span class="RktVal">0.3</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">env</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">s</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">s</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">comb-l</span><span class="hspace"> </span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fdiv</span><span class="hspace"> </span><span class="RktVal">0.66</span><span class="hspace"> </span><span class="RktSym">rate</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">2</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.8</span><span class="hspace"> </span><span class="RktSym">s</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">s</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">add</span><span class="hspace"> </span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">seq</span><span class="hspace"> </span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">replicate</span><span class="hspace"> </span><span class="RktVal">5</span><span class="hspace"> </span><span class="RktSym">rvb</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.3</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">s</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">leak-dc</span><span class="hspace"> </span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">s</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">delay-l</span><span class="hspace"> </span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktSym">lfo</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">s</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">s</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">one-pole</span><span class="hspace"> </span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktVal">0.9</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">init</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mix</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-pulse</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktSym">freq</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce3</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">3/2</span><span class="hspace"> </span><span class="RktVal">2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.3</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">seq</span><span class="hspace"> </span><span class="RktSym"><span class="badlink"><span class="RktValLink">init</span></span></span><span class="hspace"> </span><span class="RktSym">proc</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Pattern randomizer....</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">p</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">map</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">e</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">midi-cps</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">+</span></span></span><span class="hspace"> </span><span class="RktVal">36</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">s:degree-to-key</span><span class="hspace"> </span><span class="RktSym">e</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">list</span></span></span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">3</span><span class="hspace"> </span><span class="RktVal">5</span><span class="hspace"> </span><span class="RktVal">7</span><span class="hspace"> </span><span class="RktVal">10</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">12</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">map</span></span></span><span class="hspace"> </span><span class="RktSym"><span class="badlink"><span class="RktValLink">floor</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">replicate-m</span><span class="hspace"> </span><span class="RktVal">16</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">random</span></span></span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">15</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">send</span></span></span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-setn1</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktSym">p</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>A shorter variant, using some simple syntax...</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">define-syntax</span></span></span><span class="hspace"> </span><span class="RktSym">seq*</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">syntax-rules</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">_</span></span></span><span class="hspace"> </span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktSym"><span class="badlink"><span class="RktValLink">...</span></span></span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">seq</span><span class="hspace"> </span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">list</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">s</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">f</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym"><span class="badlink"><span class="RktValLink">...</span></span></span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">rate</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">5</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">clock</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktSym">rate</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">env</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">decay2</span><span class="hspace"> </span><span class="RktSym">clock</span><span class="hspace"> </span><span class="RktVal">0.002</span><span class="hspace"> </span><span class="RktVal">2.5</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">index</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">stepper</span><span class="hspace"> </span><span class="RktSym">clock</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">15</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">freq</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">buf-rd</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktSym">index</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">ffreq</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lag2</span><span class="hspace"> </span><span class="RktSym">freq</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.3</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lfo</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce4</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">/</span></span></span><span class="hspace"> </span><span class="RktSym"><span class="badlink"><span class="RktValLink">pi</span></span></span><span class="hspace"> </span><span class="RktVal">2</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.0024</span><span class="hspace"> </span><span class="RktVal">0.0025</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rvb</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">s</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">allpass-n</span><span class="hspace"> </span><span class="RktSym">s</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0.05</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">clone</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rand</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.05</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rand</span><span class="hspace"> </span><span class="RktVal">1.5</span><span class="hspace"> </span><span class="RktVal">2.0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">init</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mix</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-pulse</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktSym">freq</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce3</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">3/2</span><span class="hspace"> </span><span class="RktVal">2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.3</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">proc</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">seq*</span><span class="hspace"> </span><span class="RktSym"><span class="badlink"><span class="RktValLink">init</span></span></span></td></tr><tr><td><span class="hspace"> </span><span class="RktSym">s</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rlpf</span><span class="hspace"> </span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktSym">ffreq</span><span class="hspace"> </span><span class="RktVal">0.3</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">env</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rlpf</span><span class="hspace"> </span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktSym">ffreq</span><span class="hspace"> </span><span class="RktVal">0.3</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">env</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">comb-l</span><span class="hspace"> </span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fdiv</span><span class="hspace"> </span><span class="RktVal">0.66</span><span class="hspace"> </span><span class="RktSym">rate</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">2</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.8</span><span class="hspace"> </span><span class="RktSym">s</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">add</span><span class="hspace"> </span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">seq</span><span class="hspace"> </span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">replicate</span><span class="hspace"> </span><span class="RktVal">5</span><span class="hspace"> </span><span class="RktSym">rvb</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.3</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">leak-dc</span><span class="hspace"> </span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">delay-l</span><span class="hspace"> </span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktSym">lfo</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">s</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">one-pole</span><span class="hspace"> </span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktVal">0.9</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktSym">proc</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.75<tt> </tt><a name="(part.__last-value_in_diff_)"></a>(last-value in diff)</h4><p>output the last value before the input changed more than a
|
|
threshhold.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">last-value</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">100</span><span class="hspace"> </span><span class="RktVal">400</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">40</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal">4</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">u:abs</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sub</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">last-value</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">400</span><span class="hspace"> </span><span class="RktVal">200</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.76<tt> </tt><a name="(part.__peak-follower_in_decay_)"></a>(peak-follower in decay)</h4><p>Track peak signal amplitude. outputs the peak amplitude of the
|
|
signal received at the input. If level is below maximum, the level
|
|
decreases by the factor given in decay.</p><p>in - input signal.
|
|
decay - decay factor.</p><p>internally, the absolute value of the signal is used, to prevent
|
|
underreporting the peak value if there is a negative DC offset. To
|
|
obtain the minimum and maximum values of the signal as is, use the
|
|
running-min and running-max UGens.</p><p>No decay</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dust</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">20</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">4</span><span class="hspace"> </span><span class="RktSym">do-nothing</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">peak-follower</span><span class="hspace"> </span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktVal">1.0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">1500</span><span class="hspace"> </span><span class="RktVal">200</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>A little decay</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dust</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">20</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">4</span><span class="hspace"> </span><span class="RktSym">do-nothing</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">peak-follower</span><span class="hspace"> </span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktVal">0.999</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">1500</span><span class="hspace"> </span><span class="RktVal">200</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Mouse x controls decay</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.99</span><span class="hspace"> </span><span class="RktVal">1.0001</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dust</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">20</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">4</span><span class="hspace"> </span><span class="RktSym">do-nothing</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">peak-follower</span><span class="hspace"> </span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">u:min</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktVal">1.0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">1500</span><span class="hspace"> </span><span class="RktVal">200</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Follow a sine lfo</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.99</span><span class="hspace"> </span><span class="RktVal">1.0001</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">peak-follower</span><span class="hspace"> </span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">u:min</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktVal">1.0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">200</span><span class="hspace"> </span><span class="RktVal">500</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.77<tt> </tt><a name="(part.__running-max_in_trig_)"></a>(running-max in trig)</h4><p>Track maximum level. outputs the maximum value received at the
|
|
input. When triggered, the maximum output value is reset to the
|
|
current value.</p><p>in - input signal
|
|
trig - reset the output value to the current input value</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">0.4</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">running-max</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dust</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">20</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">t</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">500</span><span class="hspace"> </span><span class="RktVal">200</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.01</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">running-max</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">t</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">500</span><span class="hspace"> </span><span class="RktVal">200</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.78<tt> </tt><a name="(part.__trig1_in_dur_)"></a>(trig1 in dur)</h4><p>When ‘in’ is trigered output a unit signal for ‘dur’ seconds.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">trig1</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dust</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul3</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">800</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.79<tt> </tt><a name="(part.__phasor_trig_rate_start_end_resetpos_)"></a>(phasor trig rate start end resetpos)</h4><p>triggered linear ramp between two levels. Starts a linear ramp
|
|
when trig input crosses from non-positive to positive.</p><p>trig - sets phase to resetPos (default: 0, equivalent to start)
|
|
rate - rate value in 1 / frameDur (at 44.1 kHz sample rate: rate
|
|
1 is eqivalent to 44100/sec)
|
|
start, end - start and end points of ramp
|
|
resetPos - determines where to jump to on recieving a trigger. the
|
|
value at that position can be calculated as follows:
|
|
(end - start) * resetPos</p><p>phasor controls sine frequency: end frequency matches a second sine wave.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">r</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">r</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">phasor</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fdiv</span><span class="hspace"> </span><span class="RktSym">r</span><span class="hspace"> </span><span class="RktSym">sample-rate</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lin-lin</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">600</span><span class="hspace"> </span><span class="RktVal">1000</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">1000</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.80<tt> </tt><a name="(part.__schmidt_in_lo_hi_)"></a>(schmidt in lo hi)</h4><p>schmidt trigger. When in crosses to greater than hi, output 1.0,
|
|
then when signal crosses lower than lo output 0.0. output is
|
|
initially zero.</p><p>in - signal to be tested
|
|
lo - low threshold
|
|
hi - high threshold</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">in</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-noise1</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">3</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">octave</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">schmidt</span><span class="hspace"> </span><span class="RktSym">in</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-0</span>.15</span><span class="hspace"> </span><span class="RktVal">0.15</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktSym">in</span><span class="hspace"> </span><span class="RktVal">200</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktVal">500</span><span class="hspace"> </span><span class="RktSym">octave</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.81<tt> </tt><a name="(part.__peak_trig_reset_)"></a>(peak trig reset)</h4><p>outputs the maximum value read at the ‘trig’ input until ‘reset’ is
|
|
triggered.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">p</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">peak</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dust</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">20</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">0.4</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktSym">p</span><span class="hspace"> </span><span class="RktVal">500</span><span class="hspace"> </span><span class="RktVal">200</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.82<tt> </tt><a name="(part.__toggle-ff_trig_)"></a>(toggle-ff trig)</h4><p>Toggle flip flop. Toggles between zero and one upon receiving a trigger.</p><p>trig - trigger input</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dust</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">1000</span><span class="hspace"> </span><span class="RktVal">60</span><span class="hspace"> </span><span class="RktSym">do-nothing</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">toggle-ff</span><span class="hspace"> </span><span class="RktSym">t</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">400</span><span class="hspace"> </span><span class="RktVal">800</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.83<tt> </tt><a name="(part.__sweep_trig_rate_)"></a>(sweep trig rate)</h4><p>triggered linear ramp. Starts a linear raise by rate/sec from zero
|
|
when trig input crosses from non-positive to positive.</p><p>Using sweep to modulate sine frequency</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="hspace"> </span><span class="RktVal">20</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sweep</span><span class="hspace"> </span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktVal">700</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">500</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Using sweep to index into a buffer</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-alloc-read</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">"/home/rohan/audio/metal.wav"</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="hspace"> </span><span class="RktVal">20</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sweep</span><span class="hspace"> </span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">buf-sample-rate</span><span class="hspace"> </span><span class="RktSym">ir</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">buf-rd</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Backwards, variable offset</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">r</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">buf-sample-rate</span><span class="hspace"> </span><span class="RktSym">ir</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sweep</span><span class="hspace"> </span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">neg</span><span class="hspace"> </span><span class="RktSym">r</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">buf-frames</span><span class="hspace"> </span><span class="RktSym">ir</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-noise0</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">15</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">buf-rd</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Raising rate</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">r</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sweep</span><span class="hspace"> </span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktVal">2</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sweep</span><span class="hspace"> </span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">buf-sample-rate</span><span class="hspace"> </span><span class="RktSym">ir</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">r</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">buf-rd</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.84<tt> </tt><a name="(part.__send-trig_in_id_value_)"></a>(send-trig in id value)</h4><p>On receiving a trigger (0 to non-zero transition), send a trigger
|
|
message from the server back to all registered clients. Clients
|
|
register by sending a /notify message to the server.</p><p>input - the trigger</p><p>id - an integer that will be passed with the trigger message. This
|
|
is useful if you have more than one send-trig in a SynthDef</p><p>value - a UGen or float that will be polled at the time of trigger,
|
|
and its value passed with the trigger message</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-noise0</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">10</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mrg2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">send-trig</span><span class="hspace"> </span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktSym">s</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktVal">200</span><span class="hspace"> </span><span class="RktVal">500</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">notify</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">sleep</span></span></span><span class="hspace"> </span><span class="RktVal">2.0</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">r</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">wait</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktVal">"/tr"</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">notify</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktSym">r</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.85<tt> </tt><a name="(part.__in-range_in_lo_hi_)"></a>(in-range in lo hi)</h4><p>Tests if a signal is within a given range.</p><p>If in is >= lo and <= hi output 1.0, otherwise output 0.0. output
|
|
is initially zero.</p><p>in - signal to be tested
|
|
lo - low threshold
|
|
hi - high threshold</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">in-range</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-0</span>.15</span><span class="hspace"> </span><span class="RktVal">0.15</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">brown-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.86<tt> </tt><a name="(part.__timer_trig_)"></a>(timer trig)</h4><p>Returns time since last triggered</p><p>Using timer to modulate sine frequency: the slower the trigger is
|
|
the higher the frequency</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="hspace"> </span><span class="RktVal">20</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">timer</span><span class="hspace"> </span><span class="RktSym">t</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">500</span><span class="hspace"> </span><span class="RktVal">500</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.87<tt> </tt><a name="(part.__t-delay_trigger_delay.Time_)"></a>(t-delay trigger delayTime)</h4><p>Delays a trigger by a given time. Any triggers which arrive in the
|
|
time between an input trigger and its delayed output, are ignored.</p><p>trigger - input trigger signal.
|
|
delayTime - delay time in seconds.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">440</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">z</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">l</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktSym">z</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">r</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">toggle-ff</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">t-delay</span><span class="hspace"> </span><span class="RktSym">z</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">s</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktSym">l</span><span class="hspace"> </span><span class="RktSym">r</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.88<tt> </tt><a name="(part.__running-min_in_trig_)"></a>(running-min in trig)</h4><p>Track minimum level. outputs the minimum value received at the
|
|
input. When triggered, the minimum output value is reset to the
|
|
current value.</p><p>in - input signal
|
|
trig - reset the output value to the current input value</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">2.0</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">running-min</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sub</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dust</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">20</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">t</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">500</span><span class="hspace"> </span><span class="RktVal">200</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="hspace"> </span><span class="RktVal">4</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">running-min</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sub</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">t</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">500</span><span class="hspace"> </span><span class="RktVal">200</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.89<tt> </tt><a name="(part.__set-reset-ff_trig_reset_)"></a>(set-reset-ff trig reset)</h4><p>Set-reset flip flop. output is set to 1.0 upon receiving a trigger
|
|
in the set input, and to 0.0 upon receiving a trigger in the reset
|
|
input. Once the flip flop is set to zero or one further triggers in
|
|
the same input are have no effect. One use of this is to have some
|
|
precipitating event cause something to happen until you reset it.</p><p>trig - trigger sets output to one
|
|
reset - trigger resets output to zero</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">n</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">brown-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">g</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">set-reset-ff</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dust</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">5</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dust</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">5</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul3</span><span class="hspace"> </span><span class="RktSym">n</span><span class="hspace"> </span><span class="RktSym">g</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.90<tt> </tt><a name="(part.__saw_rate_freq_)"></a>(saw rate freq)</h4><p>Band limited sawtooth wave generator.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">40</span><span class="hspace"> </span><span class="RktVal">4000</span><span class="hspace"> </span><span class="RktVal">6</span><span class="hspace"> </span><span class="RktSym">do-nothing</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">saw</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Two band limited sawtooth waves thru a resonant low pass filter</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">8000</span><span class="hspace"> </span><span class="RktVal">400</span><span class="hspace"> </span><span class="RktVal">5</span><span class="hspace"> </span><span class="RktSym">do-nothing</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rlpf</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">saw</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktVal">100</span><span class="hspace"> </span><span class="RktVal">250</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0.05</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.91<tt> </tt><a name="(part.__pm-osc_rate_carfreq_modfreq_index_modphase_)"></a>(pm-osc rate carfreq modfreq index modphase)</h4><p>Phase modulation oscillator pair.</p><p>carfreq - carrier frequency in cycles per second.
|
|
modfreq - modulator frequency in cycles per second.
|
|
index - modulation index in radians.
|
|
modphase - a modulation input for the modulator’s phase in radians</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">600</span><span class="hspace"> </span><span class="RktVal">900</span><span class="hspace"> </span><span class="RktVal">5</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">o</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pm-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">600</span><span class="hspace"> </span><span class="RktVal">3</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktSym">o</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">mf</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">600</span><span class="hspace"> </span><span class="RktVal">900</span><span class="hspace"> </span><span class="RktVal">5</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">o</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pm-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">300</span><span class="hspace"> </span><span class="RktSym">mf</span><span class="hspace"> </span><span class="RktVal">3</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktSym">o</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">20</span><span class="hspace"> </span><span class="RktVal">8</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">o</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pm-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">300</span><span class="hspace"> </span><span class="RktVal">550</span><span class="hspace"> </span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktSym">o</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.92<tt> </tt><a name="(part.__lf-tri_rate_freq_iphase_)"></a>(lf-tri rate freq iphase)</h4><p>A non-band-limited triangular waveform oscillator. output ranges
|
|
from -1 to +1.</p><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-tri</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">500</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><p>Used as both oscillator and LFO.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-tri</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">4</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">400</span><span class="hspace"> </span><span class="RktVal">400</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-tri</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.93<tt> </tt><a name="(part.__t-grains_num.Channels_trigger_bufnum_rate_center.Pos_dur_pan_amp_interp_)"></a>(t-grains numChannels trigger bufnum rate centerPos dur pan amp interp)</h4><p>Buffer granulator. triggers generate grains from a buffer. Each
|
|
grain has a Hanning envelope (sin^2(x) for x from 0 to pi) and is
|
|
panned between two channels of multiple outputs.</p><p>numChannels - number of output channels.</p><p>trigger - at each trigger, the following arguments are sampled and
|
|
used as the arguments of a new grain. A trigger occurs
|
|
when a signal changes from <= 0 to > 0. If the trigger
|
|
is audio rate then the grains will start with sample
|
|
accuracy.</p><p>bufnum - the index of the buffer to use. It must be a one channel
|
|
(mono) buffer.</p><p>rate - 1.0 is normal, 2.0 is one octave up, 0.5 is one octave down
|
|
and -1.0 is backwards normal rate ... etc. Unlike play-buf,
|
|
the rate is multiplied by BufRate, so you needn’t do that
|
|
yourself.</p><p>centerPos - the position in the buffer in seconds at which the
|
|
grain envelope will reach maximum amplitude.</p><p>dur - duration of the grain in seconds.</p><p>pan - a value from -1 to 1. Determines where to pan the output in
|
|
the same manner as pan-az.</p><p>amp - amplitude of the grain.</p><p>interp - 1, 2, or 4. Determines whether the grain uses (1) no
|
|
interpolation, (2) linear interpolation, or (4) cubic
|
|
interpolation.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-alloc-read</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">"/home/rohan/audio/metal.wav"</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktVal">10</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">trate</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-y</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktVal">200</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dur</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fdiv</span><span class="hspace"> </span><span class="RktVal">4</span><span class="hspace"> </span><span class="RktSym">trate</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">trate</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">buf-dur</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktSym">b</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">t-grains</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktSym">dur</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal">2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktVal">10</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">trate</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-y</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">8</span><span class="hspace"> </span><span class="RktVal">120</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dur</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fdiv</span><span class="hspace"> </span><span class="RktVal">12</span><span class="hspace"> </span><span class="RktSym">trate</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">clk</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">trate</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">buf-dur</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktSym">b</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pos</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">add</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">t-rand</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.01</span><span class="hspace"> </span><span class="RktSym">clk</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pan</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">white-noise</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.6</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">t-grains</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktSym">clk</span><span class="hspace"> </span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktSym">pos</span><span class="hspace"> </span><span class="RktSym">dur</span><span class="hspace"> </span><span class="RktSym">pan</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal">2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktVal">10</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">trate</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-y</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">8</span><span class="hspace"> </span><span class="RktVal">120</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dur</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fdiv</span><span class="hspace"> </span><span class="RktVal">4</span><span class="hspace"> </span><span class="RktSym">trate</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">clk</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dust</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">trate</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">buf-dur</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktSym">b</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pos</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">add</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">t-rand</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.01</span><span class="hspace"> </span><span class="RktSym">clk</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pan</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">white-noise</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.6</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">t-grains</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktSym">clk</span><span class="hspace"> </span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktSym">pos</span><span class="hspace"> </span><span class="RktSym">dur</span><span class="hspace"> </span><span class="RktSym">pan</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal">2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>The SC3 ** operator is the ShiftLeft binary UGen.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktVal">10</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">trate</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-y</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktVal">120</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dur</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fdiv</span><span class="hspace"> </span><span class="RktVal">1.2</span><span class="hspace"> </span><span class="RktSym">trate</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">clk</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">trate</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pos</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">buf-dur</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktSym">b</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pan</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">white-noise</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.6</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rate</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">shift-left</span><span class="hspace"> </span><span class="RktVal">1.2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">u:round</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">white-noise</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">3</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">t-grains</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktSym">clk</span><span class="hspace"> </span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktSym">rate</span><span class="hspace"> </span><span class="RktSym">pos</span><span class="hspace"> </span><span class="RktSym">dur</span><span class="hspace"> </span><span class="RktSym">pan</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal">2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.94<tt> </tt><a name="(part.__tw-index_in_normalize_array_)"></a>(tw-index in normalize array)</h4><p>triggered windex. When triggered, returns a random index value
|
|
based on array as a list of probabilities. By default the list of
|
|
probabilities should sum to 1.0, when the normalize flag is set to
|
|
1, the values get normalized by the ugen (less efficient)</p><p>Assuming normalized values</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">prob</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce3</span><span class="hspace"> </span><span class="RktVal">1/5</span><span class="hspace"> </span><span class="RktVal">2/5</span><span class="hspace"> </span><span class="RktVal">2/5</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">freq</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce3</span><span class="hspace"> </span><span class="RktVal">400</span><span class="hspace"> </span><span class="RktVal">500</span><span class="hspace"> </span><span class="RktVal">600</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">select</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">tw-index</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">6</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.0</span><span class="hspace"> </span><span class="RktSym">prob</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">freq</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Modulating probability values</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">6</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce3</span><span class="hspace"> </span><span class="RktVal">1/4</span><span class="hspace"> </span><span class="RktVal">1/2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.3</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">select</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">tw-index</span><span class="hspace"> </span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktVal">1.0</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce3</span><span class="hspace"> </span><span class="RktVal">400</span><span class="hspace"> </span><span class="RktVal">500</span><span class="hspace"> </span><span class="RktVal">600</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.95<tt> </tt><a name="(part.__osc-n_rate_bufnum_freq_phase_)"></a>(osc-n rate bufnum freq phase)</h4><p>Noninterpolating wavetable lookup oscillator with frequency and
|
|
phase modulation inputs. It is usually better to use the
|
|
interpolating oscillator.</p><p>The buffer size must be a power of 2. The buffer should NOT be
|
|
filled using Wavetable format (b_gen commands should set wavetable
|
|
flag to false.</p><h4>2.96<tt> </tt><a name="(part.__osc_rate_bufnum_freq_phase_)"></a>(osc rate bufnum freq phase)</h4><p>linear interpolating wavetable lookup oscillator with frequency and
|
|
phase modulation inputs.</p><p>This oscillator requires a buffer to be filled with a wavetable
|
|
format signal. This preprocesses the Signal into a form which can
|
|
be used efficiently by the oscillator. The buffer size must be a
|
|
power of 2.</p><p>This can be acheived by creating a Buffer object and sending it one
|
|
of the "b_gen" messages ( sine1, sine2, sine3 ) with the wavetable
|
|
flag set to true.</p><p>Note about wavetables: oscN requires the b_gen sine1 wavetable flag
|
|
to be OFF. osc requires the b_gen sine1 wavetable flag to be ON.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-alloc</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">512</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-gen1</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">"sine1"</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">list</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">+</span></span></span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktVal">4</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">1/2</span><span class="hspace"> </span><span class="RktVal">1/3</span><span class="hspace"> </span><span class="RktVal">1/4</span><span class="hspace"> </span><span class="RktVal">1/5</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">220</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><p>Modulate freq</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">2000</span><span class="hspace"> </span><span class="RktVal">200</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Modulate freq</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">f1</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">1000</span><span class="hspace"> </span><span class="RktVal">9</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktSym">f1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">200</span><span class="hspace"> </span><span class="RktVal">800</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktSym">f2</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.25</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Modulate phase</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">20</span><span class="hspace"> </span><span class="RktVal">8000</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">p</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">*</span></span></span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktSym"><span class="badlink"><span class="RktValLink">pi</span></span></span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">800</span><span class="hspace"> </span><span class="RktSym">p</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.25</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Change the buffer while its playing</p><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">220</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-gen1</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">"sine1"</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">list</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">+</span></span></span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktVal">4</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">random</span></span></span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">1/4</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.97<tt> </tt><a name="(part.__lf-saw_rate_freq_iphase_)"></a>(lf-saw rate freq iphase)</h4><p>sawtooth oscillator. A non-band-limited sawtooth
|
|
oscillator. output ranges from -1 to +1.</p><p>freq - frequency in Hertz
|
|
iphase - phase in radians</p><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-saw</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">500</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><p>Used as both oscillator and LFO.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-saw</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">4</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">400</span><span class="hspace"> </span><span class="RktVal">400</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-saw</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.98<tt> </tt><a name="(part.__tw-choose_trig_array_weights_normalize_)"></a>(tw-choose trig array weights normalize)</h4><p>The output is selected randomly on recieving a trigger from an
|
|
array of inputs. The weights of this choice are determined from
|
|
the weights array. If normalize is set to 1 the weights are
|
|
continuously normalized, which means an extra calculation overhead.
|
|
When using fixed values the normalizeSum method can be used to
|
|
normalize the values. TWChoose is a composite of TWindex and
|
|
select</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce3</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">220</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">saw</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">440</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pulse</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">110</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dust</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">1000</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">w</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce3</span><span class="hspace"> </span><span class="RktVal">0.6</span><span class="hspace"> </span><span class="RktVal">0.15</span><span class="hspace"> </span><span class="RktVal">0.05</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">tw-choose</span><span class="hspace"> </span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktSym">w</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Note: all the ugens are continously running. This may not be the
|
|
most efficient way if each input is cpu-expensive.</p><h4>2.99<tt> </tt><a name="(part._gendy1)"></a>gendy1</h4><p>sclang defaults</p><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pan2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">gendy1</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">440</span><span class="hspace"> </span><span class="RktVal">660</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="hspace"> </span><span class="RktVal">12</span><span class="hspace"> </span><span class="RktVal">12</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.15</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><p>Wandering bass</p><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pan2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">gendy1</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">1.0</span><span class="hspace"> </span><span class="RktVal">1.0</span><span class="hspace"> </span><span class="RktVal">30</span><span class="hspace"> </span><span class="RktVal">100</span><span class="hspace"> </span><span class="RktVal">0.3</span><span class="hspace"> </span><span class="RktVal">0.05</span><span class="hspace"> </span><span class="RktVal">5</span><span class="hspace"> </span><span class="RktVal">5</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.15</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><p>Play me</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x*</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">100</span><span class="hspace"> </span><span class="RktVal">1000</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">g</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">gendy1</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktVal">3</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">20</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="hspace"> </span><span class="RktVal">0.0</span><span class="hspace"> </span><span class="RktVal">40</span><span class="hspace"> </span><span class="RktVal">40</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pan2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rlpf</span><span class="hspace"> </span><span class="RktSym">g</span><span class="hspace"> </span><span class="RktVal">500</span><span class="hspace"> </span><span class="RktVal">0.3</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.0</span><span class="hspace"> </span><span class="RktVal">0.25</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Scream!</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">220</span><span class="hspace"> </span><span class="RktVal">440</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">y</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-y</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.0</span><span class="hspace"> </span><span class="RktVal">1.0</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pan2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">gendy1</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktVal">3</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktVal">8</span><span class="hspace"> </span><span class="RktSym">x</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">y</span><span class="hspace"> </span><span class="RktSym">y</span><span class="hspace"> </span><span class="RktVal">7</span><span class="hspace"> </span><span class="RktVal">7</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.0</span><span class="hspace"> </span><span class="RktVal">0.3</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>1 CP = random noise</p><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pan2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">gendy1</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">440</span><span class="hspace"> </span><span class="RktVal">660</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.15</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><p>2 CPs = an oscillator</p><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pan2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">gendy1</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">440</span><span class="hspace"> </span><span class="RktVal">660</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktVal">2</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.15</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><p>Used as an LFO</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">ad</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.49</span><span class="hspace"> </span><span class="RktVal">0.51</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.13</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.49</span><span class="hspace"> </span><span class="RktVal">0.51</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">as</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.17</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.49</span><span class="hspace"> </span><span class="RktVal">0.51</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">ds</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.19</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.49</span><span class="hspace"> </span><span class="RktVal">0.51</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">g</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">gendy1</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktVal">4</span><span class="hspace"> </span><span class="RktSym">ad</span><span class="hspace"> </span><span class="RktSym">dd</span><span class="hspace"> </span><span class="RktVal">3.4</span><span class="hspace"> </span><span class="RktVal">3.5</span><span class="hspace"> </span><span class="RktSym">as</span><span class="hspace"> </span><span class="RktSym">ds</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">10</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pan2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktSym">g</span><span class="hspace"> </span><span class="RktVal">50</span><span class="hspace"> </span><span class="RktVal">350</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.0</span><span class="hspace"> </span><span class="RktVal">0.3</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Wasp</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">ad</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal">0.9</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pan2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">gendy1</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktSym">ad</span><span class="hspace"> </span><span class="RktVal">1.0</span><span class="hspace"> </span><span class="RktVal">50</span><span class="hspace"> </span><span class="RktVal">1000</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.005</span><span class="hspace"> </span><span class="RktVal">12</span><span class="hspace"> </span><span class="RktVal">12</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.0</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Modulate distributions. Change of pitch as distributions change
|
|
the duration structure and spectrum</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x*</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">7</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">y</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-y*</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">7</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">g</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">gendy1</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktSym">y</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">440</span><span class="hspace"> </span><span class="RktVal">660</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="hspace"> </span><span class="RktVal">12</span><span class="hspace"> </span><span class="RktVal">12</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pan2</span><span class="hspace"> </span><span class="RktSym">g</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Modulate number of CPs.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x*</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">13</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">g</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">gendy1</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">440</span><span class="hspace"> </span><span class="RktVal">660</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="hspace"> </span><span class="RktVal">12</span><span class="hspace"> </span><span class="RktSym">x</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pan2</span><span class="hspace"> </span><span class="RktSym">g</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Self modulation.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x*</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">13</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">y</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-y*</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">g0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">gendy1</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">5</span><span class="hspace"> </span><span class="RktVal">4</span><span class="hspace"> </span><span class="RktVal">0.3</span><span class="hspace"> </span><span class="RktVal">0.7</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktSym">y</span><span class="hspace"> </span><span class="RktVal">1.0</span><span class="hspace"> </span><span class="RktVal">1.0</span><span class="hspace"> </span><span class="RktVal">5</span><span class="hspace"> </span><span class="RktVal">5</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">g1</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">gendy1</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">440</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktSym">g0</span><span class="hspace"> </span><span class="RktVal">500</span><span class="hspace"> </span><span class="RktVal">600</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="hspace"> </span><span class="RktVal">12</span><span class="hspace"> </span><span class="RktSym">x</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pan2</span><span class="hspace"> </span><span class="RktSym">g1</span><span class="hspace"> </span><span class="RktVal">0.0</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Use SINUS to track any oscillator and take CP positions from it use
|
|
adparam and ddparam as the inputs to sample.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">p</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-pulse</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">100</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.4</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">30</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">g</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">gendy1</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">6</span><span class="hspace"> </span><span class="RktVal">6</span><span class="hspace"> </span><span class="RktSym">p</span><span class="hspace"> </span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktVal">440</span><span class="hspace"> </span><span class="RktVal">660</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="hspace"> </span><span class="RktVal">12</span><span class="hspace"> </span><span class="RktVal">12</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pan2</span><span class="hspace"> </span><span class="RktSym">g</span><span class="hspace"> </span><span class="RktVal">0.0</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Near the corners are interesting.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x*</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">200</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">y</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-y*</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">200</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">p</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-pulse</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.4</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktSym">y</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">g</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">gendy1</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">6</span><span class="hspace"> </span><span class="RktVal">6</span><span class="hspace"> </span><span class="RktSym">p</span><span class="hspace"> </span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktVal">440</span><span class="hspace"> </span><span class="RktVal">660</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="hspace"> </span><span class="RktVal">12</span><span class="hspace"> </span><span class="RktVal">12</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pan2</span><span class="hspace"> </span><span class="RktSym">g</span><span class="hspace"> </span><span class="RktVal">0.0</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Texture</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">o</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rand</span><span class="hspace"> </span><span class="RktVal">130.0</span><span class="hspace"> </span><span class="RktVal">160.3</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">ad</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.49</span><span class="hspace"> </span><span class="RktVal">0.51</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.13</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.49</span><span class="hspace"> </span><span class="RktVal">0.51</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">as</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.17</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.49</span><span class="hspace"> </span><span class="RktVal">0.51</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">ds</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.19</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.49</span><span class="hspace"> </span><span class="RktVal">0.51</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">g</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">gendy1</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rand</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">6</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rand</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">6</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">ad</span><span class="hspace"> </span><span class="RktSym">dd</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktSym">as</span><span class="hspace"> </span><span class="RktSym">ds</span><span class="hspace"> </span><span class="RktVal">12</span><span class="hspace"> </span><span class="RktVal">12</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pan2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktSym">g</span><span class="hspace"> </span><span class="RktVal">200</span><span class="hspace"> </span><span class="RktVal">400</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rand</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-1</span></span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mix-fill</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">_</span></span></span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">o</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktSym">x</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Try durscale 10.0 and 0.0 too.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x*</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">700</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">y</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-y*</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">50</span><span class="hspace"> </span><span class="RktVal">1000</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">g</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">gendy1</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktVal">3</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">10</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pan2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">comb-n</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">resonz</span><span class="hspace"> </span><span class="RktSym">g</span><span class="hspace"> </span><span class="RktSym">y</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal">5</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.0</span><span class="hspace"> </span><span class="RktVal">0.6</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Overkill</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">define</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">overkill</span><span class="hspace"> </span><span class="RktSym">i</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mix-fill</span></td></tr><tr><td><span class="hspace"> </span><span class="RktSym">i</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">_</span></span></span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rand</span><span class="hspace"> </span><span class="RktVal">50</span><span class="hspace"> </span><span class="RktVal">560.3</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">n</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rand</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktVal">20</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">k</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">exp-rand</span><span class="hspace"> </span><span class="RktVal">0.02</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fdiv</span><span class="hspace"> </span><span class="RktSym">n</span><span class="hspace"> </span><span class="RktVal">2</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fdiv</span><span class="hspace"> </span><span class="RktSym">n</span><span class="hspace"> </span><span class="RktVal">2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">g</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">gendy1</span><span class="hspace"> </span><span class="RktSym">ar</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rand</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">6</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rand</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">6</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rand</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rand</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktSym">f</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rand</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rand</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">n</span><span class="hspace"> </span><span class="RktSym">k</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pan2</span><span class="hspace"> </span><span class="RktSym">g</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rand</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-1</span></span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fdiv</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">sqrt</span></span></span><span class="hspace"> </span><span class="RktSym">i</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">overkill</span><span class="hspace"> </span><span class="RktVal">10</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><p>Another traffic moment</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x*</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">100</span><span class="hspace"> </span><span class="RktVal">2000</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">y</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-y*</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.01</span><span class="hspace"> </span><span class="RktVal">1.0</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">resonz</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">overkill</span><span class="hspace"> </span><span class="RktVal">10</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktSym">y</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.100<tt> </tt><a name="(part.__pulse_rate_freq_width_)"></a>(pulse rate freq width)</h4><p>Bandlimited pulse wave generator.</p><p>Modulate frequency</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">40</span><span class="hspace"> </span><span class="RktVal">4000</span><span class="hspace"> </span><span class="RktVal">6</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pulse</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>modulate pulse width</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">w</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.01</span><span class="hspace"> </span><span class="RktVal">0.99</span><span class="hspace"> </span><span class="RktVal">8</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pulse</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">200</span><span class="hspace"> </span><span class="RktSym">w</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>two band limited square waves thru a resonant low pass filter</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rlpf</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pulse</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktVal">100</span><span class="hspace"> </span><span class="RktVal">250</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">8000</span><span class="hspace"> </span><span class="RktVal">400</span><span class="hspace"> </span><span class="RktVal">5</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0.05</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.101<tt> </tt><a name="(part.__shaper_bufnum_in_)"></a>(shaper bufnum in)</h4><p>Wave shaper. Performs waveshaping on the input signal by indexing
|
|
into the table.</p><p>bufnum - the number of a buffer filled in wavetable format
|
|
containing the transfer function.
|
|
in - the input signal.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-alloc</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">512</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-gen1</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">"cheby"</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">list</span></span></span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">6</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">300</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">shaper</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktSym">s</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.102<tt> </tt><a name="(part._.S.C2__.Note_extra_iphase_argument_)"></a>SC2: Note extra iphase argument.</h4><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">import</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rsc3</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktVal">440</span><span class="hspace"> </span><span class="RktVal">550</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.05</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">200</span><span class="hspace"> </span><span class="RktVal">4000</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.25</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Loses amplitude towards the end</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">4</span><span class="hspace"> </span><span class="RktVal">401</span><span class="hspace"> </span><span class="RktVal">8</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">200</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">800</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.25</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.103<tt> </tt><a name="(part.__v-osc_rate_bufpos_freq_phase_)"></a>(v-osc rate bufpos freq phase)</h4><p>Variable wavetable oscillator. A wavetable lookup oscillator which
|
|
can be swept smoothly across wavetables. All the wavetables must be
|
|
allocated to the same size. Fractional values of table will
|
|
interpolate between two adjacent tables.</p><p>This oscillator requires a buffer to be filled with a wavetable
|
|
format signal. This preprocesses the Signal into a form which can
|
|
be used efficiently by the oscillator. The buffer size must be a
|
|
power of 2.</p><p>This can be acheived by creating a Buffer object and sending it one
|
|
of the "b_gen" messages ( sine1, sine2, sine3 ) with the wavetable
|
|
flag set to true.</p><p>This can also be acheived by creating a Signal object and sending
|
|
it the ’asWavetable’ message, saving it to disk, and having the
|
|
server load it from there.</p><p>Note about wavetables: Vosc requires the b_gen sine1 wavetable flag
|
|
to be ON.</p><p>Allocate and fill tables 0 to 7 [see also Vosc3]</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">square</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">a</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">*</span></span></span><span class="hspace"> </span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">nth</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">i</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-alloc</span><span class="hspace"> </span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktVal">1024</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">n</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">expt</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">+</span></span></span><span class="hspace"> </span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">2</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">map1</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">j</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">square</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">/</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">-</span></span></span><span class="hspace"> </span><span class="RktSym">n</span><span class="hspace"> </span><span class="RktSym">j</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">n</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">enum-from-to</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">-</span></span></span><span class="hspace"> </span><span class="RktSym">n</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-gen1</span><span class="hspace"> </span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktVal">"sine1"</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">cons</span></span></span><span class="hspace"> </span><span class="RktVal">7</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">for-each</span></span></span><span class="hspace"> </span><span class="RktSym">nth</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">enum-from-to</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">7</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>oscillator at buffers 0 through 7.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">7</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktVal">120</span><span class="hspace"> </span><span class="RktVal">121</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">v-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.3</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Reallocate buffers while oscillator is running.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">for-each</span></span></span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">i</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-gen1</span><span class="hspace"> </span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktVal">"sine1"</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">cons</span></span></span><span class="hspace"> </span><span class="RktVal">7</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">replicate-m</span><span class="hspace"> </span><span class="RktVal">16</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">random</span></span></span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">enum-from-to</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">7</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.104<tt> </tt><a name="(part.__var-saw_rate_freq_iphasewidth_)"></a>(var-saw rate freq iphasewidth)</h4><p>Variable duty saw</p><p>freq - frequency in Hertz
|
|
iphase - initial phase offset in cycles ( 0..1 )
|
|
width - duty cycle from zero to one.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-pulse</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktVal">3</span><span class="hspace"> </span><span class="RktVal">3.03</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.3</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">200</span><span class="hspace"> </span><span class="RktVal">200</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">w</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lin-lin</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-tri</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-1</span></span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">var-saw</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktSym">w</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.105<tt> </tt><a name="(part._buf-wr)"></a>buf-wr</h4><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">letc</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">r</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">r*</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">buf-rate-scale</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">r</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">p</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">phasor</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktSym">r*</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">buf-frames</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-noise1</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">2</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">300</span><span class="hspace"> </span><span class="RktVal">400</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mrg2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">buf-wr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktSym">p</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktSym">i</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">letc</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">r</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">r*</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">buf-rate-scale</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">r</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">p</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">phasor</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktSym">r*</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">buf-frames</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">buf-rd</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktSym">p</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-alloc</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">*</span></span></span><span class="hspace"> </span><span class="RktVal">44100</span><span class="hspace"> </span><span class="RktVal">2</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">send-synth</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktVal">"a"</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">send-synth</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktVal">"b"</span><span class="hspace"> </span><span class="RktSym">b</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">send</span></span></span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">s-new0</span><span class="hspace"> </span><span class="RktVal">"a"</span><span class="hspace"> </span><span class="RktVal">1001</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">send</span></span></span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">s-new0</span><span class="hspace"> </span><span class="RktVal">"b"</span><span class="hspace"> </span><span class="RktVal">1002</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">define</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">do-send</span><span class="hspace"> </span><span class="RktSym">m</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">with-sc3</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">send</span></span></span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktSym">m</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">do-send</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">n-set1</span><span class="hspace"> </span><span class="RktVal">1002</span><span class="hspace"> </span><span class="RktVal">"r"</span><span class="hspace"> </span><span class="RktVal">5</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">do-send</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">n-set1</span><span class="hspace"> </span><span class="RktVal">1001</span><span class="hspace"> </span><span class="RktVal">"r"</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">random</span></span></span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">do-send</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">n-set1</span><span class="hspace"> </span><span class="RktVal">1002</span><span class="hspace"> </span><span class="RktVal">"r"</span><span class="hspace"> </span><span class="RktVal">2</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><h4>2.106<tt> </tt><a name="(part._impulse)"></a>impulse</h4><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">import</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rsc3</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">800</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">800</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">5</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0.0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-y*</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">4</span><span class="hspace"> </span><span class="RktVal">8</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">p</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x*</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktSym">p</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.107<tt> </tt><a name="(part._blip)"></a>blip</h4><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">import</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rsc3</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">blip</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">440</span><span class="hspace"> </span><span class="RktVal">200</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.15</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><p>Modulate frequency</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">20000</span><span class="hspace"> </span><span class="RktVal">200</span><span class="hspace"> </span><span class="RktVal">6</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">blip</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">100</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Modulate number of harmonics.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">h</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">100</span><span class="hspace"> </span><span class="RktVal">20</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">blip</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">200</span><span class="hspace"> </span><span class="RktSym">h</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.108<tt> </tt><a name="(part.__select_which_array_)"></a>(select which array)</h4><p>The output is selected from an array of inputs.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce3</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">440</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">saw</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">440</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pulse</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">440</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">cycle</span><span class="hspace"> </span><span class="RktVal">3/2</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">w</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-saw</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">cycle</span><span class="hspace"> </span><span class="RktSym">cycle</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">select</span><span class="hspace"> </span><span class="RktSym">w</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Note: all the ugens are continously running. This may not be the
|
|
most efficient way if each input is cpu-expensive.</p><p>Here used as a sequencer:</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">n</span><span class="hspace"> </span><span class="RktVal">32</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">make-mce</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">map</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">compose</span></span></span><span class="hspace"> </span><span class="RktSym">midi-cps</span><span class="hspace"> </span><span class="RktSym">u:floor</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">replicate-m</span><span class="hspace"> </span><span class="RktSym">n</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rand</span><span class="hspace"> </span><span class="RktVal">30</span><span class="hspace"> </span><span class="RktVal">80</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">cycle</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">/</span></span></span><span class="hspace"> </span><span class="RktSym">n</span><span class="hspace"> </span><span class="RktVal">2</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">w</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-saw</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">1/2</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">cycle</span><span class="hspace"> </span><span class="RktSym">cycle</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">saw</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">select</span><span class="hspace"> </span><span class="RktSym">w</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.109<tt> </tt><a name="(part._formant)"></a>formant</h4><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">import</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rsc3</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><p>Modulate fundamental frequency, formant frequency stays constant.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">400</span><span class="hspace"> </span><span class="RktVal">1000</span><span class="hspace"> </span><span class="RktVal">8</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">formant</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">2000</span><span class="hspace"> </span><span class="RktVal">800</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.125</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Modulate formant frequency, fundamental frequency stays constant.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">400</span><span class="hspace"> </span><span class="RktVal">4000</span><span class="hspace"> </span><span class="RktVal">8</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">formant</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktVal">200</span><span class="hspace"> </span><span class="RktVal">300</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">200</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.125</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Modulate width frequency, other frequencies stay constant.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">w</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">800</span><span class="hspace"> </span><span class="RktVal">8000</span><span class="hspace"> </span><span class="RktVal">8</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">formant</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">400</span><span class="hspace"> </span><span class="RktVal">2000</span><span class="hspace"> </span><span class="RktSym">w</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.125</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.110<tt> </tt><a name="(part._c-osc)"></a>c-osc</h4><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">import</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rsc3</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-alloc</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">512</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-gen1</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">"sine1"</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">list</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">+</span></span></span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktVal">4</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">1/2</span><span class="hspace"> </span><span class="RktVal">1/3</span><span class="hspace"> </span><span class="RktVal">1/4</span><span class="hspace"> </span><span class="RktVal">1/5</span><span class="hspace"> </span><span class="RktVal">1/6</span><span class="hspace"> </span><span class="RktVal">1/7</span><span class="hspace"> </span><span class="RktVal">1/8</span><span class="hspace"> </span><span class="RktVal">1/9</span><span class="hspace"> </span><span class="RktVal">1/10</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">c-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">200</span><span class="hspace"> </span><span class="RktVal">0.7</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.25</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">c-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">200</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x*</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">4</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.25</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><p>Compare with:</p><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">200</span><span class="hspace"> </span><span class="RktVal">0.0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.25</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><h4>2.111<tt> </tt><a name="(part.__v-osc3_rate_bufpos_freq1_freq2_freq3_)"></a>(v-osc3 rate bufpos freq1 freq2 freq3)</h4><p>Three variable wavetable oscillators.</p><p>A wavetable lookup oscillator which can be swept smoothly across
|
|
wavetables. All the wavetables must be allocated to the same
|
|
size. Fractional values of table will interpolate between two
|
|
adjacent tables. This unit generator contains three oscillators at
|
|
different frequencies, mixed together.</p><p>This oscillator requires a buffer to be filled with a wavetable
|
|
format signal. This preprocesses the Signal into a form which can
|
|
be used efficiently by the oscillator. The buffer size must be a
|
|
power of 2.</p><p>This can be acheived by creating a Buffer object and sending it one
|
|
of the "b_gen" messages ( sine1, sine2, sine3 ) with the wavetable
|
|
flag set to true.</p><p>Note about wavetables: Vosc3 requires the b_gen sine1 wavetable
|
|
flag to be ON.</p><p>Allocate and fill tables 0 to 7 with a generated list of harmonic
|
|
amplitudes.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">square</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">a</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">*</span></span></span><span class="hspace"> </span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">nth</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">i</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-alloc</span><span class="hspace"> </span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktVal">1024</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">n</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">expt</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">+</span></span></span><span class="hspace"> </span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">2</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">map</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">j</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">square</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">/</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">-</span></span></span><span class="hspace"> </span><span class="RktSym">n</span><span class="hspace"> </span><span class="RktSym">j</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">n</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">enum-from-to</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">-</span></span></span><span class="hspace"> </span><span class="RktSym">n</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-gen1</span><span class="hspace"> </span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktVal">"sine1"</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">cons</span></span></span><span class="hspace"> </span><span class="RktVal">7</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">for-each</span></span></span><span class="hspace"> </span><span class="RktSym">nth</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">enum-from-to</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">7</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>oscillator at buffers 0 through 7.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">p</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">7</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f1</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktVal">240</span><span class="hspace"> </span><span class="RktVal">241</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktVal">240.27</span><span class="hspace"> </span><span class="RktVal">241.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f3</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktVal">240.43</span><span class="hspace"> </span><span class="RktVal">239.71</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">v-osc3</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">p</span><span class="hspace"> </span><span class="RktSym">f1</span><span class="hspace"> </span><span class="RktSym">f2</span><span class="hspace"> </span><span class="RktSym">f3</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Reallocate buffers while oscillator is running.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">for-each</span></span></span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">i</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-gen1</span><span class="hspace"> </span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktVal">"sine1"</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">cons</span></span></span><span class="hspace"> </span><span class="RktVal">7</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">replicate-m</span><span class="hspace"> </span><span class="RktVal">16</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">random</span></span></span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">enum-from-to</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">7</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.112<tt> </tt><a name="(part.__lf-cub_rate_freq_iphase_)"></a>(lf-cub rate freq iphase)</h4><p>a sine like shape made of two cubic pieces. smoother than lf-par.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-cub</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-cub</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">8</span><span class="hspace"> </span><span class="RktVal">10</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">400</span><span class="hspace"> </span><span class="RktVal">800</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-cub</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-cub</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-cub</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">400</span><span class="hspace"> </span><span class="RktVal">800</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span></p></blockquote><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-cub</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">800</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span></p></blockquote><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-cub</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">100</span><span class="hspace"> </span><span class="RktVal">8000</span><span class="hspace"> </span><span class="RktVal">30</span><span class="hspace"> </span><span class="RktSym">do-nothing</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span></p></blockquote><p>compare:</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-par</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-par</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">8</span><span class="hspace"> </span><span class="RktVal">10</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">400</span><span class="hspace"> </span><span class="RktVal">800</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-par</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-par</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-par</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">400</span><span class="hspace"> </span><span class="RktVal">800</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span></p></blockquote><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-par</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">800</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span></p></blockquote><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-par</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">100</span><span class="hspace"> </span><span class="RktVal">8000</span><span class="hspace"> </span><span class="RktVal">30</span><span class="hspace"> </span><span class="RktSym">do-nothing</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span></p></blockquote><p>compare:</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">8</span><span class="hspace"> </span><span class="RktVal">10</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">400</span><span class="hspace"> </span><span class="RktVal">800</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">400</span><span class="hspace"> </span><span class="RktVal">800</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span></p></blockquote><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">800</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span></p></blockquote><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">100</span><span class="hspace"> </span><span class="RktVal">8000</span><span class="hspace"> </span><span class="RktVal">30</span><span class="hspace"> </span><span class="RktSym">do-nothing</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span></p></blockquote><p>compare:</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-tri</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-tri</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">8</span><span class="hspace"> </span><span class="RktVal">10</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">400</span><span class="hspace"> </span><span class="RktVal">800</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-tri</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-tri</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-tri</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">400</span><span class="hspace"> </span><span class="RktVal">800</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span></p></blockquote><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-tri</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">800</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span></p></blockquote><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-tri</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">100</span><span class="hspace"> </span><span class="RktVal">8000</span><span class="hspace"> </span><span class="RktVal">30</span><span class="hspace"> </span><span class="RktSym">do-nothing</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span></p></blockquote><h4>2.113<tt> </tt><a name="(part.__lf-pulse_rate_freq_iphase_width_)"></a>(lf-pulse rate freq iphase width)</h4><p>A non-band-limited pulse oscillator. outputs a high value of one
|
|
and a low value of zero. Note that the iphase argument was not
|
|
present in SC2.</p><p>freq - frequency in Hertz
|
|
iphase - initial phase offset in cycles ( 0..1 )
|
|
width - pulse width duty cycle from zero to one.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-pulse</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">3</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.3</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">200</span><span class="hspace"> </span><span class="RktVal">200</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-pulse</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.114<tt> </tt><a name="(part._index)"></a>index</h4><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">import</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sosc</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rsc3</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><p>Allocate and set values at buffer 10.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-alloc</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">6</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">send</span></span></span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-setn1</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">list</span></span></span><span class="hspace"> </span><span class="RktVal">50</span><span class="hspace"> </span><span class="RktVal">100</span><span class="hspace"> </span><span class="RktVal">200</span><span class="hspace"> </span><span class="RktVal">400</span><span class="hspace"> </span><span class="RktVal">800</span><span class="hspace"> </span><span class="RktVal">1600</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Index into the above buffer for frequency values.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">index</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-saw</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktVal">3</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">4</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">9</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Free buffer</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-free</span><span class="hspace"> </span><span class="RktVal">10</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.115<tt> </tt><a name="(part._.See_lf-cub_)"></a>See lf-cub.</h4><p>A sine-like shape made of two parabolas. Has audible odd harmonics.</p><h4>2.116<tt> </tt><a name="(part.__sync-saw_rate_sync.Freq_saw.Freq_)"></a>(sync-saw rate syncFreq sawFreq)</h4><p>A sawtooth wave that is hard synched to a fundamental pitch. This
|
|
produces an effect similar to moving formants or pulse width
|
|
modulation. The sawtooth oscillator has its phase reset when the
|
|
sync oscillator completes a cycle. This is not a band limited
|
|
waveform, so it may alias.</p><p>The frequency of the slave synched sawtooth wave should always be
|
|
greater than the syncFreq.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">100</span><span class="hspace"> </span><span class="RktVal">800</span><span class="hspace"> </span><span class="RktVal">12</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sync-saw</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">100</span><span class="hspace"> </span><span class="RktSym">f</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.117<tt> </tt><a name="(part.__t-choose_trig_array_)"></a>(t-choose trig array)</h4><p>The output is selected randomly on recieving a trigger from an
|
|
array of inputs. t-choose is a composite of ti-rand and select.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dust</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">1000</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">midi-cps</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">ti-rand</span><span class="hspace"> </span><span class="RktVal">48</span><span class="hspace"> </span><span class="RktVal">60</span><span class="hspace"> </span><span class="RktSym">t</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce3</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">saw</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">2</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pulse</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">t-choose</span><span class="hspace"> </span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Note: all the ugens are continously running. This may not be the
|
|
most efficient way if each input is cpu-expensive.</p><h4>2.118<tt> </tt><a name="(part.__sin-osc_rate_freq_phase_)"></a>(sin-osc rate freq phase)</h4><p>interpolating sine wavetable oscillator. This is the same as osc
|
|
except that the table is a sine table of 8192 entries.</p><p>freq - frequency in Hertz
|
|
phase - phase offset or modulator in radians</p><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">440</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktVal">0.15</span><span class="hspace"> </span><span class="RktVal">0.25</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><p>Modulate freq</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">2000</span><span class="hspace"> </span><span class="RktVal">200</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Modulate freq</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">f1</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">1000</span><span class="hspace"> </span><span class="RktVal">9</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">200</span><span class="hspace"> </span><span class="RktVal">800</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f2</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.25</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Modulate phase</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">20</span><span class="hspace"> </span><span class="RktVal">8000</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">p</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">*</span></span></span><span class="hspace"> </span><span class="RktSym"><span class="badlink"><span class="RktValLink">pi</span></span></span><span class="hspace"> </span><span class="RktVal">2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">800</span><span class="hspace"> </span><span class="RktSym">p</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.25</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.119<tt> </tt><a name="(part.__klang_rate_freq.Scale_freq.Offset_spec_)"></a>(klang rate freqScale freqOffset spec)</h4><p>Bank of fixed oscillators. The UGen assistant klang.spec can help
|
|
create the ’spec’ entry. Note that the SC3 language reorders the
|
|
inputs, the rsc3 client does not.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">d</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">klang-data</span><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">(</span><span class="RktVal">440</span><span class="hspace"> </span><span class="RktVal">550</span><span class="hspace"> </span><span class="RktVal">660</span><span class="hspace"> </span><span class="RktVal">770</span><span class="hspace"> </span><span class="RktVal">880</span><span class="hspace"> </span><span class="RktVal">990</span><span class="hspace"> </span><span class="RktVal">1000</span><span class="RktVal">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">'</span><span class="RktVal">(</span><span class="RktVal">0.05</span><span class="hspace"> </span><span class="RktVal">0.02</span><span class="hspace"> </span><span class="RktVal">0.07</span><span class="hspace"> </span><span class="RktVal">0.04</span><span class="hspace"> </span><span class="RktVal">0.05</span><span class="hspace"> </span><span class="RktVal">0.02</span><span class="hspace"> </span><span class="RktVal">0.03</span><span class="RktVal">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">replicate</span><span class="hspace"> </span><span class="RktVal">7</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">klang</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktSym">d</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.120<tt> </tt><a name="(part.__lag-in_num-channels_bus_lag_)"></a>(lag-in num-channels bus lag)</h4><p>Set bus 10.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">send</span></span></span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">c-set1</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">random</span></span></span><span class="hspace"> </span><span class="RktVal">200</span><span class="hspace"> </span><span class="RktVal">8000</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Smooth a control rate input signal.</p><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lag-in</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><h4>2.121<tt> </tt><a name="(part.__sound-in_channel_)"></a>(sound-in channel)</h4><p>Read audio from the sound input hardware.</p><p>channel - input channel number to read,
|
|
indexed from zero, can be mce.</p><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sound-in</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sound-in</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sound-in</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce4</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">3</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><h4>2.122<tt> </tt><a name="(part.__in_num-channels_rate_bus_)"></a>(in num-channels rate bus)</h4><p>Read signal from an audio or control bus.</p><p>Patching input to output.</p><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">in</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">num-output-buses</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><p>Patching input to output, with summed delay.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">in</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">num-input-buses</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">add</span><span class="hspace"> </span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">delay-n</span><span class="hspace"> </span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Write noise to bus 10, then read it out. The Mrg is ordered.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mrg2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">in</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">10</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pink-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.3</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Reading a control bus.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">send</span></span></span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">c-set1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">random</span></span></span><span class="hspace"> </span><span class="RktVal">200</span><span class="hspace"> </span><span class="RktVal">5000</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">in</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><h4>2.123<tt> </tt><a name="(part.__in-trig_num-channels_bus_)"></a>(in-trig num-channels bus)</h4><p>Generate a trigger anytime a bus is set.</p><p>Any time the bus is "touched" ie. has its value set (using "/c_set"
|
|
etc.), a single impulse trigger will be generated. Its amplitude
|
|
is the value that the bus was set to.</p><p>Run an oscillator with the trigger at bus 10.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">in-trig</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">10</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">p</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">env-perc</span><span class="hspace"> </span><span class="RktVal">0.01</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">list</span></span></span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-4</span></span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-4</span></span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">e</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">env-gen</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktSym">do-nothing</span><span class="hspace"> </span><span class="RktSym">p</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">latch</span><span class="hspace"> </span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktSym">t</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">440</span><span class="hspace"> </span><span class="RktVal">880</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">e</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Set bus 10.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">send</span></span></span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">c-set1</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.124<tt> </tt><a name="(part.__replace-out_bufferindex_inputs_)"></a>(replace-out bufferindex inputs)</h4><p>Send signal to a bus, overwrite existing signal.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mrg3</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktVal">330</span><span class="hspace"> </span><span class="RktVal">331</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">replace-out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktVal">880</span><span class="hspace"> </span><span class="RktVal">881</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktVal">120</span><span class="hspace"> </span><span class="RktVal">121</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Compare to:</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mrg3</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktVal">330</span><span class="hspace"> </span><span class="RktVal">331</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktVal">880</span><span class="hspace"> </span><span class="RktVal">881</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktVal">120</span><span class="hspace"> </span><span class="RktVal">121</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.125<tt> </tt><a name="(part.__local-in_num-channels_rate_)"></a>(local-in num-channels rate)</h4><p>Define and read from buses local to a SynthDef</p><p>num-channels - the number of channels of local buses.</p><p>Localin defines buses that are local to the SynthDef. These are
|
|
like the global buses, but are more convenient if you want to
|
|
implement a self contained effect that uses a feedback processing
|
|
loop. There can only be one audio rate and one control rate
|
|
Localin per SynthDef. The audio can be written to the bus using
|
|
local-out.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">a0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">decay</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">0.3</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">white-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">a1</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">local-in</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktSym">a0</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">a2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">delay-n</span><span class="hspace"> </span><span class="RktSym">a1</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mrg2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">local-out</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce-reverse</span><span class="hspace"> </span><span class="RktSym">a2</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.8</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktSym">a2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.126<tt> </tt><a name="(part.__offset-out_bufferindex_inputs_)"></a>(offset-out bufferindex inputs)</h4><p>output signal to a bus, the sample offset within the bus is kept
|
|
exactly. This ugen is used where sample accurate output is needed.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mrg2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">offset-out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">5</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">60</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mrg2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">5</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">60</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.127<tt> </tt><a name="(part.__in-feedback_num-channels_bus_)"></a>(in-feedback num-channels bus)</h4><p>Read signal from a bus without erasing it, audio rate.</p><p>The output (out) ugens overwrite data on the bus, giving this bus a
|
|
new timestamp so that any input (in) ugen can check if the data was
|
|
written within the current cycle. The next cycle this data is still
|
|
there, but in case of audio one normally doesn’t want an in ugen to
|
|
read it again, as it might cause feedback.</p><p>This is the reason why in ar checks the timestamp and ignores
|
|
everything that was not written within this cycle. This means that
|
|
nodes can only read data from a bus that was written by a
|
|
preceeding node when using the in ar ugen which overwrites the old
|
|
data. This is good for audio, but for control data it is more
|
|
convenient to be able to read a bus from any place in the node
|
|
order.</p><p>This is why in kr behaves differently and reads also data with a
|
|
timestamp that is one cycle old. Now in some cases we want to be
|
|
able to read audio from a bus independant of the current node
|
|
order, which is the use of inFeedback. The delay introduced by
|
|
this is at a maximum one block size, which equals about 0.0014 sec
|
|
at the default block size and sample rate.</p><p>Audio feedback modulation.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">in-feedback</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">1300</span><span class="hspace"> </span><span class="RktVal">300</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.4</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Evaluate these in either order and hear both tones.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">add</span><span class="hspace"> </span><span class="RktSym">num-input-buses</span><span class="hspace"> </span><span class="RktSym">num-output-buses</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">in-feedback</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktSym">b</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">add</span><span class="hspace"> </span><span class="RktSym">num-input-buses</span><span class="hspace"> </span><span class="RktSym">num-output-buses</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mrg2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">440</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">660</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Doubters consult this.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">add</span><span class="hspace"> </span><span class="RktSym">num-input-buses</span><span class="hspace"> </span><span class="RktSym">num-output-buses</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">in</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">b</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Resonator, see localout for variant.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">add</span><span class="hspace"> </span><span class="RktSym">num-input-buses</span><span class="hspace"> </span><span class="RktSym">num-output-buses</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">p</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">in-feedback</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktSym">b</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">d</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">delay-c</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">add</span><span class="hspace"> </span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktSym">p</span><span class="hspace"> </span><span class="RktVal">0.995</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">1</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sub</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">recip</span><span class="hspace"> </span><span class="RktVal">440</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">recip</span><span class="hspace"> </span><span class="RktSym">control-rate</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mrg2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">offset-out</span><span class="hspace"> </span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktSym">d</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">offset-out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktSym">p</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Compare with oscillator.</p><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">440</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><h4>2.128<tt> </tt><a name="(part.__x-out_buffer-index_xfade_inputs_)"></a>(x-out buffer-index xfade inputs)</h4><p>Send signal to a bus, crossfading with existing contents.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">pair</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktSym">b</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktSym">b</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mrg4</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pair</span><span class="hspace"> </span><span class="RktVal">220</span><span class="hspace"> </span><span class="RktVal">221</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pair</span><span class="hspace"> </span><span class="RktVal">330</span><span class="hspace"> </span><span class="RktVal">331</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-y</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pair</span><span class="hspace"> </span><span class="RktVal">440</span><span class="hspace"> </span><span class="RktVal">441</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pair</span><span class="hspace"> </span><span class="RktVal">120</span><span class="hspace"> </span><span class="RktVal">121</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.129<tt> </tt><a name="(part.__out_bufferindex_inputs_)"></a>(out bufferindex inputs)</h4><p>Send signal to an audio or control buss, mix with existing signal.
|
|
The user is responsible for making sure that the number of channels
|
|
match and that there are no conflicts.</p><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktVal">330</span><span class="hspace"> </span><span class="RktVal">331</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><h4>2.130<tt> </tt><a name="(part.__mix_.U.Gen_)"></a>(mix UGen)</h4><p>Force multiple channel expansion and sum signals.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">make-mce</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">list</span></span></span><span class="hspace"> </span><span class="RktVal">600.2</span><span class="hspace"> </span><span class="RktVal">622.0</span><span class="hspace"> </span><span class="RktVal">641.3</span><span class="hspace"> </span><span class="RktVal">677.7</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mix</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Expansion nests.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">l</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktVal">100</span><span class="hspace"> </span><span class="RktVal">500</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">r</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktVal">5000</span><span class="hspace"> </span><span class="RktVal">501</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktVal">0.05</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mix</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktSym">l</span><span class="hspace"> </span><span class="RktSym">r</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.131<tt> </tt><a name="(part.__mix-fill_n_f_)"></a>(mix-fill n f)</h4><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">n</span><span class="hspace"> </span><span class="RktVal">6</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">o</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">_</span></span></span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rand</span><span class="hspace"> </span><span class="RktVal">200</span><span class="hspace"> </span><span class="RktVal">700</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mix-fill</span><span class="hspace"> </span><span class="RktSym">n</span><span class="hspace"> </span><span class="RktSym">o</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.132<tt> </tt><a name="(part.__latch_in_trig_)"></a>(latch in trig)</h4><p>Sample and hold. Holds input signal value when triggered.</p><p>in - input signal.
|
|
trig - trigger. The trigger can be any signal. A trigger happens when the
|
|
signal changes from non-positive to positive.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">blip</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">latch</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">white-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">9</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">400</span><span class="hspace"> </span><span class="RktVal">500</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">4</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>The above is just meant as example. lf-noise0 is a faster way to
|
|
generate random steps :</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">blip</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-noise0</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">9</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">400</span><span class="hspace"> </span><span class="RktVal">500</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">4</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>http://create.ucsb.edu/pipermail/sc-users/2006-December/029991.html</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">n0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-noise2</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">8</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">200</span><span class="hspace"> </span><span class="RktVal">300</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">n1</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-noise2</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">3</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">20</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">blip</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">n0</span><span class="hspace"> </span><span class="RktSym">n1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">1000</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktSym">sample-rate</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">latch</span><span class="hspace"> </span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.133<tt> </tt><a name="(part.__decay_in_decay.Time_)"></a>(decay in decayTime)</h4><p>Exponential decay. This is essentially the same as integrator
|
|
except that instead of supplying the coefficient directly, it is
|
|
caculated from a 60 dB decay time. This is the time required for
|
|
the integrator to lose 99.9 % of its value or -60dB. This is useful
|
|
for exponential decaying envelopes triggered by impulses.</p><p>Used as an envelope.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">decay</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">50</span><span class="hspace"> </span><span class="RktVal">20</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.25</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pink-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.134<tt> </tt><a name="(part.__wrap-index_bufnum_in_)"></a>(wrap-index bufnum in)</h4><p>index into a table with a signal.</p><p>The input signal value is truncated to an integer value and used as
|
|
an index into the table. out of range index values are wrapped
|
|
cyclically to the valid range.</p><p>bufnum - index of the buffer
|
|
in - the input signal.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-alloc</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">6</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">send</span></span></span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-setn1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">list</span></span></span><span class="hspace"> </span><span class="RktVal">200</span><span class="hspace"> </span><span class="RktVal">300</span><span class="hspace"> </span><span class="RktVal">400</span><span class="hspace"> </span><span class="RktVal">500</span><span class="hspace"> </span><span class="RktVal">600</span><span class="hspace"> </span><span class="RktVal">800</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">wrap-index</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">18</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">play</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.135<tt> </tt><a name="(part.__mouse-y_rate_minval_maxval_warp_lag_)"></a>(mouse-y rate minval maxval warp lag)</h4><p>Report mouse location on root window of the machine that the
|
|
synthesis server is running on. For a linear mapping set warp to
|
|
0, for an exponential mapping set warp to 1.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">20</span><span class="hspace"> </span><span class="RktVal">2000</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-y</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.01</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.136<tt> </tt><a name="(part.__degree-to-key_bufnum_in_octave_)"></a>(degree-to-key bufnum in octave)</h4><p>Convert signal to modal pitch</p><p>The input signal value is truncated to an integer value and used as
|
|
an index into an octave repeating table of note values. indices
|
|
wrap around the table and shift octaves as they do.</p><p>bufnum - index of the buffer which contains the steps for each
|
|
scale degree.</p><p>in - the input signal.</p><p>octave - the number of steps per octave in the scale.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">p</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">list</span></span></span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktVal">3.2</span><span class="hspace"> </span><span class="RktVal">5</span><span class="hspace"> </span><span class="RktVal">7</span><span class="hspace"> </span><span class="RktVal">9</span><span class="hspace"> </span><span class="RktVal">10</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">15</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">k</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">degree-to-key</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktVal">12</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">c</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">n</span><span class="hspace"> </span><span class="RktSym">r</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">o</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">midi-cps</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">add3</span><span class="hspace"> </span><span class="RktSym">r</span><span class="hspace"> </span><span class="RktSym">k</span><span class="hspace"> </span><span class="RktSym">n</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-pulse</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">midi-cps</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktVal">48</span><span class="hspace"> </span><span class="RktVal">55</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.15</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">midi-cps</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktSym">r</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">d</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rlpf</span><span class="hspace"> </span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">m</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">add</span><span class="hspace"> </span><span class="RktSym">o</span><span class="hspace"> </span><span class="RktSym">d</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">comb-n</span><span class="hspace"> </span><span class="RktSym">m</span><span class="hspace"> </span><span class="RktVal">0.31</span><span class="hspace"> </span><span class="RktVal">0.31</span><span class="hspace"> </span><span class="RktVal">2</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">m</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-alloc</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">7</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">send</span></span></span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-setn1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktSym">p</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">n</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-noise1</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktVal">3</span><span class="hspace"> </span><span class="RktVal">3.05</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.04</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">play</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">c</span><span class="hspace"> </span><span class="RktSym">n</span><span class="hspace"> </span><span class="RktVal">48</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">c</span><span class="hspace"> </span><span class="RktSym">n</span><span class="hspace"> </span><span class="RktVal">72</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.25</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.137<tt> </tt><a name="(part.__key-state_rate_keynum_minval_maxval_lag_)"></a>(key-state rate keynum minval maxval lag)</h4><p>Report the status of a particular key. A key is either pressed,
|
|
or not pressed.</p><p>The keycode 38 is the A key on my keyboard. Under X the xev(1)
|
|
command is useful in determining your keyboard layout.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">800</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">key-state</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">38</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.138<tt> </tt><a name="(part.__mrg2_left_right_)"></a>(mrg2 left right)</h4><p>mrg2 defines a node indicating a multiple root graph.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">l</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">300</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">r</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">900</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mrg2</span><span class="hspace"> </span><span class="RktSym">l</span><span class="hspace"> </span><span class="RktSym">r</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>there is a leftmost rule, so that mrg nodes need not
|
|
be terminal.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">l</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">300</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">r</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">900</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mrg2</span><span class="hspace"> </span><span class="RktSym">l</span><span class="hspace"> </span><span class="RktSym">r</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>the leftmost node may be an mce node</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">l</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktVal">300</span><span class="hspace"> </span><span class="RktVal">400</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">r</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">900</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mrg2</span><span class="hspace"> </span><span class="RktSym">l</span><span class="hspace"> </span><span class="RktSym">r</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>the implementation is not thorough</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">l</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktVal">300</span><span class="hspace"> </span><span class="RktVal">400</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">r</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">900</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mrg2</span><span class="hspace"> </span><span class="RktSym">l</span><span class="hspace"> </span><span class="RktSym">r</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mrg2</span><span class="hspace"> </span><span class="RktSym">l</span><span class="hspace"> </span><span class="RktSym">r</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.139<tt> </tt><a name="(part.__mouse-button_rate_minval_maxval_lag_)"></a>(mouse-button rate minval maxval lag)</h4><p>Report the status of the first pointer button. The button is
|
|
either pressed, or not pressed.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">800</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-button</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.140<tt> </tt><a name="(part.__slew_in_up_dn_)"></a>(slew in up dn)</h4><p>Has the effect of removing transients and higher frequencies.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">slew</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">saw</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">800</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">400</span><span class="hspace"> </span><span class="RktVal">400</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.141<tt> </tt><a name="(part.__mouse-x_rate_minval_maxval_warp_lag_)"></a>(mouse-x rate minval maxval warp lag)</h4><p>Cursor UGen. Report mouse location on root window of the machine
|
|
that the synthesis server is running on. For a linear mapping set
|
|
warp to 0, for an exponential mapping set warp to 1.</p><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">import</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rsc3</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">40</span><span class="hspace"> </span><span class="RktVal">10000</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">20</span><span class="hspace"> </span><span class="RktVal">2000</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-y</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.01</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-y</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">20</span><span class="hspace"> </span><span class="RktVal">2000</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.01</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Auto-pilot variant</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x*</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">40</span><span class="hspace"> </span><span class="RktVal">10000</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.142<tt> </tt><a name="(part.__decay2_in_attack.Time_decay.Time_)"></a>(decay2 in attackTime decayTime)</h4><p>Exponential decay. decay has a very sharp attack and can produce
|
|
clicks. decay2 rounds off the attack by subtracting one decay from
|
|
another.</p><p>(decay2 in a d) is equivalent to (sub (decay in d) (Decay in a)).</p><p>Used as an envelope</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">decay2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">50</span><span class="hspace"> </span><span class="RktVal">20</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.25</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0.01</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">600</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.25</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Compare the above with decay used as the envelope.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">decay</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">50</span><span class="hspace"> </span><span class="RktVal">20</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.25</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0.01</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">600</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.25</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.143<tt> </tt><a name="(part.__k2a_in_)"></a>(k2a in)</h4><p>Control rate to audio rate converter.</p><p>To be able to play a control rate UGen into an audio rate UGen,
|
|
sometimes the rate must be converted. k2a converts via linear
|
|
interpolation.</p><p>in - input signal</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">k2a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">white-noise</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.3</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">k2a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">white-noise</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.3</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">white-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.3</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">block-size</span><span class="hspace"> </span><span class="RktVal">64</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">freq</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fdiv</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal">40</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">block-size</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">sample-rate</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">k2a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-noise0</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktSym">freq</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-noise0</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">freq</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0.3</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.144<tt> </tt><a name="(part.__mul-add_a_b_c_)"></a>(mul-add a b c)</h4><p>Functionally equivalent to (add (mul a b) c).</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-saw</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">9</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">200</span><span class="hspace"> </span><span class="RktVal">400</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-saw</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">9</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">200</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">400</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.145<tt> </tt><a name="(part.__clip2_a_b_)"></a>(clip2 a b)</h4><p>Bilateral clipping. clips a to +/- b</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">clip2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">400</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">clip2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">400</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">8</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.146<tt> </tt><a name="(part.__.Atan2_x_y_)"></a>(Atan2 x y)</h4><p>Returns the arctangent of y/x.</p><p>See also hypot.</p><p>add a pan to the hypot doppler examples by using atan2 to find the
|
|
azimuth, or direction angle, of the sound source. Assume speakers
|
|
at +/- 45 degrees and clip the direction to between those.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktVal">10</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">y</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-saw</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">1/6</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">100</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">distance</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">hypot</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktSym">y</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">amplitude</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fdiv</span><span class="hspace"> </span><span class="RktVal">40</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">squared</span><span class="hspace"> </span><span class="RktSym">distance</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sound</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rlpf</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">200</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-pulse</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">31.3</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.4</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">400</span><span class="hspace"> </span><span class="RktVal">0.3</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">azimuth</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">atan2</span><span class="hspace"> </span><span class="RktSym">y</span><span class="hspace"> </span><span class="RktSym">x</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">loc</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">clip2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fdiv</span><span class="hspace"> </span><span class="RktSym">azimuth</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">/</span></span></span><span class="hspace"> </span><span class="RktSym"><span class="badlink"><span class="RktValLink">pi</span></span></span><span class="hspace"> </span><span class="RktVal">2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pan2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">delay-l</span><span class="hspace"> </span><span class="RktSym">sound</span><span class="hspace"> </span><span class="RktVal">55/172</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fdiv</span><span class="hspace"> </span><span class="RktSym">distance</span><span class="hspace"> </span><span class="RktVal">344</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktSym">loc</span></td></tr><tr><td><span class="hspace"> </span><span class="RktSym">amplitude</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.147<tt> </tt><a name="(part.__trunc_a_b_)"></a>(trunc a b)</h4><p>Truncate a to a multiple of b.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">60</span><span class="hspace"> </span><span class="RktVal">4000</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">trunc</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktVal">100</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.148<tt> </tt><a name="(part.__sub_a_b_)"></a>(sub a b)</h4><p>subtraction, written ’-’ in sclang.</p><p>Silence.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">z</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">800</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sub</span><span class="hspace"> </span><span class="RktSym">z</span><span class="hspace"> </span><span class="RktSym">z</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.149<tt> </tt><a name="(part.__round-up_a_b_)"></a>(round-up a b)</h4><p>Rounds a up to the nearest multiple of b.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">60</span><span class="hspace"> </span><span class="RktVal">4000</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">round-up</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktVal">100</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">n</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">24</span><span class="hspace"> </span><span class="RktVal">108</span><span class="hspace"> </span><span class="RktVal">6</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">saw</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">midi-cps</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">round-up</span><span class="hspace"> </span><span class="RktSym">n</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.150<tt> </tt><a name="(part.__ring4_a_b_)"></a>(ring4 a b)</h4><p>Ring modulation variant. Return the value of ((a*a *b) -
|
|
(a*b*b)). This is more efficient than using separate unit
|
|
generators for the multiplies.</p><p>See also mul, ring1, ring2, ring3.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">ring4</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">800</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">200</span><span class="hspace"> </span><span class="RktVal">500</span><span class="hspace"> </span><span class="RktVal">5</span><span class="hspace"> </span><span class="RktSym">do-nothing</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0.125</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">800</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">200</span><span class="hspace"> </span><span class="RktVal">500</span><span class="hspace"> </span><span class="RktVal">5</span><span class="hspace"> </span><span class="RktSym">do-nothing</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sub</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul3</span><span class="hspace"> </span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktSym">b</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul3</span><span class="hspace"> </span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktSym">b</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0.125</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.151<tt> </tt><a name="(part.__pow_a_b_)"></a>(pow a b)</h4><p>Exponentiation, written ** in sclang. When the signal is negative
|
|
this function extends the usual definition of exponentiation and
|
|
returns neg(neg(a) ** b). This allows exponentiation of negative
|
|
signal values by noninteger exponents.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">100</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pow</span><span class="hspace"> </span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktVal">10</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>http://create.ucsb.edu/pipermail/sc-users/2006-December/029998.html</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">n0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-noise2</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">8</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">200</span><span class="hspace"> </span><span class="RktVal">300</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">n1</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-noise2</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">3</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">20</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">blip</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">n0</span><span class="hspace"> </span><span class="RktSym">n1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">1000</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktSym">sample-rate</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">y</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-y</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">24</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">d</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">latch</span><span class="hspace"> </span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">u:round</span><span class="hspace"> </span><span class="RktSym">d</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pow</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="hspace"> </span><span class="RktSym">y</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktSym">d</span><span class="hspace"> </span><span class="RktSym">b</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.152<tt> </tt><a name="(part.__ring1_a_b_)"></a>(ring1 a b)</h4><p>Ring modulation plus first source. Return the value of ((a*b) +
|
|
a). This is more efficient than using separate unit generators for
|
|
the multiply and add.</p><p>See also mul, Ring1, Ring2, Ring3, Ring4.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">ring1</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">800</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">200</span><span class="hspace"> </span><span class="RktVal">500</span><span class="hspace"> </span><span class="RktVal">5</span><span class="hspace"> </span><span class="RktSym">do-nothing</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0.125</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">800</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">200</span><span class="hspace"> </span><span class="RktVal">500</span><span class="hspace"> </span><span class="RktVal">5</span><span class="hspace"> </span><span class="RktSym">do-nothing</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktSym">b</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.125</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.153<tt> </tt><a name="(part.__gt_a_b_)"></a>(gt a b)</h4><p>Greater than, written ’>’ in sclang. Signal is 1.0 if a > b,
|
|
otherwise it is 0.0. Similarly LT is <, GE >=, LE <= and EQ ==.
|
|
These can be useful for triggering purposes, among other things.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">o</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">list</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">gt</span><span class="hspace"> </span><span class="RktSym">o</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">ge</span><span class="hspace"> </span><span class="RktSym">o</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lt</span><span class="hspace"> </span><span class="RktSym">o</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">le</span><span class="hspace"> </span><span class="RktSym">o</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">eq</span><span class="hspace"> </span><span class="RktSym">o</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lt</span><span class="hspace"> </span><span class="RktSym">o</span><span class="hspace"> </span><span class="RktVal">0.001</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">gt</span><span class="hspace"> </span><span class="RktSym">o</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-0</span>.001</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">list</span></span></span><span class="hspace"> </span><span class="RktVal">220</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">330</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">440</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">550</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">660</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">770</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">p</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">env-perc</span><span class="hspace"> </span><span class="RktVal">0.01</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">list</span></span></span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-4</span></span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-4</span></span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">e</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">env-gen</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">make-mce</span><span class="hspace"> </span><span class="RktSym">t</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktSym">do-nothing</span><span class="hspace"> </span><span class="RktSym">p</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mix</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">make-mce</span><span class="hspace"> </span><span class="RktSym">f</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">e</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.154<tt> </tt><a name="(part.__add_a_b_)"></a>(add a b)</h4><p>addition, written ’+’ in sclang.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">800</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pink-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>DC offset.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">440</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.155<tt> </tt><a name="(part.__abs-dif_a_b_)"></a>(abs-dif a b)</h4><p>Calculates the value of (abs (- a b). Finding the magnitude of the
|
|
difference of two values is a common operation.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">440</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">abs-dif</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.156<tt> </tt><a name="(part.__am-clip_a_b_)"></a>(am-clip a b)</h4><p>Two quadrant multiply, 0 when b <= 0, a*b when b > 0</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">am-clip</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">white-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.157<tt> </tt><a name="(part.__ge_a_b_)"></a>(ge a b)</h4><p>See gt</p><h4>2.158<tt> </tt><a name="(part.__max_a_b_)"></a>(max a b)</h4><p>Maximum.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">z</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">500</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">u:max</span><span class="hspace"> </span><span class="RktSym">z</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.159<tt> </tt><a name="(part.__ring3_a_b_)"></a>(ring3 a b)</h4><p>Ring modulation variant. Return the value of (a * a * b). This is
|
|
more efficient than using separate unit generators for the
|
|
multiplies.</p><p>See also mul, ring1, ring2, ring4.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">ring3</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">800</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">200</span><span class="hspace"> </span><span class="RktVal">500</span><span class="hspace"> </span><span class="RktVal">5</span><span class="hspace"> </span><span class="RktSym">do-nothing</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0.125</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">800</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">200</span><span class="hspace"> </span><span class="RktVal">500</span><span class="hspace"> </span><span class="RktVal">5</span><span class="hspace"> </span><span class="RktSym">do-nothing</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul4</span><span class="hspace"> </span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktVal">0.125</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.160<tt> </tt><a name="(part.__thresh_a_b_)"></a>(thresh a b)</h4><p>Signal thresholding. 0 when a < b, otherwise a.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">thresh</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-noise0</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">50</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.45</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.161<tt> </tt><a name="(part.__dif-sqr_a_b_)"></a>(dif-sqr a b)</h4><p>Difference of squares. Return the value of (a*a) - (b*b). This is
|
|
more efficient than using separate unit generators for each
|
|
operation.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dif-sqr</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">800</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">200</span><span class="hspace"> </span><span class="RktVal">500</span><span class="hspace"> </span><span class="RktVal">5</span><span class="hspace"> </span><span class="RktSym">do-nothing</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0.125</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">800</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">200</span><span class="hspace"> </span><span class="RktVal">500</span><span class="hspace"> </span><span class="RktVal">5</span><span class="hspace"> </span><span class="RktSym">do-nothing</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sub</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktSym">b</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.125</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.162<tt> </tt><a name="(part.__excess_a_b_)"></a>(excess a b)</h4><p>clipping residual. Returns the difference of the original signal
|
|
and its clipped form: (a - clip2(a,b)).</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">excess</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">1000</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">8</span><span class="hspace"> </span><span class="RktSym">do-nothing</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">1000</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">8</span><span class="hspace"> </span><span class="RktSym">do-nothing</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sub</span><span class="hspace"> </span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">clip2</span><span class="hspace"> </span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktSym">b</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.163<tt> </tt><a name="(part.__fold2_a_b_)"></a>(fold2 a b)</h4><p>Bilateral folding. folds a to +/- b.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fold2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">1000</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">8</span><span class="hspace"> </span><span class="RktSym">do-nothing</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.164<tt> </tt><a name="(part.__sqr-dif_a_b_)"></a>(sqr-dif a b)</h4><p>Square of the difference. Return the value of (a - b)**2. This is
|
|
more efficient than using separate unit generators for each
|
|
operation.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sqr-dif</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">800</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">200</span><span class="hspace"> </span><span class="RktVal">500</span><span class="hspace"> </span><span class="RktVal">5</span><span class="hspace"> </span><span class="RktSym">do-nothing</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0.125</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">800</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">200</span><span class="hspace"> </span><span class="RktVal">500</span><span class="hspace"> </span><span class="RktVal">5</span><span class="hspace"> </span><span class="RktSym">do-nothing</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sub</span><span class="hspace"> </span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktSym">b</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sub</span><span class="hspace"> </span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktSym">b</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0.125</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.165<tt> </tt><a name="(part.__hypot_x_y_)"></a>(hypot x y)</h4><p>Returns the square root of the sum of the squares of a and b. Or
|
|
equivalently, the distance from the origin to the point (x, y).</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">440</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">hypot</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-y</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Object travels 200 meters in 6 secs (=120kph) passing 10 meters
|
|
from the listener. The speed of sound is 344 meters/sec.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktVal">10</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">y</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-saw</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">1/6</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">100</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">distance</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">hypot</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktSym">y</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">velocity</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">slope</span><span class="hspace"> </span><span class="RktSym">distance</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pitch-ratio</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fdiv</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sub</span><span class="hspace"> </span><span class="RktVal">344</span><span class="hspace"> </span><span class="RktSym">velocity</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">344</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">amplitude</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fdiv</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">squared</span><span class="hspace"> </span><span class="RktSym">distance</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktVal">1000</span><span class="hspace"> </span><span class="RktSym">pitch-ratio</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktSym">amplitude</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktVal">10</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">y</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-saw</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">1/6</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">100</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">distance</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">hypot</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktSym">y</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">amplitude</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fdiv</span><span class="hspace"> </span><span class="RktVal">40</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">squared</span><span class="hspace"> </span><span class="RktSym">distance</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sound</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rlpf</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">200</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-pulse</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">31.3</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.4</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">400</span><span class="hspace"> </span><span class="RktVal">0.3</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">delay-l</span><span class="hspace"> </span><span class="RktSym">sound</span><span class="hspace"> </span><span class="RktVal">55/172</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fdiv</span><span class="hspace"> </span><span class="RktSym">distance</span><span class="hspace"> </span><span class="RktVal">344</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktSym">amplitude</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.166<tt> </tt><a name="(part.__sqr-sum_a_b_)"></a>(sqr-sum a b)</h4><p>Square of the difference. Return the value of (a + b)**2. This is
|
|
more efficient than using separate unit generators for each
|
|
operation.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sqr-sum</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">800</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">200</span><span class="hspace"> </span><span class="RktVal">500</span><span class="hspace"> </span><span class="RktVal">5</span><span class="hspace"> </span><span class="RktSym">do-nothing</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0.125</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">800</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">200</span><span class="hspace"> </span><span class="RktVal">500</span><span class="hspace"> </span><span class="RktVal">5</span><span class="hspace"> </span><span class="RktSym">do-nothing</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">add</span><span class="hspace"> </span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktSym">b</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">add</span><span class="hspace"> </span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktSym">b</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0.125</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.167<tt> </tt><a name="(part.__sum-sqr_a_b_)"></a>(sum-sqr a b)</h4><p>Return the value of (a*a) + (b*b). This is more efficient than
|
|
using separate unit generators for each operation.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sum-sqr</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">800</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">200</span><span class="hspace"> </span><span class="RktVal">500</span><span class="hspace"> </span><span class="RktVal">5</span><span class="hspace"> </span><span class="RktSym">do-nothing</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0.125</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">800</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">200</span><span class="hspace"> </span><span class="RktVal">500</span><span class="hspace"> </span><span class="RktVal">5</span><span class="hspace"> </span><span class="RktSym">do-nothing</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktSym">b</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.125</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.168<tt> </tt><a name="(part.__le_a_b_)"></a>(le a b)</h4><p>See gt</p><h4>2.169<tt> </tt><a name="(part._eq)"></a>eq</h4><p>See gt</p><h4>2.170<tt> </tt><a name="(part.__scale-neg_a_b_)"></a>(scale-neg a b)</h4><p>Scale negative part of input wave. a * b when a < 0, otherwise a.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">scale-neg</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">500</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">line</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-1</span></span><span class="hspace"> </span><span class="RktVal">4</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.171<tt> </tt><a name="(part.__ring2_a_b_)"></a>(ring2 a b)</h4><p>Ring modulation plus both sources. Return the value of ((a*b) + a
|
|
+ b). This is more efficient than using separate unit generators
|
|
for the multiply and add.</p><p>See also mul, Ring1, Ring3, Ring4.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">ring2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">800</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">200</span><span class="hspace"> </span><span class="RktVal">500</span><span class="hspace"> </span><span class="RktVal">5</span><span class="hspace"> </span><span class="RktSym">do-nothing</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0.125</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">800</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">200</span><span class="hspace"> </span><span class="RktVal">500</span><span class="hspace"> </span><span class="RktVal">5</span><span class="hspace"> </span><span class="RktSym">do-nothing</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">add3</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktSym">b</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktSym">b</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.125</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.172<tt> </tt><a name="(part.__.Mod_a_b_)"></a>(Mod a b)</h4><p>Modulo, written % in sclang. outputs a modulo b.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">u:mod</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">100</span><span class="hspace"> </span><span class="RktVal">4</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.173<tt> </tt><a name="(part.__fdiv_a_b_)"></a>(fdiv a b)</h4><p>Division, written ’/’ in sclang.</p><p>Division can be tricky with signals because of division by zero.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fdiv</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pink-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.75</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.174<tt> </tt><a name="(part.__mul_a_b_)"></a>(mul a b)</h4><p>multiplication, written ’*’ in sclang.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">440</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Creates a beating effect (subaudio rate).</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul3</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pink-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Ring modulation.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul3</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">100</span><span class="hspace"> </span><span class="RktVal">1001</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktSym">do-nothing</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sync-saw</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">100</span><span class="hspace"> </span><span class="RktVal">200</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0.25</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.175<tt> </tt><a name="(part.__min_a_b_)"></a>(min a b)</h4><p>Minimum.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">z</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">500</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">u:min</span><span class="hspace"> </span><span class="RktSym">z</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.176<tt> </tt><a name="(part.__lt_a_b_)"></a>(lt a b)</h4><p>See gt</p><h4>2.177<tt> </tt><a name="(part.__wrap2_a_b_)"></a>(wrap2 a b)</h4><p>Bilateral wrapping. wraps input wave to +/- b.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">wrap2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">1000</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1.01</span><span class="hspace"> </span><span class="RktVal">8</span><span class="hspace"> </span><span class="RktSym">do-nothing</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.178<tt> </tt><a name="(part.__round_a_b_)"></a>(round a b)</h4><p>Rounds a to the nearest multiple of b.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">60</span><span class="hspace"> </span><span class="RktVal">4000</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">u:round</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktVal">100</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">n</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">24</span><span class="hspace"> </span><span class="RktVal">108</span><span class="hspace"> </span><span class="RktVal">6</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">saw</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">midi-cps</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">u:round</span><span class="hspace"> </span><span class="RktSym">n</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.179<tt> </tt><a name="(part.__hasher_in_)"></a>(hasher in)</h4><p>Returns a unique output value from zero to one for each input value
|
|
according to a hash function. The same input value will always
|
|
produce the same output value. The input need not be from zero to
|
|
one.</p><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">hasher</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">line</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><h4>2.180<tt> </tt><a name="(part.__rand-seed_rate_trig_seed_)"></a>(rand-seed rate trig seed)</h4><p>When the trigger signal changes from nonpositive to positve, the
|
|
synth’s random generator seed is reset to the given value. All
|
|
other synths that use the same random number generator reproduce
|
|
the same sequence of numbers again.</p><p>See also: randID.</p><p>Start a noise patch</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">n</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">white-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktVal">0.05</span><span class="hspace"> </span><span class="RktVal">0.05</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dust2</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktVal">70</span><span class="hspace"> </span><span class="RktVal">70</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-noise1</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">3</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">5500</span><span class="hspace"> </span><span class="RktVal">6000</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">resonz</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktSym">n</span><span class="hspace"> </span><span class="RktVal">5</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktSym">n</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Reset the seed at a variable rate.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mrg2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rand-seed</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal">100</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">1956</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.181<tt> </tt><a name="(part.__lfd-noise0_rate_freq_)"></a>(lfd-noise0 rate freq)</h4><p>(lfd-noise1 rate freq)
|
|
(lfd-noise3 rate freq)</p><p>lfd-noise0: Dynamic step noise. Like lf-noise0, it generates random
|
|
values at a rate given by the freq argument, with two differences:
|
|
no time quantization, and fast recovery from low freq values.</p><p>lfd-noise1: Dynamic ramp noise. Like lf-noise1, it generates linearly
|
|
interpolated random values at a rate given by the freq argument,
|
|
with two differences: no time quantization, and fast recovery from
|
|
low freq values.</p><p>lfd-noise3: Dynamic cubic noise. Like Lf-Noise3, it generates
|
|
linearly interpolated random values at a rate given by the freq
|
|
argument, with two differences: no time quantization, and fast
|
|
recovery from low freq values.</p><p>lf-noise0,1,3 quantize to the nearest integer division of the
|
|
samplerate, and they poll the freq argument only when scheduled,
|
|
and thus seem to hang when freqs get very low).</p><p>If you don’t need very high or very low freqs, or use fixed freqs,
|
|
lf-noise0,1,3 is more efficient.</p><p>Try wiggling mouse quickly; Lf-Noise frequently seems stuck,
|
|
LFDNoise changes smoothly.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-noise0</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal">1000</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lfd-noise0</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal">1000</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>silent for 2 secs before going up in freq</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-noise0</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="hspace"> </span><span class="RktVal">10000</span><span class="hspace"> </span><span class="RktVal">3</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lfd-noise0</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="hspace"> </span><span class="RktVal">10000</span><span class="hspace"> </span><span class="RktVal">3</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>lf-noise quantizes time steps at high freqs, lfd-noise does not:</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-noise0</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">1000</span><span class="hspace"> </span><span class="RktVal">20000</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lfd-noise0</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">1000</span><span class="hspace"> </span><span class="RktVal">20000</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.182<tt> </tt><a name="(part.__lfclip-noise_rate_freq_)"></a>(lfclip-noise rate freq)</h4><p>randomly generates the values -1 or +1 at a rate given by the
|
|
nearest integer division of the sample rate by the freq argument.
|
|
It is probably pretty hard on your speakers. The freq argument is
|
|
the approximate rate at which to generate random values.</p><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lfclip-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">1000</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><p>Modulate frequency</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">1000</span><span class="hspace"> </span><span class="RktVal">10000</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lfclip-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Use as frequency control</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lfclip-noise</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">4</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">200</span><span class="hspace"> </span><span class="RktVal">600</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.183<tt> </tt><a name="(part._.See_lf-noise0)"></a>See lf-noise0</h4><h4>2.184<tt> </tt><a name="(part.__clip-noise_rate_)"></a>(clip-noise rate)</h4><p>Generates noise whose values are either -1 or 1. This produces the
|
|
maximum energy for the least peak to peak amplitude.</p><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">clip-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><h4>2.185<tt> </tt><a name="(part.__ti-rand_lo_hi_trig_)"></a>(ti-rand lo hi trig)</h4><p>Generates a random integer value in uniform distribution from lo to
|
|
hi each time the trig signal changes from nonpositive to positive
|
|
values</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">p</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">ti-rand</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-1</span></span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dust</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">10</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pan2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pink-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">p</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">ti-rand</span><span class="hspace"> </span><span class="RktVal">4</span><span class="hspace"> </span><span class="RktVal">12</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dust</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">10</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">150</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.186<tt> </tt><a name="(part.__lf-noise0_rate_freq_)"></a>(lf-noise0 rate freq)</h4><p>(lf-noise1 rate freq)
|
|
(lf-noise2 rate freq)</p><p>lf-noise0 is step noise. Generates random values at a rate given by
|
|
the nearest integer division of the sample rate by the freq
|
|
argument.</p><p>lf-noise1 is ramp noise. Generates linearly interpolated random
|
|
values at a rate given by the nearest integer division of the
|
|
sample rate by the freq argument.</p><p>lf-noise2 is quadratic noise. Generates quadratically interpolated
|
|
random values at a rate given by the nearest integer division of
|
|
the sample rate by the freq argument.</p><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-noise0</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">1000</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.25</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-noise1</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">1000</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.25</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-noise2</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">1000</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.25</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><p>Modulate frequency.</p><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-noise0</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">1000</span><span class="hspace"> </span><span class="RktVal">10000</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.25</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-noise1</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">1000</span><span class="hspace"> </span><span class="RktVal">10000</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.25</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-noise2</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">1000</span><span class="hspace"> </span><span class="RktVal">10000</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.25</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><p>Use as frequency control.</p><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-noise0</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">4</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">400</span><span class="hspace"> </span><span class="RktVal">450</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-noise1</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">4</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">400</span><span class="hspace"> </span><span class="RktVal">450</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-noise2</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">4</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">400</span><span class="hspace"> </span><span class="RktVal">450</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><h4>2.187<tt> </tt><a name="(part.__pink-noise_rate_)"></a>(pink-noise rate)</h4><p>Generates noise whose spectrum falls off in power by 3 dB per
|
|
octave. This gives equal power over the span of each octave. This
|
|
version gives 8 octaves of pink noise.</p><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pink-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.25</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><h4>2.188<tt> </tt><a name="(part.__rand_lo_hi_)"></a>(rand lo hi)</h4><p>Generates a single random value in uniform distribution from lo to
|
|
hi. It generates this when the SynthDef first starts playing, and
|
|
remains fixed for the duration of the synth’s existence.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal">2</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">p</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rand</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-1</span></span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rand</span><span class="hspace"> </span><span class="RktVal">200</span><span class="hspace"> </span><span class="RktVal">1200</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pan2</span><span class="hspace"> </span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktSym">p</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.189<tt> </tt><a name="(part.__gray-noise_rate_)"></a>(gray-noise rate)</h4><p>Generates noise which results from flipping random bits in a word.
|
|
This type of noise has a high RMS level relative to its peak to
|
|
peak level. The spectrum is emphasized towards lower frequencies.</p><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">gray-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><h4>2.190<tt> </tt><a name="(part._.See_lfd-noise0)"></a>See lfd-noise0</h4><h4>2.191<tt> </tt><a name="(part.__i-rand_lo_hi_)"></a>(i-rand lo hi)</h4><p>Generates a single random integer value in uniform distribution
|
|
from ‘lo’ to ‘hi’.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">i-rand</span><span class="hspace"> </span><span class="RktVal">200</span><span class="hspace"> </span><span class="RktVal">1200</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.192<tt> </tt><a name="(part.__n-rand_lo_hi_n_)"></a>(n-rand lo hi n)</h4><p>Generates a single random float value in a sum of ‘n’ uniform
|
|
distributions from ‘lo’ to ‘hi’.</p><p>n = 1 : uniform distribution - same as rand
|
|
n = 2 : triangular distribution
|
|
n = 3 : smooth hump
|
|
as n increases, distribution converges towards gaussian</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">n-rand</span><span class="hspace"> </span><span class="RktVal">1200</span><span class="hspace"> </span><span class="RktVal">4000</span><span class="hspace"> </span><span class="RktVal">2</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktVal">5</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.01</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.193<tt> </tt><a name="(part.__lfdclip-noise_rate_freq_)"></a>(lfdclip-noise rate freq)</h4><p>Like lfclip-noise, it generates the values -1 or +1 at a rate given
|
|
by the freq argument, with two differences: no time quantization,
|
|
and fast recovery from low freq values.</p><p>(lfclip-noise, as well as lf-noise0,1,2 quantize to the nearest
|
|
integer division of the samplerate, and they poll the freq argument
|
|
only when scheduled, and thus seem to hang when freqs get very
|
|
low).</p><p>If you don’t need very high or very low freqs, or use fixed freqs,
|
|
lfclip-noise is more efficient.</p><p>Try wiggling mouse quickly; LFNoise frequently seems stuck,
|
|
LFDNoise changes smoothly.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lfclip-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal">1000</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">200</span><span class="hspace"> </span><span class="RktVal">500</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lfdclip-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal">1000</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">200</span><span class="hspace"> </span><span class="RktVal">500</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>LFNoise quantizes time steps at high freqs, LFDNoise does not:</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">1000</span><span class="hspace"> </span><span class="RktVal">20000</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lfclip-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">1000</span><span class="hspace"> </span><span class="RktVal">20000</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lfdclip-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.194<tt> </tt><a name="(part.__coin-gate_prob_in_)"></a>(coin-gate prob in)</h4><p>When it receives a trigger, it tosses a coin, and either passes the
|
|
trigger or doesn’t.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">t-rand</span><span class="hspace"> </span><span class="RktVal">300</span><span class="hspace"> </span><span class="RktVal">400</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">Coingate</span><span class="hspace"> </span><span class="RktVal">0.8</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">p</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">20</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">t*</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">t-exp-rand</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">Mce</span><span class="hspace"> </span><span class="RktVal">1000</span><span class="hspace"> </span><span class="RktVal">1000</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">12000</span><span class="hspace"> </span><span class="RktSym">t</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">Coingate</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">+</span></span></span><span class="hspace"> </span><span class="RktSym">p</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rand</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">ringz</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">i</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">t*</span><span class="hspace"> </span><span class="RktVal">0.01</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">ignore</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">_</span></span></span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mix/fill</span><span class="hspace"> </span><span class="RktVal">3</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">ignore</span><span class="hspace"> </span><span class="RktSym">s</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.195<tt> </tt><a name="(part.__t-exp-rand_lo_hi_trig_)"></a>(t-exp-rand lo hi trig)</h4><p>Generates a random float value in exponential distribution from lo
|
|
to hi each time the trig signal changes from nonpositive to
|
|
positive values lo and hi must both have the same sign and be
|
|
non-zero.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dust</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">10</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">t-exp-rand</span><span class="hspace"> </span><span class="RktVal">300</span><span class="hspace"> </span><span class="RktVal">3000</span><span class="hspace"> </span><span class="RktSym">t</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.196<tt> </tt><a name="(part.__t-rand_lo_hi_trig_)"></a>(t-rand lo hi trig)</h4><p>Generates a random float value in uniform distribution from lo each
|
|
time the trig signal changes from nonpositive to positive values</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dust</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktVal">5</span><span class="hspace"> </span><span class="RktVal">12</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">t-rand</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktVal">200</span><span class="hspace"> </span><span class="RktVal">1600</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktVal">500</span><span class="hspace"> </span><span class="RktVal">3000</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">t</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.197<tt> </tt><a name="(part.__white-noise_rate_)"></a>(white-noise rate)</h4><p>Generates noise whose spectrum has equal power at all frequencies.</p><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">white-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.15</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><p>Noise generators constructors are unique, to share noise UGens
|
|
values must be explictly stored and reused.</p><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sub</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">white-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">white-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.15</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">n</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">white-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sub</span><span class="hspace"> </span><span class="RktSym">n</span><span class="hspace"> </span><span class="RktSym">n</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.198<tt> </tt><a name="(part.__dust2_rate_density_)"></a>(dust2 rate density)</h4><p>Generates random impulses from -1 to +1. The ‘density’ is in
|
|
impulses per second.</p><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dust2</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">200</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">r</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">20000</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dust2</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">r</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.199<tt> </tt><a name="(part._.See_lfd-noise0)"></a>See lfd-noise0</h4><h4>2.200<tt> </tt><a name="(part.__rand-id_rate_id_)"></a>(rand-id rate id)</h4><p>Choose which random number generator to use for this synth. All
|
|
synths that use the same generator reproduce the same sequence of
|
|
numbers when the same seed is set again.</p><p>See also: rand-seed.</p><p>Graphs to generate noise in the context of a given RNG and to reset
|
|
a specified RNG.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">send-synth</span></td></tr><tr><td><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktVal">"r"</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">letc</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">bus</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">id</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mrg2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rand-id</span><span class="hspace"> </span><span class="RktSym">ir</span><span class="hspace"> </span><span class="RktSym">id</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktSym">bus</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">white-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.05</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dust2</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">70</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">send-synth</span></td></tr><tr><td><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktVal">"s"</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">letc</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">seed</span><span class="hspace"> </span><span class="RktVal">1910</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">id</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mrg2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rand-id</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktSym">id</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rand-seed</span><span class="hspace"> </span><span class="RktSym">kr</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">11</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktSym">seed</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Start two noise synths on left and right channel with a different randgen id</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">send</span></span></span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">s-new2</span><span class="hspace"> </span><span class="RktVal">"r"</span><span class="hspace"> </span><span class="RktVal">1001</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">"bus"</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">"id"</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">send</span></span></span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">s-new2</span><span class="hspace"> </span><span class="RktVal">"r"</span><span class="hspace"> </span><span class="RktVal">1002</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">"bus"</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">"id"</span><span class="hspace"> </span><span class="RktVal">2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Reset the seed of randgen 1</p><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">with-sc3</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">send</span></span></span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">s-new1</span><span class="hspace"> </span><span class="RktVal">"s"</span><span class="hspace"> </span><span class="RktVal">1003</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">"id"</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><p>Change the target RNG with ID 2, ie. effect right channel.</p><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">with-sc3</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">send</span></span></span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">n-set1</span><span class="hspace"> </span><span class="RktVal">1003</span><span class="hspace"> </span><span class="RktVal">"id"</span><span class="hspace"> </span><span class="RktVal">2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><p>free noise nodes.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">send</span></span></span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">n-free1</span><span class="hspace"> </span><span class="RktVal">1001</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">send</span></span></span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">n-free1</span><span class="hspace"> </span><span class="RktVal">1002</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">send</span></span></span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">n-free1</span><span class="hspace"> </span><span class="RktVal">1003</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.201<tt> </tt><a name="(part._.See_lf-noise0)"></a>See lf-noise0</h4><h4>2.202<tt> </tt><a name="(part.__mantissa-mask_in_bits_)"></a>(mantissa-mask in bits)</h4><p>Masks off bits in the mantissa of the floating point sample
|
|
value. This introduces a quantization noise, but is less severe
|
|
than linearly quantizing the signal.</p><p>in - input signal
|
|
bits - the number of mantissa bits to preserve. a number from 0 to 23.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">400</span><span class="hspace"> </span><span class="RktVal">500</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.4</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mantissa-mask</span><span class="hspace"> </span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktVal">3</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.203<tt> </tt><a name="(part.__dust_rate_density_)"></a>(dust rate density)</h4><p>Generates random impulses from 0 to +1 at a rate determined by the
|
|
density argument.</p><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dust</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">200</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">r</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">20000</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dust</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">r</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.204<tt> </tt><a name="(part.__lin-rand_lo_hi_minmax_)"></a>(lin-rand lo hi minmax)</h4><p>Generates a single random float value in linear distribution from
|
|
lo to hi, skewed towards lo if minmax < 0, otherwise skewed towards
|
|
hi.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lin-rand</span><span class="hspace"> </span><span class="RktVal">200</span><span class="hspace"> </span><span class="RktVal">10000</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-1</span></span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.4</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.01</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.205<tt> </tt><a name="(part.__exp-rand_lo_hi_)"></a>(exp-rand lo hi)</h4><p>Generates a single random float value in an exponential
|
|
distributions from ‘lo’ to ‘hi’.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">exp-rand</span><span class="hspace"> </span><span class="RktVal">100</span><span class="hspace"> </span><span class="RktVal">8000</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.01</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.206<tt> </tt><a name="(part.__brown-noise_rate_)"></a>(brown-noise rate)</h4><p>Generates noise whose spectrum falls off in power by 6 dB per
|
|
octave.</p><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">brown-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><h4>2.207<tt> </tt><a name="(part.__u_log_a_)"></a>(u:log a)</h4><p>Reciprocal.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">line</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-2</span></span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">u:log</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktSym">b</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">600</span><span class="hspace"> </span><span class="RktVal">900</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.208<tt> </tt><a name="(part.__frac_a_)"></a>(frac a)</h4><p>Fractional part.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">line</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-2</span></span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktVal">3</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">frac</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktSym">b</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">600</span><span class="hspace"> </span><span class="RktVal">900</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.209<tt> </tt><a name="(part.__arc-tan_a_)"></a>(arc-tan a)</h4><p>Arc tan.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-1</span></span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sub</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fdiv</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">arc-tan</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">/</span></span></span><span class="hspace"> </span><span class="RktSym"><span class="badlink"><span class="RktValLink">pi</span></span></span><span class="hspace"> </span><span class="RktVal">2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktVal">900</span><span class="hspace"> </span><span class="RktVal">1600</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.210<tt> </tt><a name="(part.__distort_a_)"></a>(distort a)</h4><p>Nonlinear distortion.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">distort</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">500</span><span class="hspace"> </span><span class="RktVal">0.0</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktSym">do-nothing</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0.25</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.211<tt> </tt><a name="(part.__tan-h_a_)"></a>(tan-h a)</h4><p>Tangent.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">-</span></span></span><span class="hspace"> </span><span class="RktSym"><span class="badlink"><span class="RktValLink">pi</span></span></span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym"><span class="badlink"><span class="RktValLink">pi</span></span></span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sub</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fdiv</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">tan-h</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">/</span></span></span><span class="hspace"> </span><span class="RktSym"><span class="badlink"><span class="RktValLink">pi</span></span></span><span class="hspace"> </span><span class="RktVal">2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktVal">900</span><span class="hspace"> </span><span class="RktVal">1600</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.212<tt> </tt><a name="(part.__u_floor_a_)"></a>(u:floor a)</h4><p>Round signal down.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">65</span><span class="hspace"> </span><span class="RktVal">95</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">midi-cps</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">u:floor</span><span class="hspace"> </span><span class="RktSym">x</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.213<tt> </tt><a name="(part.__cps-oct_a_)"></a>(cps-oct a)</h4><p>Convert cycles per second to decimal octaves.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">oct-cps</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">cps-oct</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">600</span><span class="hspace"> </span><span class="RktVal">900</span><span class="hspace"> </span><span class="RktVal">6</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">saw</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.214<tt> </tt><a name="(part.__db-amp_a_)"></a>(db-amp a)</h4><p>Convert decibels to linear amplitude.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">800</span><span class="hspace"> </span><span class="RktVal">0.0</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">db-amp</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-3</span></span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-4</span>0</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.215<tt> </tt><a name="(part.__u_sqrt_a_)"></a>(u:sqrt a)</h4><p>Square root. The definition of square root is extended for signals
|
|
so that sqrt(a) when a<0 returns -sqrt(-a).</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">line</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-2</span></span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktVal">3</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">u:sqrt</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktSym">b</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">600</span><span class="hspace"> </span><span class="RktVal">900</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.216<tt> </tt><a name="(part.__soft-clip_a_)"></a>(soft-clip a)</h4><p>Nonlinear distortion. Distortion with a perfectly linear region
|
|
from -0.5 to +0.5.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">soft-clip</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">500</span><span class="hspace"> </span><span class="RktVal">0.0</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktSym">do-nothing</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0.25</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.217<tt> </tt><a name="(part.__cps-midi_a_)"></a>(cps-midi a)</h4><p>Convert cycles per second to MIDI note.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">600</span><span class="hspace"> </span><span class="RktVal">900</span><span class="hspace"> </span><span class="RktVal">5</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">saw</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">midi-cps</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">cps-midi</span><span class="hspace"> </span><span class="RktSym">f</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.218<tt> </tt><a name="(part.__is-strictly-positive_a_)"></a>(is-strictly-positive a)</h4><p>Predicate to determine if a value is strictly positive.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">define</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">is-strictly-positive</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">gt</span><span class="hspace"> </span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktVal">0.0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">line</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-1</span></span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">is-strictly-positive</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktSym">b</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">600</span><span class="hspace"> </span><span class="RktVal">900</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.219<tt> </tt><a name="(part.__u_tan_a_)"></a>(u:tan a)</h4><p>Tangent.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">-</span></span></span><span class="hspace"> </span><span class="RktSym"><span class="badlink"><span class="RktValLink">pi</span></span></span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym"><span class="badlink"><span class="RktValLink">pi</span></span></span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sub</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fdiv</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">u:tan</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">/</span></span></span><span class="hspace"> </span><span class="RktSym"><span class="badlink"><span class="RktValLink">pi</span></span></span><span class="hspace"> </span><span class="RktVal">2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktVal">900</span><span class="hspace"> </span><span class="RktVal">1600</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.220<tt> </tt><a name="(part.__cos-h_a_)"></a>(cos-h a)</h4><p>Cosine.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">-</span></span></span><span class="hspace"> </span><span class="RktSym"><span class="badlink"><span class="RktValLink">pi</span></span></span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym"><span class="badlink"><span class="RktValLink">pi</span></span></span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sub</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fdiv</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">cos-h</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">/</span></span></span><span class="hspace"> </span><span class="RktSym"><span class="badlink"><span class="RktValLink">pi</span></span></span><span class="hspace"> </span><span class="RktVal">2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktVal">900</span><span class="hspace"> </span><span class="RktVal">1600</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.221<tt> </tt><a name="(part.__amp-db_a_)"></a>(amp-db a)</h4><p>Convert linear amplitude to decibels.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">800</span><span class="hspace"> </span><span class="RktVal">0.0</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">db-amp</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">amp-db</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="hspace"> </span><span class="RktVal">0.0</span><span class="hspace"> </span><span class="RktVal">5</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-6</span>0</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">db-amp</span><span class="hspace"> </span><span class="RktSym">x</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">600</span><span class="hspace"> </span><span class="RktVal">900</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.222<tt> </tt><a name="(part.__abs_a_)"></a>(abs a)</h4><p>Absolute value.</p><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">u:abs</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sync-saw</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">100</span><span class="hspace"> </span><span class="RktVal">440</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><h4>2.223<tt> </tt><a name="(part.__log10_a_)"></a>(log10 a)</h4><p>Base ten logarithm.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">line</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-2</span></span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktVal">3</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">log10</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktSym">b</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">600</span><span class="hspace"> </span><span class="RktVal">900</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.224<tt> </tt><a name="(part.__midi-cps_a_)"></a>(midi-cps a)</h4><p>Convert MIDI note to cycles per second.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">saw</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">midi-cps</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">24</span><span class="hspace"> </span><span class="RktVal">108</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.225<tt> </tt><a name="(part.__is-positive_a_)"></a>(is-positive a)</h4><p>Predicate to determine if a value is positive.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">define</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">is-positive</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">ge</span><span class="hspace"> </span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktVal">0.0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">line</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-1</span></span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">is-positive</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktSym">b</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">600</span><span class="hspace"> </span><span class="RktVal">900</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.226<tt> </tt><a name="(part.__sign_a_)"></a>(sign a)</h4><p>Sign function. -1 when a < 0, +1 when a > 0, 0 when a is 0</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">line</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-1</span></span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sign</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktSym">b</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">600</span><span class="hspace"> </span><span class="RktVal">900</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.227<tt> </tt><a name="(part.__neg_a_)"></a>(neg a)</h4><p>Negation.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">440</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">add</span><span class="hspace"> </span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">neg</span><span class="hspace"> </span><span class="RktSym">s</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.228<tt> </tt><a name="(part.__log2_a_)"></a>(log2 a)</h4><p>Base two logarithm.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">line</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-2</span></span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktVal">3</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">log2</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktSym">b</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">600</span><span class="hspace"> </span><span class="RktVal">900</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.229<tt> </tt><a name="(part.__ceil_a_)"></a>(ceil a)</h4><p>Round signal up.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">65</span><span class="hspace"> </span><span class="RktVal">95</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">midi-cps</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">u:floor</span><span class="hspace"> </span><span class="RktSym">x</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">ceil</span><span class="hspace"> </span><span class="RktSym">x</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.230<tt> </tt><a name="(part.__arc-cos_a_)"></a>(arc-cos a)</h4><p>Arc cosine.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-1</span></span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sub</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fdiv</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">arc-cos</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">/</span></span></span><span class="hspace"> </span><span class="RktSym"><span class="badlink"><span class="RktValLink">pi</span></span></span><span class="hspace"> </span><span class="RktVal">2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktVal">900</span><span class="hspace"> </span><span class="RktVal">1600</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.231<tt> </tt><a name="(part.__exp_a_)"></a>(exp a)</h4><p>Exponential.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">line</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-2</span></span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktVal">3</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">u:exp</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktSym">b</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">600</span><span class="hspace"> </span><span class="RktVal">900</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.232<tt> </tt><a name="(part.__squared_a_)"></a>(squared a)</h4><p>Square.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">line</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-2</span></span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktVal">3</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">squared</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktSym">b</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">600</span><span class="hspace"> </span><span class="RktVal">900</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.233<tt> </tt><a name="(part.__arc-sin_a_)"></a>(arc-sin a)</h4><p>Arc sine.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-1</span></span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sub</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fdiv</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">arc-sin</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">/</span></span></span><span class="hspace"> </span><span class="RktSym"><span class="badlink"><span class="RktValLink">pi</span></span></span><span class="hspace"> </span><span class="RktVal">2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktVal">900</span><span class="hspace"> </span><span class="RktVal">1600</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.234<tt> </tt><a name="(part.__cubed_a_)"></a>(cubed a)</h4><p>Cube.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">line</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-2</span></span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktVal">3</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">cubed</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktSym">b</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">600</span><span class="hspace"> </span><span class="RktVal">900</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.235<tt> </tt><a name="(part.__is-negative_a_)"></a>(is-negative a)</h4><p>Predicate to determine if a value is negative.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">define</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">is-negative</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lt</span><span class="hspace"> </span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktVal">0.0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">line</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-1</span></span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">is-negative</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktSym">b</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">600</span><span class="hspace"> </span><span class="RktVal">900</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.236<tt> </tt><a name="(part.__oct-cps_a_)"></a>(oct-cps a)</h4><p>Convert decimal octaves to cycles per second.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">oct-cps</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktVal">9</span><span class="hspace"> </span><span class="RktVal">6</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">saw</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">oct-cps</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">u:round</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktVal">9</span><span class="hspace"> </span><span class="RktVal">6</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">/</span></span></span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">12</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">saw</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.237<tt> </tt><a name="(part.__u_sin_a_)"></a>(u:sin a)</h4><p>Sine.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">-</span></span></span><span class="hspace"> </span><span class="RktSym"><span class="badlink"><span class="RktValLink">pi</span></span></span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym"><span class="badlink"><span class="RktValLink">pi</span></span></span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sub</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fdiv</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">u:sin</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">/</span></span></span><span class="hspace"> </span><span class="RktSym"><span class="badlink"><span class="RktValLink">pi</span></span></span><span class="hspace"> </span><span class="RktVal">2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktVal">900</span><span class="hspace"> </span><span class="RktVal">1600</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.238<tt> </tt><a name="(part.__sin-h_a_)"></a>(sin-h a)</h4><p>Sine.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">-</span></span></span><span class="hspace"> </span><span class="RktSym"><span class="badlink"><span class="RktValLink">pi</span></span></span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym"><span class="badlink"><span class="RktValLink">pi</span></span></span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sub</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fdiv</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-h</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">/</span></span></span><span class="hspace"> </span><span class="RktSym"><span class="badlink"><span class="RktValLink">pi</span></span></span><span class="hspace"> </span><span class="RktVal">2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktVal">900</span><span class="hspace"> </span><span class="RktVal">1600</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.239<tt> </tt><a name="(part.__cos_a_)"></a>(cos a)</h4><p>Cosine.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">-</span></span></span><span class="hspace"> </span><span class="RktSym"><span class="badlink"><span class="RktValLink">pi</span></span></span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym"><span class="badlink"><span class="RktValLink">pi</span></span></span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sub</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fdiv</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">u:cos</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">/</span></span></span><span class="hspace"> </span><span class="RktSym"><span class="badlink"><span class="RktValLink">pi</span></span></span><span class="hspace"> </span><span class="RktVal">2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktVal">900</span><span class="hspace"> </span><span class="RktVal">1600</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.240<tt> </tt><a name="(part.__pv-mul_buffer.A_buffer.B_)"></a>(pv-mul bufferA bufferB)</h4><h4>2.241<tt> </tt><a name="(part.__pv-mag-squared_buffer_)"></a>(pv-mag-squared buffer)</h4><h4>2.242<tt> </tt><a name="(part.__pv-min_buffer.A_buffer.B_)"></a>(pv-min bufferA bufferB)</h4><h4>2.243<tt> </tt><a name="(part.__pv-mag-noise_buffer_)"></a>(pv-mag-noise buffer)</h4><p>Magnitudes are multiplied with noise.</p><p>buffer - fft buffer.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-alloc</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">2048</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-alloc-read</span><span class="hspace"> </span><span class="RktVal">12</span><span class="hspace"> </span><span class="RktVal">"/home/rohan/audio/metal.wav"</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">play-buf</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">12</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">buf-rate-scale</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">12</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fft*</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">h</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pv-mag-noise</span><span class="hspace"> </span><span class="RktSym">f</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">ifft*</span><span class="hspace"> </span><span class="RktSym">h</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.244<tt> </tt><a name="(part.__pv-mag-below_buffer_threshold_)"></a>(pv-mag-below buffer threshold)</h4><p>Pass bins below a threshold. Pass only bands where the magnitude
|
|
is below ‘threshold’. This value is not normalized and is
|
|
therefore dependant on the buffer size.</p><p>See pv-mag-above</p><h4>2.245<tt> </tt><a name="(part.__convolution_in_kernel_framesize_)"></a>(convolution in kernel framesize)</h4><p>Strict convolution of two continuously changing inputs. Also see
|
|
[convolution2] for a cheaper CPU cost alternative for the case of a
|
|
fixed kernel which can be changed with a trigger message.</p><p>in - processing target
|
|
kernel - processing kernel.
|
|
framesize - size of fft frame, must be a power of two</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">input</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sound-in</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">kernel</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">white-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">convolution</span><span class="hspace"> </span><span class="RktSym">input</span><span class="hspace"> </span><span class="RktSym">kernel</span><span class="hspace"> </span><span class="RktVal">2048</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktVal">2048</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-alloc</span><span class="hspace"> </span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">send</span></span></span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-set1</span><span class="hspace"> </span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1.0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">replicate-m</span><span class="hspace"> </span><span class="RktVal">100</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">send</span></span></span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-set1</span><span class="hspace"> </span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">random-integer</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">random</span></span></span><span class="hspace"> </span><span class="RktVal">0.0</span><span class="hspace"> </span><span class="RktVal">1.0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">play</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">convolution</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sound-in</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">play-buf</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">buf-rate-scale</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktSym">b</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">*</span></span></span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.246<tt> </tt><a name="(part.__pv-jensen-andersen_buffer_propsc_prophfe_prophfc_propsf_threshold_waittime_)"></a>(pv-jensen-andersen buffer propsc prophfe prophfc propsf threshold waittime)</h4><p>fft feature detector for onset detection based on work described in
|
|
Jensen,K. & Andersen, T. H. (2003). Real-time Beat Estimation Using
|
|
Feature Extraction. in Proceedings of the Computer Music Modeling and
|
|
Retrieval Symposium, Lecture Notes in Computer Science. springer
|
|
Verlag.</p><p>First order derivatives of the features are taken. Threshold may
|
|
need to be set low to pick up on changes.</p><p>buffer - fft buffer to read from.
|
|
propsc - Proportion of spectral centroid feature.
|
|
prophfe - Proportion of high frequency energy feature.
|
|
prophfc - Proportion of high frequency content feature.
|
|
propsf - Proportion of spectral flux feature.
|
|
threshold - Threshold level for allowing a detection
|
|
waittime - If triggered, minimum wait until a further frame can
|
|
cause another spot (useful to stop multiple detects on
|
|
heavy signals)</p><p>Default values in sclang are: propsc=0.25, prophfe=0.25,
|
|
prophfc=0.25, propsf=0.25, threshold=1.0, waittime=0.04.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-alloc</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">2048</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">source</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sound-in</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">detect</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pv-jensen-andersen</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fft*</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktSym">source</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0.25</span><span class="hspace"> </span><span class="RktVal">0.25</span><span class="hspace"> </span><span class="RktVal">0.25</span><span class="hspace"> </span><span class="RktVal">0.25</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.01</span><span class="hspace"> </span><span class="RktVal">1.0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0.04</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktVal">440</span><span class="hspace"> </span><span class="RktVal">445</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">decay</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktSym">detect</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.247<tt> </tt><a name="(part.__pv-phase-shift270_buffer_)"></a>(pv-phase-shift270 buffer)</h4><p>Swap the real and imaginary components of every bin at ‘buffer’ and
|
|
swap the sign of the real components.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-alloc</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">2048</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">n</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">white-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">ifft*</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pv-phase-shift270</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fft*</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktSym">n</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.248<tt> </tt><a name="(part.__pv-hainsworth-foote_buffer_proph_propf_threshold_waittime_)"></a>(pv-hainsworth-foote buffer proph propf threshold waittime)</h4><p>fft onset detector based on work described in</p><p>Hainsworth, S. (2003) Techniques for the Automated Analysis of
|
|
Musical Audio. PhD, University of Cambridge engineering dept. See
|
|
especially p128. The Hainsworth metric is a modification of the
|
|
Kullback Liebler distance.</p><p>The onset detector has general ability to spot spectral change, so
|
|
may have some ability to track chord changes aside from obvious
|
|
transient jolts, but there’s no guarantee it won’t be confused by
|
|
frequency modulation artifacts.</p><p>Hainsworth metric on it’s own gives good results but Foote might be
|
|
useful in some situations: experimental.</p><p>buffer - fft buffer to read from</p><p>proph - What strength of detection signal from Hainsworth metric to use.</p><p>propf - What strength of detection signal from Foote metric to
|
|
use. The Foote metric is normalised to [0.0,1.0]</p><p>threshold - Threshold hold level for allowing a detection</p><p>waittime - If triggered, minimum wait until a further frame can
|
|
cause another spot (useful to stop multiple detects on
|
|
heavy signals)</p><p>Default values in sclang are: proph=0.0, propf=0.0, threshold=1.0,
|
|
waittime=0.04.</p><p>–</p><p>Just Hainsworth metric with low threshold</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-alloc</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">2048</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">source</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sound-in</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">detect</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pv-hainsworth-foote</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fft*</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktSym">source</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">1.0</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0.0</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.01</span><span class="hspace"> </span><span class="RktVal">1.0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0.04</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul3</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktVal">440</span><span class="hspace"> </span><span class="RktVal">445</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">decay</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktSym">detect</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Just Hainsworth metric, spot note transitions.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">src</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-saw</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-noise0</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">90</span><span class="hspace"> </span><span class="RktVal">400</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dtc</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pv-hainsworth-foote</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fft*</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktSym">src</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">1.0</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0.0</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0.9</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">cmp</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">440</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">decay</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktSym">dtc</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktSym">src</span><span class="hspace"> </span><span class="RktSym">cmp</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Just Foote metric. Foote never triggers with threshold over 1.0,
|
|
threshold under mouse control.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">src</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sound-in</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dtc</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pv-hainsworth-foote</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fft*</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktSym">src</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0.0</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">1.0</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.0</span><span class="hspace"> </span><span class="RktVal">1.1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0.02</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">cmp</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">440</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">decay</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktSym">dtc</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktSym">src</span><span class="hspace"> </span><span class="RktSym">cmp</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.249<tt> </tt><a name="(part.__pv-phase-shift_buffer_shift_)"></a>(pv-phase-shift buffer shift)</h4><p>add ‘shift’ to the phase component of every bin at ‘buffer’.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-alloc</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">2048</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">n</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">white-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">ifft*</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pv-phase-shift</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fft*</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktSym">n</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">x</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.250<tt> </tt><a name="(part.__pv-copy_buffer.A_buffer.B_)"></a>(pv-copy bufferA bufferB)</h4><p>Copies the spectral frame in bufferA to bufferB at that point in
|
|
the chain of PV UGens. This allows for parallel processing of
|
|
spectral data without the need for multiple fft UGens, and to copy
|
|
out data at that point in the chain for other purposes. bufferA and
|
|
bufferB must be the same size.</p><p>bufferA - source buffer.
|
|
bufferB - destination buffer.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-alloc</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">2048</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-alloc</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">2048</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Proof of concept, silence</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">in</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lfclip-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">100</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">c0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fft*</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktSym">in</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">c1</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pv-copy</span><span class="hspace"> </span><span class="RktSym">c0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sub</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">ifft*</span><span class="hspace"> </span><span class="RktSym">c0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">ifft*</span><span class="hspace"> </span><span class="RktSym">c1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.251<tt> </tt><a name="(part.__pv-brick-wall_buffer_wipe_)"></a>(pv-brick-wall buffer wipe)</h4><p>Clears bins above or below a cutoff point. ‘wipe’ = a unit signal,
|
|
from -1 to 0 the UGen acts as a low-pass filter, from 0 to 1 it
|
|
acts as a high pass filter.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-alloc</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">2048</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-1</span></span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">c</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fft*</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">white-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">ifft*</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pv-brick-wall</span><span class="hspace"> </span><span class="RktSym">c</span><span class="hspace"> </span><span class="RktSym">x</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.252<tt> </tt><a name="(part.__pv-mag-smear_buffer_bins_)"></a>(pv-mag-smear buffer bins)</h4><p>Average a bin’s magnitude with its neighbors.</p><p>buffer - fft buffer.</p><p>bins - number of bins to average on each side of bin.
|
|
As this number rises, so will CPU usage.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-alloc</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">2048</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-alloc-read</span><span class="hspace"> </span><span class="RktVal">12</span><span class="hspace"> </span><span class="RktVal">"/home/rohan/audio/metal.wav"</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">dup</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">a</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">in</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-saw</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">500</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">decay2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.01</span><span class="hspace"> </span><span class="RktVal">2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">c0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fft*</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktSym">in</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">c1</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pv-mag-smear</span><span class="hspace"> </span><span class="RktSym">c0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">100</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dup</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">ifft*</span><span class="hspace"> </span><span class="RktSym">c1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">dup</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">a</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">play-buf</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">12</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">buf-rate-scale</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">12</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">100</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dup</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">ifft*</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pv-mag-smear</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fft*</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktSym">s</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">x</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.253<tt> </tt><a name="(part.__pv-mag-above_buffer_threshold_)"></a>(pv-mag-above buffer threshold)</h4><p>Pass only bands where the magnitude is above ‘threshold’. This
|
|
value is not normalized and is therefore dependant on the buffer
|
|
size.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-alloc</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">2048</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-alloc</span><span class="hspace"> </span><span class="RktVal">11</span><span class="hspace"> </span><span class="RktVal">2048</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-alloc-read</span><span class="hspace"> </span><span class="RktVal">12</span><span class="hspace"> </span><span class="RktVal">"/home/rohan/audio/metal.wav"</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">play-buf</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">12</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">buf-rate-scale</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">12</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">100</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">y</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-y</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">c1</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fft*</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">c2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pv-copy</span><span class="hspace"> </span><span class="RktSym">c1</span><span class="hspace"> </span><span class="RktVal">11</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">c3</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pv-mag-below</span><span class="hspace"> </span><span class="RktSym">c1</span><span class="hspace"> </span><span class="RktSym">x</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">c4</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pv-mag-above</span><span class="hspace"> </span><span class="RktSym">c2</span><span class="hspace"> </span><span class="RktSym">x</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">ifft*</span><span class="hspace"> </span><span class="RktSym">c3</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">ifft*</span><span class="hspace"> </span><span class="RktSym">c4</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktSym">y</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sub</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktSym">y</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">f1</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">squared</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.08</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">6</span><span class="hspace"> </span><span class="RktVal">6.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktSym">f1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">100</span><span class="hspace"> </span><span class="RktVal">800</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f2</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">1024</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">y</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-y</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">c1</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fft*</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktSym">s</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">c2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pv-copy</span><span class="hspace"> </span><span class="RktSym">c1</span><span class="hspace"> </span><span class="RktVal">11</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">c3</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pv-mag-below</span><span class="hspace"> </span><span class="RktSym">c1</span><span class="hspace"> </span><span class="RktSym">x</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">c4</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pv-mag-above</span><span class="hspace"> </span><span class="RktSym">c2</span><span class="hspace"> </span><span class="RktSym">x</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">ifft*</span><span class="hspace"> </span><span class="RktSym">c3</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">ifft*</span><span class="hspace"> </span><span class="RktSym">c4</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktSym">y</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sub</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktSym">y</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.254<tt> </tt><a name="(part.__pv-bin-shift_buffer_stretch_shift_)"></a>(pv-bin-shift buffer stretch shift)</h4><p>Shift and scale the positions of the bins. Can be used as a very
|
|
crude frequency shifter/scaler. Shifts the leftmost bin at
|
|
‘buffer’ by ‘shift’ places, the distance between subsequent bins is
|
|
‘stretch’.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-alloc</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">2048</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">define</span></span></span><span class="hspace"> </span><span class="RktSym">snd</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">f1</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">squared</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.08</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">6</span><span class="hspace"> </span><span class="RktVal">6.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktSym">f1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktSym">f2</span><span class="hspace"> </span><span class="RktVal">100</span><span class="hspace"> </span><span class="RktVal">800</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktSym">snd</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">ifft*</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pv-bin-shift</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fft*</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktSym">snd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-y</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">4</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-1</span>0</span><span class="hspace"> </span><span class="RktVal">100</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">1/2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.255<tt> </tt><a name="(part.__fft_buffer_in_hop_wintype_active_)"></a>(fft buffer in hop wintype active)</h4><p>(fft* b i) => (fft b i 0.5 0 1)</p><p>Fast fourier transform. The fast fourier transform analyzes the
|
|
frequency content of a signal. fft uses a local buffer for holding
|
|
the buffered audio. The inverse transform, Ifft, reconstructs an
|
|
audio signal.</p><p>Note that the UGens the SC3 language provides do not use rate
|
|
extensions, since only a single rate is valid for each UGen class.
|
|
The fft and PV_ UGens must run at control rate, the ifft UGen at
|
|
audio rate.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-alloc</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">2048</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">white-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.05</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">c</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fft*</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktSym">s</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">ifft*</span><span class="hspace"> </span><span class="RktSym">c</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">f1</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">Squared</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.08</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">6</span><span class="hspace"> </span><span class="RktVal">6.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktSym">f1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">100</span><span class="hspace"> </span><span class="RktVal">800</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f2</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">ifft*</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fft*</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktSym">s</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.256<tt> </tt><a name="(part.__pv-bin-wipe_buffer.A_buffer.B_wipe_)"></a>(pv-bin-wipe bufferA bufferB wipe)</h4><p>Combine low and high bins from two inputs</p><p>Copies low bins from one input and the high bins of the other.</p><p>bufferA - fft buffer A.
|
|
bufferB - fft buffer B.
|
|
wipe - can range between -1 and +1.</p><p>if wipe == 0 then the output is the same as inA.
|
|
if wipe > 0 then it begins replacing with bins from inB from the bottom up.
|
|
if wipe < 0 then it begins replacing with bins from inB from the top down.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-alloc</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">2048</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-alloc</span><span class="hspace"> </span><span class="RktVal">11</span><span class="hspace"> </span><span class="RktVal">2048</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-alloc-read</span><span class="hspace"> </span><span class="RktVal">12</span><span class="hspace"> </span><span class="RktVal">"/home/rohan/audio/metal.wav"</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">white-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">100</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fft*</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">g</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fft*</span><span class="hspace"> </span><span class="RktVal">11</span><span class="hspace"> </span><span class="RktSym">b</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">h</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pv-bin-wipe</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktSym">g</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-1</span></span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">ifft*</span><span class="hspace"> </span><span class="RktSym">h</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">white-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">play-buf</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">12</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">buf-rate-scale</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">12</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fft*</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">g</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fft*</span><span class="hspace"> </span><span class="RktVal">11</span><span class="hspace"> </span><span class="RktSym">b</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">h</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pv-bin-wipe</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktSym">g</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-1</span></span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">ifft*</span><span class="hspace"> </span><span class="RktSym">h</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.257<tt> </tt><a name="(part.__pv-copy.Phase_buffer.A_buffer.B_)"></a>(pv-copyPhase bufferA bufferB)</h4><p>Combines magnitudes of first input and phases of the second input.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-alloc</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">2048</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-alloc</span><span class="hspace"> </span><span class="RktVal">11</span><span class="hspace"> </span><span class="RktVal">2048</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-alloc-read</span><span class="hspace"> </span><span class="RktVal">12</span><span class="hspace"> </span><span class="RktVal">"/home/rohan/audio/metal.wav"</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">white-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">100</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fft*</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">g</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fft*</span><span class="hspace"> </span><span class="RktVal">11</span><span class="hspace"> </span><span class="RktSym">b</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">h</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pv-copy-phase</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktSym">g</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">ifft*</span><span class="hspace"> </span><span class="RktSym">h</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">white-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">play-buf</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">12</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">buf-rate-scale</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">12</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fft*</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">g</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fft*</span><span class="hspace"> </span><span class="RktVal">11</span><span class="hspace"> </span><span class="RktSym">b</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">h</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pv-copy-phase</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktSym">g</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">ifft*</span><span class="hspace"> </span><span class="RktSym">h</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.258<tt> </tt><a name="(part.__pv-phase-shift90_buffer_)"></a>(pv-phase-shift90 buffer)</h4><p>Swap the real and imaginary components of every bin at ‘buffer’ and
|
|
swap the of the imaginary components.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-alloc</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">2048</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">n</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">white-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">ifft*</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pv-phase-shift90</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fft*</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktSym">n</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.259<tt> </tt><a name="(part.__convolution2_in_bufnum_trigger_framesize_)"></a>(convolution2 in bufnum trigger framesize)</h4><p>Strict convolution with fixed kernel which can be updated using a
|
|
trigger signal.</p><p>in - processing target
|
|
bufnum - buffer index for the fixed kernel, may be modulated in
|
|
combination with the trigger
|
|
trigger - update the kernel on a change from <=0 to >0
|
|
framesize - size of fft frame, must be a power of two. convolution
|
|
uses twice this number internally, maximum value you
|
|
can give this argument is 2^16=65536. Note that it gets
|
|
progressively more expensive to run for higher powers!
|
|
512, 1024, 2048, 4096 standard.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">for-each</span></span></span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-alloc</span><span class="hspace"> </span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktVal">2048</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">list</span></span></span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">11</span><span class="hspace"> </span><span class="RktVal">12</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">for-each</span></span></span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">n</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">send</span></span></span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-set1</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">+</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">*</span></span></span><span class="hspace"> </span><span class="RktVal">400</span><span class="hspace"> </span><span class="RktSym">n</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">100</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">enum-from-to</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">2</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">for-each</span></span></span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">n</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">send</span></span></span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-set1</span><span class="hspace"> </span><span class="RktVal">11</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">+</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">*</span></span></span><span class="hspace"> </span><span class="RktVal">20</span><span class="hspace"> </span><span class="RktSym">n</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">10</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">random</span></span></span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">enum-from-to</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">49</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">for-each</span></span></span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">n</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">send</span></span></span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-set1</span><span class="hspace"> </span><span class="RktVal">12</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">+</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">*</span></span></span><span class="hspace"> </span><span class="RktVal">40</span><span class="hspace"> </span><span class="RktSym">n</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">20</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">enum-from-to</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">19</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">send-synth</span></td></tr><tr><td><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktVal">"c"</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">letc</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">k</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">convolution2</span><span class="hspace"> </span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktSym">k</span><span class="hspace"> </span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktVal">2048</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">define</span></span></span><span class="hspace"> </span><span class="RktSym">send-to</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">m</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">send</span></span></span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktSym">m</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">define</span></span></span><span class="hspace"> </span><span class="RktSym">async-to</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">m</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktSym">m</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">send-to</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">s-new1</span><span class="hspace"> </span><span class="RktVal">"c"</span><span class="hspace"> </span><span class="RktVal">1001</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">"k"</span><span class="hspace"> </span><span class="RktVal">10</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">send-to</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">n-set1</span><span class="hspace"> </span><span class="RktVal">1001</span><span class="hspace"> </span><span class="RktVal">"k"</span><span class="hspace"> </span><span class="RktVal">11</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">send-to</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">n-set1</span><span class="hspace"> </span><span class="RktVal">1001</span><span class="hspace"> </span><span class="RktVal">"t"</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">send-to</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">n-set1</span><span class="hspace"> </span><span class="RktVal">1001</span><span class="hspace"> </span><span class="RktVal">"t"</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">send-to</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">n-set1</span><span class="hspace"> </span><span class="RktVal">1001</span><span class="hspace"> </span><span class="RktVal">"k"</span><span class="hspace"> </span><span class="RktVal">12</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">send-to</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">n-set1</span><span class="hspace"> </span><span class="RktVal">1001</span><span class="hspace"> </span><span class="RktVal">"t"</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">send-to</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">n-set1</span><span class="hspace"> </span><span class="RktVal">1001</span><span class="hspace"> </span><span class="RktVal">"t"</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">async-to</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-zero</span><span class="hspace"> </span><span class="RktVal">12</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">for-each</span></span></span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">n</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">send-to</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-set1</span><span class="hspace"> </span><span class="RktVal">12</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">+</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">*</span></span></span><span class="hspace"> </span><span class="RktVal">20</span><span class="hspace"> </span><span class="RktSym">n</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">10</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">enum-from-to</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">39</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">send-to</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">n-set1</span><span class="hspace"> </span><span class="RktVal">1001</span><span class="hspace"> </span><span class="RktVal">"t"</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">send-to</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">n-set1</span><span class="hspace"> </span><span class="RktVal">1001</span><span class="hspace"> </span><span class="RktVal">"t"</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><p>With soundfile.</p><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">async-to</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-alloc-read</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">"/home/rohan/audio/metal.wav"</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sound-in</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">convolution2</span><span class="hspace"> </span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">512</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.260<tt> </tt><a name="(part.__pv-rect-comb2_buffer.A_buffer.B_num.Teeth_phase_width_)"></a>(pv-rect-comb2 bufferA bufferB numTeeth phase width)</h4><h4>2.261<tt> </tt><a name="(part.__pv-add_buffer.A_buffer.B_)"></a>(pv-add bufferA bufferB)</h4><p>Complex addition: RealA + RealB, ImagA + ImagB</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-alloc</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">2048</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-alloc</span><span class="hspace"> </span><span class="RktVal">11</span><span class="hspace"> </span><span class="RktVal">2048</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-alloc-read</span><span class="hspace"> </span><span class="RktVal">12</span><span class="hspace"> </span><span class="RktVal">"/home/rohan/audio/metal.wav"</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">play-buf</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">12</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">buf-rate-scale</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">12</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fft*</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">g</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fft*</span><span class="hspace"> </span><span class="RktVal">11</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">440</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">h</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pv-add</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktSym">g</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">ifft*</span><span class="hspace"> </span><span class="RktSym">h</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">play-buf</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">12</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">buf-rate-scale</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">12</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">440</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.262<tt> </tt><a name="(part.__pv-rand-comb_buffer_wipe_trig_)"></a>(pv-rand-comb buffer wipe trig)</h4><p>randomly clear bins.</p><p>buffer = fft buffer. wipe = clear bins from input in a random
|
|
order (0, 1). trig = select new random ordering.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-alloc</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">2048</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">dup</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">a</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">n</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">white-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.6</span><span class="hspace"> </span><span class="RktVal">0.95</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.4</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dup</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">ifft*</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pv-rand-comb</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fft*</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktSym">n</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktSym">t</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.263<tt> </tt><a name="(part.__pv-local-max_buffer_threshold_)"></a>(pv-local-max buffer threshold)</h4><p>Pass bins which are a local maximum</p><p>Passes only bins whose magnitude is above a threshold and above
|
|
their nearest neighbors.</p><p>buffer - fft buffer.
|
|
threshold - magnitude threshold.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-alloc</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">2048</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-alloc-read</span><span class="hspace"> </span><span class="RktVal">12</span><span class="hspace"> </span><span class="RktVal">"/home/rohan/audio/metal.wav"</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">play-buf</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">12</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">buf-rate-scale</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">12</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fft*</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">h</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pv-local-max</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">100</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">ifft*</span><span class="hspace"> </span><span class="RktSym">h</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.264<tt> </tt><a name="(part.__pv-mag-mul_buffer.A_buffer.B_)"></a>(pv-mag-mul bufferA bufferB)</h4><h4>2.265<tt> </tt><a name="(part.__pv-conformal-map_buffer_real_imag_)"></a>(pv-conformal-map buffer real imag)</h4><p>Applies the conformal mapping z send (z-a)/(1-za*) to the phase
|
|
vocoder bins z with a given by the real and imag imputs to the
|
|
UGen.</p><p>See http://mathworld.wolfram.com/ConformalMapping.html</p><p>buffer - buffer number of buffer to act on, passed in through a chain
|
|
real - real part of a.
|
|
imag - imaginary part of a.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-alloc</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">1024</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-alloc</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">2048</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pan2</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">ifft*</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pv-conformal-map</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fft*</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sound-in</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-1</span></span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-y</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-1</span></span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">signal</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">n</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">o</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mix-fill</span><span class="hspace"> </span><span class="RktSym">n</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">_</span></span></span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rand</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">make-mce</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">list</span></span></span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">1.1</span><span class="hspace"> </span><span class="RktVal">1.5</span><span class="hspace"> </span><span class="RktVal">1.78</span><span class="hspace"> </span><span class="RktVal">2.45</span><span class="hspace"> </span><span class="RktVal">6.7</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">220</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktSym">o</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mix</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-saw</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.3</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mapped</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">n</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">c0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fft*</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">signal</span><span class="hspace"> </span><span class="RktSym">n</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.01</span><span class="hspace"> </span><span class="RktVal">2.0</span><span class="hspace"> </span><span class="RktVal">1.0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">y</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-y</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.01</span><span class="hspace"> </span><span class="RktVal">10.0</span><span class="hspace"> </span><span class="RktVal">1.0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">c1</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pv-conformal-map</span><span class="hspace"> </span><span class="RktSym">c0</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktSym">y</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">ifft*</span><span class="hspace"> </span><span class="RktSym">c1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mapped</span><span class="hspace"> </span><span class="RktVal">3</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">comb-n</span><span class="hspace"> </span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal">10</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="hspace"> </span><span class="RktSym">s</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pan2</span><span class="hspace"> </span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.266<tt> </tt><a name="(part.__pv-diffuser_buffer_trig_)"></a>(pv-diffuser buffer trig)</h4><p>adds a different constant random phase shift to each bin.
|
|
The trigger will select a new set of random phases.</p><p>buffer - fft buffer.
|
|
trig - a trigger selects a new set of random values.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-alloc</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">2048</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-alloc-read</span><span class="hspace"> </span><span class="RktVal">12</span><span class="hspace"> </span><span class="RktVal">"/home/rohan/audio/metal.wav"</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">play-buf</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">12</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">buf-rate-scale</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">12</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fft*</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">h</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pv-diffuser</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">gt</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">ifft*</span><span class="hspace"> </span><span class="RktSym">h</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.267<tt> </tt><a name="(part.__pv-max_buffer.A_buffer.B_)"></a>(pv-max bufferA bufferB)</h4><h4>2.268<tt> </tt><a name="(part.__.Ifft_buffer_wintype_)"></a>(Ifft buffer wintype)</h4><p>(ifft* b) => (ifft b 0)</p><p>inverse Fast Fourier Transform. The inverse fast fourier transform
|
|
converts from frequency content to a signal.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-alloc</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">2048</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">white-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.05</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">c</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fft</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">Ifft</span><span class="hspace"> </span><span class="RktSym">c</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.269<tt> </tt><a name="(part.__pv-bin-scramble_buffer_wipe_width_trig_)"></a>(pv-bin-scramble buffer wipe width trig)</h4><p>randomizes the order of the bins. The trigger will select a new
|
|
random ordering.</p><p>buffer - fft buffer.
|
|
wipe - scrambles more bins as wipe moves from zero to one.
|
|
width - a value from zero to one, indicating the maximum randomized
|
|
distance of a bin from its original location in the spectrum.
|
|
trig - a trigger selects a new random ordering.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-alloc</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">2048</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-alloc-read</span><span class="hspace"> </span><span class="RktVal">12</span><span class="hspace"> </span><span class="RktVal">"/home/rohan/audio/metal.wav"</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">play-buf</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">12</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">buf-rate-scale</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">12</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fft*</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">g</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pv-bin-scramble</span><span class="hspace"> </span><span class="RktSym">f</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.0</span><span class="hspace"> </span><span class="RktVal">1.0</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-y</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.0</span><span class="hspace"> </span><span class="RktVal">1.0</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">4</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">h</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">ifft*</span><span class="hspace"> </span><span class="RktSym">g</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktSym">h</span><span class="hspace"> </span><span class="RktSym">h</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>careful - reads adc!</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sound-in</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">4.0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fft*</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">g</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pv-bin-scramble</span><span class="hspace"> </span><span class="RktSym">f</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.25</span><span class="hspace"> </span><span class="RktVal">1.0</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-y</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.25</span><span class="hspace"> </span><span class="RktVal">1.0</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-noise0</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">2</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">8</span><span class="hspace"> </span><span class="RktVal">10</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">h</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">ifft*</span><span class="hspace"> </span><span class="RktSym">g</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pan2</span><span class="hspace"> </span><span class="RktSym">h</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.270<tt> </tt><a name="(part.__pv-rand-wipe_buffer.A_buffer.B_wipe_trig_)"></a>(pv-rand-wipe bufferA bufferB wipe trig)</h4><p>Cross fades between two sounds by copying bins in a random order.</p><p>bufferA = fft buffer A. bufferB = fft buffer B. wipe = copies
|
|
bins from bufferB in a random order (0, 1). trig = select new
|
|
random ordering.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-alloc</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">2048</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-alloc</span><span class="hspace"> </span><span class="RktVal">11</span><span class="hspace"> </span><span class="RktVal">2048</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">define-syntax</span></span></span><span class="hspace"> </span><span class="RktSym">n-of</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">syntax-rules</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">_</span></span></span><span class="hspace"> </span><span class="RktSym">n</span><span class="hspace"> </span><span class="RktSym">f</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mix-fill</span><span class="hspace"> </span><span class="RktSym">n</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">_</span></span></span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">f</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">n</span><span class="hspace"> </span><span class="RktVal">6</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">n-of</span><span class="hspace"> </span><span class="RktSym">n</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-saw</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">exp-rand</span><span class="hspace"> </span><span class="RktVal">400.0</span><span class="hspace"> </span><span class="RktVal">1000.0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">n-of</span><span class="hspace"> </span><span class="RktSym">n</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-pulse</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">exp-rand</span><span class="hspace"> </span><span class="RktVal">80.0</span><span class="hspace"> </span><span class="RktVal">400.0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.0</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">u:max</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rand</span><span class="hspace"> </span><span class="RktVal">0.0</span><span class="hspace"> </span><span class="RktVal">8.0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fft*</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">g</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fft*</span><span class="hspace"> </span><span class="RktVal">11</span><span class="hspace"> </span><span class="RktSym">b</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">y</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-y</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">h</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pv-rand-wipe</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktSym">g</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">gt</span><span class="hspace"> </span><span class="RktSym">y</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">ifft*</span><span class="hspace"> </span><span class="RktSym">h</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktSym">i</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.271<tt> </tt><a name="(part.__.Packfft_chain_bufsize_frombin_tobin_zeroothers_magsphases_)"></a>(Packfft chain bufsize frombin tobin zeroothers magsphases)</h4><p>Pack separate demand-rate fft bin streams into an fft chain buffer</p><p>Takes a length-prefixed array of magnitudes and phases, and packs
|
|
them into an fft buffer ready for transforming back into
|
|
time-domain audio using Ifft.</p><p>Most people won’t need to use this directly - instead, use
|
|
pvcollect, pvcalc, or pvcalc2.</p><p>The input data is magsphases, which should be a flat array
|
|
containing magnitude and phase of all bins in ascending order.
|
|
e.g. [mag0, phase0, mag1, phase1, mag2, phase2, ... magN, phaseN]
|
|
This input is typically demand-rate.</p><p>This is technically similar to demand or duty in that it calls
|
|
demand-rate UGens further up the graph to process the values,
|
|
eventually calling Unpackfft. These two ends of the process must in
|
|
most cases see the same chain...! Otherwise behaviour is undefined
|
|
and, who knows, possibly unpleasant.</p><p>frombin and tobin allow you to fill the supplied data only into a
|
|
subset of the fft bins (i.e. a single delimited frequency band),
|
|
set zeroothers to 1 to zero all the magnitudes outside this band
|
|
(otherwise they stay intact).</p><p>For usage examples, see Unpackfft, but also pvcollect, pvcalc,
|
|
pvcalc2.</p><p>Here’s an unusual example which uses Packfft without using
|
|
Unpackfft first - essentially creating our fft data from scratch.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">send</span></span></span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-alloc</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">512</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">n</span><span class="hspace"> </span><span class="RktVal">100</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">n*</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">enum-from-to</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktSym">n</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">m1</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">map</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">_</span></span></span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">range</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">exp-rand</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">n*</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">square</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">a</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">*</span></span></span><span class="hspace"> </span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">m2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">map</span></span></span><span class="hspace"> </span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktSym">m1</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">map</span></span></span><span class="hspace"> </span><span class="RktSym">square</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">iota</span><span class="hspace"> </span><span class="RktSym">n</span><span class="hspace"> </span><span class="RktVal">1.0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">-</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">/</span></span></span><span class="hspace"> </span><span class="RktVal">1.0</span><span class="hspace"> </span><span class="RktSym">n</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">map</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">_</span></span></span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-pulse</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pow</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">i-rand</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-3</span></span><span class="hspace"> </span><span class="RktVal">5</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.3</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">n*</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">m3</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">map</span></span></span><span class="hspace"> </span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktSym">m2</span><span class="hspace"> </span><span class="RktSym">i</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">p</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">replicate</span><span class="hspace"> </span><span class="RktSym">n</span><span class="hspace"> </span><span class="RktVal">0.0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">c1</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fft*</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">440</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">c2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pack-fft</span><span class="hspace"> </span><span class="RktSym">c1</span><span class="hspace"> </span><span class="RktVal">512</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">-</span></span></span><span class="hspace"> </span><span class="RktSym">n</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">packfft-data</span><span class="hspace"> </span><span class="RktSym">m3</span><span class="hspace"> </span><span class="RktSym">p</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">ifft*</span><span class="hspace"> </span><span class="RktSym">c2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktSym">s</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.272<tt> </tt><a name="(part.__pvcollect_chain_numframes_func_frombin_tobin_zeroothers_)"></a>(pvcollect chain numframes func frombin tobin zeroothers)</h4><p>Process each bin of an fft chain separately.</p><p>pvcollect applies function func to each bin of an fft chain. func
|
|
should be a function that takes magnitude, phase, index as inputs
|
|
and returns a resulting [magnitude, phase].</p><p>The "index" is the integer bin number, starting at 0 for DC. You
|
|
can optionally ignore the phase and only return a single
|
|
(magnitude) value, in which case the phase is assumed to be left
|
|
unchanged.</p><p>frombin, tobin, and zeroothers are optional arguments which limit
|
|
the processing to a specified integer range of fft bins. If
|
|
zeroothers is set to 1 then bins outside of the range being
|
|
processed are silenced.</p><p>Note that this procedure can be relatively CPU-heavy, depending on
|
|
how you use it.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">define</span></span></span><span class="hspace"> </span><span class="RktSym">no-op</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">m</span><span class="hspace"> </span><span class="RktSym">p</span><span class="hspace"> </span><span class="RktSym"><span class="badlink"><span class="RktValLink">_</span></span></span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">list</span></span></span><span class="hspace"> </span><span class="RktSym">m</span><span class="hspace"> </span><span class="RktSym">p</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">define</span></span></span><span class="hspace"> </span><span class="RktSym">rand-phase</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">m</span><span class="hspace"> </span><span class="RktSym">p</span><span class="hspace"> </span><span class="RktSym"><span class="badlink"><span class="RktValLink">_</span></span></span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">list</span></span></span><span class="hspace"> </span><span class="RktSym">m</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rand</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">3.14</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">define</span></span></span><span class="hspace"> </span><span class="RktSym">noise-phase</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">m</span><span class="hspace"> </span><span class="RktSym">p</span><span class="hspace"> </span><span class="RktSym"><span class="badlink"><span class="RktValLink">_</span></span></span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">list</span></span></span><span class="hspace"> </span><span class="RktSym">m</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lin-lin</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-noise0</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">3</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-1</span></span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">3.14</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">define</span></span></span><span class="hspace"> </span><span class="RktSym">combf</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">m</span><span class="hspace"> </span><span class="RktSym">p</span><span class="hspace"> </span><span class="RktSym">i</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">list</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">if</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">=</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">modulo</span></span></span><span class="hspace"> </span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktVal">7</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">m</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">p</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">define</span></span></span><span class="hspace"> </span><span class="RktSym">noise-mag</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">m</span><span class="hspace"> </span><span class="RktSym">p</span><span class="hspace"> </span><span class="RktSym"><span class="badlink"><span class="RktValLink">_</span></span></span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">list</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">gt</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-noise0</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">10</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">m</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">p</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">define</span></span></span><span class="hspace"> </span><span class="RktSym">spectral-delay</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">m</span><span class="hspace"> </span><span class="RktSym">p</span><span class="hspace"> </span><span class="RktSym"><span class="badlink"><span class="RktValLink">_</span></span></span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">v</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lin-lin</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-par</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-1</span></span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">list</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">add</span><span class="hspace"> </span><span class="RktSym">m</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">delay-n</span><span class="hspace"> </span><span class="RktSym">m</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktSym">v</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">p</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">define</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">bpf-sweep</span><span class="hspace"> </span><span class="RktSym">nf</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">m</span><span class="hspace"> </span><span class="RktSym">p</span><span class="hspace"> </span><span class="RktSym">i</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">e</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">u:abs</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sub</span><span class="hspace"> </span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lin-lin</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-par</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-1</span></span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">/</span></span></span><span class="hspace"> </span><span class="RktSym">nf</span><span class="hspace"> </span><span class="RktVal">20</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">list</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lt</span><span class="hspace"> </span><span class="RktSym">e</span><span class="hspace"> </span><span class="RktVal">10</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">m</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">p</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-alloc</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">1024</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-alloc-read</span><span class="hspace"> </span><span class="RktVal">11</span><span class="hspace"> </span><span class="RktVal">"/home/rohan/audio/metal.wav"</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">nf</span><span class="hspace"> </span><span class="RktVal">1024</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">play-buf</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">11</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">buf-rate-scale</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">11</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">c1</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fft*</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktSym">i</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">c2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pvcollect</span><span class="hspace"> </span><span class="RktSym">c1</span><span class="hspace"> </span><span class="RktSym">nf</span><span class="hspace"> </span><span class="RktSym">spectral-delay</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">250</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">ifft*</span><span class="hspace"> </span><span class="RktSym">c2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.273<tt> </tt><a name="(part.__.P.V_.Magclip_buffer_threshold_)"></a>(PV_Magclip buffer threshold)</h4><p>clip bins to a threshold. clips bin magnitudes to a maximum
|
|
threshold.</p><p>buffer - fft buffer.
|
|
threshold - magnitude threshold.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-alloc</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">2048</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-alloc-read</span><span class="hspace"> </span><span class="RktVal">12</span><span class="hspace"> </span><span class="RktVal">"/home/rohan/audio/metal.wav"</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">play-buf</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">12</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">buf-rate-scale</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">12</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fft*</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">h</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pv-mag-clip</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">5</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">ifft*</span><span class="hspace"> </span><span class="RktSym">h</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.274<tt> </tt><a name="(part.__.P.V_.Magfreeze_buffer_freeze_)"></a>(PV_Magfreeze buffer freeze)</h4><p>freeze magnitudes. freezes magnitudes at current levels when
|
|
freeze > 0.</p><p>buffer - fft buffer.
|
|
freeze - if > 0 then magnitudes are frozen at current levels.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-alloc</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">2048</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-alloc-read</span><span class="hspace"> </span><span class="RktVal">12</span><span class="hspace"> </span><span class="RktVal">"/home/rohan/audio/metal.wav"</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">dup</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">a</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-noise1</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">5.2</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">250</span><span class="hspace"> </span><span class="RktVal">400</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dup</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktVal">0.25</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">ifft*</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pv-mag-freeze</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fft*</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktSym">s</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">f</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">dup</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">a</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">play-buf</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">12</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">buf-rate-scale</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">12</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">gt</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-y</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dup</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktVal">0.25</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">ifft*</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pv-mag-freeze</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fft*</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktSym">s</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">f</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.275<tt> </tt><a name="(part.__pv-rect-comb_buffer_num.Teeth_phase_width_)"></a>(pv-rect-comb buffer numTeeth phase width)</h4><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-alloc</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">2048</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">dup</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">a</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">y</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-y</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">n</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dup</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">white-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.3</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">c</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pv-rect-comb</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fft*</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktSym">n</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">8</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktSym">y</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">ifft*</span><span class="hspace"> </span><span class="RktSym">c</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">dup</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">a</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">p</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-tri</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.097</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.4</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">w</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-tri</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.24</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-0</span>.5</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">n</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dup</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">white-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.3</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">c</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pv-rect-comb</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fft*</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktSym">n</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">8</span><span class="hspace"> </span><span class="RktSym">p</span><span class="hspace"> </span><span class="RktSym">w</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">ifft*</span><span class="hspace"> </span><span class="RktSym">c</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.276<tt> </tt><a name="(part.__pv-mag-shift_buffer_stretch_shift_)"></a>(pv-mag-shift buffer stretch shift)</h4><h4>2.277<tt> </tt><a name="(part._.See_allpass-n)"></a>See allpass-n</h4><h4>2.278<tt> </tt><a name="(part._.See_comb-n)"></a>See comb-n</h4><h4>2.279<tt> </tt><a name="(part._.See_.Bufallpass-c)"></a>See Bufallpass-c</h4><h4>2.280<tt> </tt><a name="(part.__free-verb_in_mix_room_damp_)"></a>(free-verb in mix room damp)</h4><p>(free-verb2 in1 in2 mix room damp)</p><p>A simple reverb.</p><p>in, in1, in2 - input signal
|
|
mix - dry/wet balance (0,1)
|
|
room - room size (0,1)
|
|
damp - reverb high frequency damping (0,1)</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">c</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-cub</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">1200</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul3</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">decay</span><span class="hspace"> </span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktVal">0.25</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">c</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">y</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-y</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">r</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">free-verb</span><span class="hspace"> </span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktSym">y</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktSym">r</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sound-in</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">c</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">u</span><span class="hspace"> </span><span class="RktSym">n</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce-channel</span><span class="hspace"> </span><span class="RktSym">u</span><span class="hspace"> </span><span class="RktSym">n</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">y</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-y</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">r</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">free-verb2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">c</span><span class="hspace"> </span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">c</span><span class="hspace"> </span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">y</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktSym">r</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.281<tt> </tt><a name="(part._.See_free.Verb)"></a>See freeVerb</h4><h4>2.282<tt> </tt><a name="(part.__play-buf_num.Channels_bufnum_rate_trigger_start.Pos_loop_)"></a>(play-buf numChannels bufnum rate trigger startPos loop)</h4><p>Sample playback oscillator. Plays back a memory resident sample.</p><p>numChannels - number of channels that the buffer will be. This
|
|
must be a fixed integer. The architechture of the
|
|
SynthDef cannot change after it is compiled.
|
|
Warning: if you supply a bufnum of a buffer that has
|
|
a different numChannels then you have specified to
|
|
the play-buf, it will fail silently.</p><p>bufnum - the index of the buffer to use</p><p>rate - 1.0 is the server’s sample rate, 2.0 is one octave up, 0.5
|
|
is one octave down -1.0 is backwards normal rate
|
|
etc. interpolation is cubic. Note: If the buffer’s sample
|
|
rate is different from the server’s, you will need to
|
|
multiply the desired playback rate by (file’s rate /
|
|
server’s rate). The UGen buf-rate-scale.kr(bufnum) returns
|
|
this factor. See examples below. buf-rate-scale should be used
|
|
in virtually every case.</p><p>trigger - a trigger causes a jump to the startPos. A trigger
|
|
occurs when a signal changes from <= 0 to > 0.</p><p>startPos - sample frame to start playback.</p><p>loop - 1 means true, 0 means false. This is modulate-able.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-alloc-read</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">"/home/rohan/audio/metal.wav"</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Play once only.</p><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">play-buf</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">buf-rate-scale</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">10</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><p>Play in infinite loop.</p><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">play-buf</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">buf-rate-scale</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">10</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><p>trigger playback at each pulse.</p><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">play-buf</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">buf-rate-scale</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">10</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><p>trigger playback at each pulse (diminishing intervals).</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal">100</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">play-buf</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">buf-rate-scale</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">10</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Loop playback, accelerating pitch.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">rate</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal">100</span><span class="hspace"> </span><span class="RktVal">60</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">play-buf</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktSym">rate</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Sine wave control of playback rate, negative rate plays backwards.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">r</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="hspace"> </span><span class="RktVal">8</span><span class="hspace"> </span><span class="RktVal">30</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">3</span><span class="hspace"> </span><span class="RktVal">0.6</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">play-buf</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">buf-rate-scale</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">10</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">r</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Release buffer.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-free</span><span class="hspace"> </span><span class="RktVal">10</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.283<tt> </tt><a name="(part._.See_buf-delay-c)"></a>See buf-delay-c</h4><h4>2.284<tt> </tt><a name="(part.__delay2_in_)"></a>(delay2 in)</h4><p>Fixed two sample delay.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">add</span><span class="hspace"> </span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">delay2</span><span class="hspace"> </span><span class="RktSym">s</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.285<tt> </tt><a name="(part.__comb-n_in_max.Delay.Time_delay.Time_decay.Time_)"></a>(comb-n in maxDelayTime delayTime decayTime)</h4><p>(comb-l in maxDelayTime delayTime decayTime)
|
|
(comb-c in maxDelayTime delayTime decayTime)</p><p>Comb delay line. comb-n uses no interpolation, comb-l uses linear
|
|
interpolation, comb-c uses all pass interpolation. All times are in
|
|
seconds. The decay time is the time for the echoes to decay by 60
|
|
decibels. If this time is negative then the feedback coefficient
|
|
will be negative, thus emphasizing only odd harmonics at an octave
|
|
lower.</p><p>Comb used as a resonator. The resonant fundamental is equal to
|
|
reciprocal of the delay time.</p><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">define</span></span></span><span class="hspace"> </span><span class="RktSym">src</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">white-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.01</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">define</span></span></span><span class="hspace"> </span><span class="RktSym">ctl</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.0001</span><span class="hspace"> </span><span class="RktVal">0.01</span><span class="hspace"> </span><span class="RktVal">20</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">define</span></span></span><span class="hspace"> </span><span class="RktSym">hear</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">u</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktSym">u</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">hear</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">comb-n</span><span class="hspace"> </span><span class="RktSym">src</span><span class="hspace"> </span><span class="RktVal">0.01</span><span class="hspace"> </span><span class="RktSym">ctl</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">hear</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">comb-l</span><span class="hspace"> </span><span class="RktSym">src</span><span class="hspace"> </span><span class="RktVal">0.01</span><span class="hspace"> </span><span class="RktSym">ctl</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">hear</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">comb-c</span><span class="hspace"> </span><span class="RktSym">src</span><span class="hspace"> </span><span class="RktVal">0.01</span><span class="hspace"> </span><span class="RktSym">ctl</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><p>With negative feedback:</p><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">hear</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">comb-n</span><span class="hspace"> </span><span class="RktSym">src</span><span class="hspace"> </span><span class="RktVal">0.01</span><span class="hspace"> </span><span class="RktSym">ctl</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-0</span>.2</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">hear</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">comb-l</span><span class="hspace"> </span><span class="RktSym">src</span><span class="hspace"> </span><span class="RktVal">0.01</span><span class="hspace"> </span><span class="RktSym">ctl</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-0</span>.2</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">hear</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">comb-c</span><span class="hspace"> </span><span class="RktSym">src</span><span class="hspace"> </span><span class="RktVal">0.01</span><span class="hspace"> </span><span class="RktSym">ctl</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-0</span>.2</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><p>Used as an echo.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">hear</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">comb-n</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">decay</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dust</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">white-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0.2</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="hspace"> </span><span class="RktVal">3</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.286<tt> </tt><a name="(part._.See_.Bufallpass-c)"></a>See Bufallpass-c</h4><h4>2.287<tt> </tt><a name="(part.__allpass-n_in_max.Delay.Time_delay.Time_decay.Time_)"></a>(allpass-n in maxDelayTime delayTime decayTime)</h4><p>All pass delay line. allpass-n uses no interpolation, allpass-l uses
|
|
linear interpolation, allpass-c uses all pass interpolation. All
|
|
time values are in seconds. The decay time is the time for the
|
|
echoes to decay by 60 decibels. If this time is negative then the
|
|
feedback coefficient will be negative, thus emphasizing only odd
|
|
harmonics at an octave lower.</p><p>Since the allpass delay has no audible effect as a resonator on
|
|
steady state sound ...</p><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">define</span></span></span><span class="hspace"> </span><span class="RktSym">z</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">white-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">allpass-c</span><span class="hspace"> </span><span class="RktSym">z</span><span class="hspace"> </span><span class="RktVal">0.01</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.0001</span><span class="hspace"> </span><span class="RktVal">0.01</span><span class="hspace"> </span><span class="RktVal">20</span><span class="hspace"> </span><span class="RktSym">do-nothing</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><p>...these examples add the input to the effected sound so that you
|
|
can hear the effect of the phase comb.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">add</span><span class="hspace"> </span><span class="RktSym">z</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">allpass-n</span><span class="hspace"> </span><span class="RktSym">z</span><span class="hspace"> </span><span class="RktVal">0.01</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.0001</span><span class="hspace"> </span><span class="RktVal">0.01</span><span class="hspace"> </span><span class="RktVal">20</span><span class="hspace"> </span><span class="RktSym">do-nothing</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">add</span><span class="hspace"> </span><span class="RktSym">z</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">allpass-l</span><span class="hspace"> </span><span class="RktSym">z</span><span class="hspace"> </span><span class="RktVal">0.01</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.0001</span><span class="hspace"> </span><span class="RktVal">0.01</span><span class="hspace"> </span><span class="RktVal">20</span><span class="hspace"> </span><span class="RktSym">do-nothing</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">add</span><span class="hspace"> </span><span class="RktSym">z</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">allpass-c</span><span class="hspace"> </span><span class="RktSym">z</span><span class="hspace"> </span><span class="RktVal">0.01</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.0001</span><span class="hspace"> </span><span class="RktVal">0.01</span><span class="hspace"> </span><span class="RktVal">20</span><span class="hspace"> </span><span class="RktSym">do-nothing</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Used as an echo - doesn’t really sound different than Comb, but it
|
|
outputs the input signal immediately (inverted) and the echoes are
|
|
lower in amplitude.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">allpass-n</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">decay</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dust</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">z</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="hspace"> </span><span class="RktVal">3</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.288<tt> </tt><a name="(part._.See_comb-n)"></a>See comb-n</h4><h4>2.289<tt> </tt><a name="(part.__buf-allpass-c_buf_in_delaytime_decaytime_)"></a>(buf-allpass-c buf in delaytime decaytime)</h4><p>Buffer based all pass delay line with cubic interpolation</p><p>All pass delay line with cubic interpolation which uses a buffer
|
|
for its internal memory. See also Bufallpass-n which uses no
|
|
interpolation, and Bufallpass-l which uses linear
|
|
interpolation. Cubic interpolation is more computationally
|
|
expensive than linear, but more accurate.</p><p>See also allpass-c.</p><p>buf - buffer number.</p><p>in - the input signal.</p><p>delaytime - delay time in seconds.</p><p>decaytime - time for the echoes to decay by 60 decibels. If this
|
|
time is negative then the feedback coefficient will be
|
|
negative, thus emphasizing only odd harmonics at an
|
|
octave lower.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-alloc</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">44100</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul3</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">decay</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dust</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">white-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">buf-allpass-n</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktVal">0.25</span><span class="hspace"> </span><span class="RktVal">6</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.290<tt> </tt><a name="(part._.See_allpass-n)"></a>See allpass-n</h4><h4>2.291<tt> </tt><a name="(part._.See_buf-delay-c)"></a>See buf-delay-c</h4><h4>2.292<tt> </tt><a name="(part.__buf-delay-c_buf_in_delaytime_)"></a>(buf-delay-c buf in delaytime)</h4><p>Buffer based simple delay line with cubic interpolation.</p><p>Simple delay line with cubic interpolation which uses a buffer for
|
|
its internal memory. See also buf-delay-n which uses no
|
|
interpolation, and buf-delay-l which uses linear interpolation. Cubic
|
|
interpolation is more computationally expensive than linear, but
|
|
more accurate.</p><p>See also delay-c.</p><p>buf - buffer number.
|
|
in - the input signal.
|
|
delaytime - delay time in seconds.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-alloc</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">44100</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">z</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul3</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">decay</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dust</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.3</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">white-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">buf-delay-c</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktSym">z</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">z</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.293<tt> </tt><a name="(part.__pluck_in_tr_maxdelaytime_delaytime_decaytime_coef_)"></a>(pluck in tr maxdelaytime delaytime decaytime coef)</h4><p>Karplus-Strong synthesis.</p><p>in - an excitation signal</p><p>tr - upon a negative to positive transition, the excitation signal
|
|
will be fed into the delay line</p><p>maxdelaytime - the max delay time in seconds (initializes the
|
|
internal delay buffer).</p><p>delaytime - delay time in seconds.</p><p>decaytime - time for the echoes to decay by 60 decibels. Negative
|
|
times emphasize odd partials.</p><p>coef - the coef of the internal one-pole filter. Values should be
|
|
between -1 and +1 (larger values will be unstable... so be
|
|
careful!).</p><p>Excitation signal is white-noise, triggered twice a second with
|
|
varying one-pole coef.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">n</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">white-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-0</span>.999</span><span class="hspace"> </span><span class="RktVal">0.999</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dl</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">/</span></span></span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">440</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pluck</span><span class="hspace"> </span><span class="RktSym">n</span><span class="hspace"> </span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktSym">dl</span><span class="hspace"> </span><span class="RktSym">dl</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktSym">x</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">n</span><span class="hspace"> </span><span class="RktVal">25</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">gen</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">n</span><span class="hspace"> </span><span class="RktSym">f</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce-fill</span><span class="hspace"> </span><span class="RktSym">n</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">_</span></span></span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">gen</span><span class="hspace"> </span><span class="RktSym">n</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rand</span><span class="hspace"> </span><span class="RktVal">0.05</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">p</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">gen</span><span class="hspace"> </span><span class="RktSym">n</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rand</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">60</span><span class="hspace"> </span><span class="RktVal">1000</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">o</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lin-lin</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktSym">p</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-1</span></span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktVal">3000</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">w</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">clone</span><span class="hspace"> </span><span class="RktSym">n</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">white-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">gen</span><span class="hspace"> </span><span class="RktSym">n</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rand</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">12</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">ks</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pluck</span><span class="hspace"> </span><span class="RktSym">w</span><span class="hspace"> </span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktVal">0.01</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fdiv</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktSym">o</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rand</span><span class="hspace"> </span><span class="RktVal">0.01</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">l</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">gen</span><span class="hspace"> </span><span class="RktSym">n</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rand</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-1</span></span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">leak-dc</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mix</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pan2</span><span class="hspace"> </span><span class="RktSym">ks</span><span class="hspace"> </span><span class="RktSym">l</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.995</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.294<tt> </tt><a name="(part.__pitch-shift_in_win.Size_pch.Ratio_pch.Dispersion_time.Dispersion_)"></a>(pitch-shift in winSize pchRatio pchDispersion timeDispersion)</h4><p>A simple time domain pitch shifter.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pitch-shift</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">440</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0.2</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-y</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.295<tt> </tt><a name="(part._.See_buf-comb-c)"></a>See buf-comb-c</h4><h4>2.296<tt> </tt><a name="(part.__buf-comb-c_buf_in_delaytime_decaytime_)"></a>(buf-comb-c buf in delaytime decaytime)</h4><p>Buffer based comb delay line with cubic interpolation</p><p>All pass delay line with cubic interpolation which uses a buffer
|
|
for its internal memory. See also buf-comb-n which uses no
|
|
interpolation, and buf-comb-l which uses linear interpolation. Cubic
|
|
interpolation is more computationally expensive than linear, but
|
|
more accurate. See also comb-c.</p><p>buf - buffer number.</p><p>in - the input signal.</p><p>delaytime - delay time in seconds.</p><p>decaytime - time for the echoes to decay by 60 decibels. If this
|
|
time is negative then the feedback coefficient will be
|
|
negative, thus emphasizing only odd harmonics at an
|
|
octave lower.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-alloc</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">44100</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul3</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">decay</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dust</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">white-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">buf-comb-n</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktVal">0.25</span><span class="hspace"> </span><span class="RktVal">6</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.297<tt> </tt><a name="(part.__buf-rd_num.Channels_rate_bufnum_phase_loop_interpolation_)"></a>(buf-rd numChannels rate bufnum phase loop interpolation)</h4><p>Plays the content of a buffer.</p><p>The number of channels must be a fixed integer. The architechture
|
|
of the SynthDef cannot change after it is compiled. NOTE: if you
|
|
supply a bufnum of a buffer that has a different numChannels then
|
|
you have specified to the buf-rd, it will fail silently.</p><p>The interpolation type is an integer: 1 no interpolation, 2 linear
|
|
interpolation, 4 cubic interpolation.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-alloc-read</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">"/home/rohan/audio/metal.wav"</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">buf-rd</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">buf-frames</span><span class="hspace"> </span><span class="RktSym">ir</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">phase</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-noise1</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktVal">5</span><span class="hspace"> </span><span class="RktVal">10</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">100</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">buf-frames</span><span class="hspace"> </span><span class="RktSym">ir</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">buf-rd-l</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktSym">phase</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">phase</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-tri</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-tri</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">0.23</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">buf-frames</span><span class="hspace"> </span><span class="RktSym">ir</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">buf-rd-l</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktSym">phase</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Use a phasor index into the file</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">phase</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">phasor</span><span class="hspace"> </span><span class="RktSym">ar</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">buf-rate-scale</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">buf-frames</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">buf-rd</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktSym">phase</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-y</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">5</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.298<tt> </tt><a name="(part.__delay1_in_)"></a>(delay1 in)</h4><p>Fixed Single sample delay.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">add</span><span class="hspace"> </span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">delay1</span><span class="hspace"> </span><span class="RktSym">s</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.299<tt> </tt><a name="(part.__record-buf_bufnum_offset_reclevel_prelevel_run_loop_trigger_inputs_)"></a>(record-buf bufnum offset reclevel prelevel run loop trigger inputs)</h4><p>Records input into a Buffer.</p><p>If recLevel is 1.0 and preLevel is 0.0 then the new input
|
|
overwrites the old data. If they are both 1.0 then the new data is
|
|
added to the existing data. (Any other settings are also valid.)</p><p>bufnum - the index of the buffer to use
|
|
offset - an offset into the buffer in samples, default 0
|
|
recLevel - value to multiply by input before mixing with
|
|
existing data. Default is 1.0.
|
|
preLevel - value to multiply to existing data in buffer before
|
|
mixing with input. Default is 0.0.
|
|
run - If zero, then recording stops, otherwise recording
|
|
proceeds. Default is 1.
|
|
loop - If zero then don’t loop, otherwise do. This is
|
|
modulate-able. Default is 1.
|
|
trigger - a trigger causes a jump to the start of the Buffer.
|
|
A trigger occurs when a signal changes from <=0 to >0.
|
|
inputArray - an Array of input channels</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">send-synth</span></td></tr><tr><td><span class="hspace"> </span><span class="RktSym">fd</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">"recorder"</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">letc</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">in</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">bufnum</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">offset</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">recLevel</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">preLevel</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">run</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">loop</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">trigger</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">in</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">in</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">record-buf</span><span class="hspace"> </span><span class="RktSym">bufnum</span><span class="hspace"> </span><span class="RktSym">offset</span><span class="hspace"> </span><span class="RktSym">recLevel</span><span class="hspace"> </span><span class="RktSym">preLevel</span><span class="hspace"> </span><span class="RktSym">run</span><span class="hspace"> </span><span class="RktSym">loop</span><span class="hspace"> </span><span class="RktSym">trigger</span><span class="hspace"> </span><span class="RktSym">i</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktVal">10</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">y</span><span class="hspace"> </span><span class="RktVal">1001</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">z</span><span class="hspace"> </span><span class="RktVal">1002</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">/b_alloc</span><span class="hspace"> </span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktVal">44100</span><span class="hspace"> </span><span class="RktVal">2</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">send</span></span></span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">/s_new</span><span class="hspace"> </span><span class="RktVal">"recorder"</span><span class="hspace"> </span><span class="RktSym">y</span><span class="hspace"> </span><span class="RktSym">add-to-tail</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">"bufnum"</span><span class="hspace"> </span><span class="RktSym">b</span><span class="hspace"> </span><span class="RktVal">"in"</span><span class="hspace"> </span><span class="RktVal">8</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">send</span></span></span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">/n_trace</span><span class="hspace"> </span><span class="RktSym">y</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">send-synth</span></td></tr><tr><td><span class="hspace"> </span><span class="RktSym">fd</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">"player"</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">letc</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">bufnum</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rate</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">trigger</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">startPos</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">loop</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">gain</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">play-buf</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktSym">bufnum</span><span class="hspace"> </span><span class="RktSym">rate</span><span class="hspace"> </span><span class="RktSym">trigger</span><span class="hspace"> </span><span class="RktSym">startPos</span><span class="hspace"> </span><span class="RktSym">loop</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">gain</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">send</span></span></span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">/s_new</span><span class="hspace"> </span><span class="RktVal">"player"</span><span class="hspace"> </span><span class="RktSym">z</span><span class="hspace"> </span><span class="RktSym">add-to-tail</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">"bufnum"</span><span class="hspace"> </span><span class="RktSym">b</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">define</span></span></span><span class="hspace"> </span><span class="RktSym">do-send</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">m</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">send</span></span></span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktSym">m</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">do-send</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">/n_set</span><span class="hspace"> </span><span class="RktVal">1001</span><span class="hspace"> </span><span class="RktVal">"run"</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">do-send</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">/n_set</span><span class="hspace"> </span><span class="RktVal">1002</span><span class="hspace"> </span><span class="RktVal">"loop"</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">do-send</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">/n_set</span><span class="hspace"> </span><span class="RktVal">1002</span><span class="hspace"> </span><span class="RktVal">"gain"</span><span class="hspace"> </span><span class="RktVal">2</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">do-send</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">/n_set</span><span class="hspace"> </span><span class="RktVal">1002</span><span class="hspace"> </span><span class="RktVal">"trigger"</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">do-send</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">/n_free</span><span class="hspace"> </span><span class="RktVal">1001</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">do-send</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">/n_free</span><span class="hspace"> </span><span class="RktVal">1002</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">/b_free</span><span class="hspace"> </span><span class="RktVal">10</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.300<tt> </tt><a name="(part._.See_delay-n)"></a>See delay-n</h4><h4>2.301<tt> </tt><a name="(part._.See_buf-comb-c)"></a>See buf-comb-c</h4><h4>2.302<tt> </tt><a name="(part._.See_delay-n)"></a>See delay-n</h4><h4>2.303<tt> </tt><a name="(part.__delay-n_in_max.Delay.Time_delay.Time_)"></a>(delay-n in maxDelayTime delayTime)</h4><p>(delay-l in maxDelayTime delayTime)
|
|
(delay-c in maxDelayTime delayTime)</p><p>Simple delay line. There are three forms, delay-n uses no
|
|
interpolation, delay-l uses linear interpolation, delay-c uses cubic
|
|
interpolation. The maximum delay length is set at initialization
|
|
time and cannot be extended.</p><p>dust randomly triggers decay to create an exponential decay
|
|
envelope for the white-noise input source.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">z</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">decay</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dust</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.3</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">white-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">delay-n</span><span class="hspace"> </span><span class="RktSym">z</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">z</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.304<tt> </tt><a name="(part.__ball_in_g_damp_friction_)"></a>(ball in g damp friction)</h4><p>Physical model of bouncing object.</p><p>Models the path of a bouncing object that is reflected by a
|
|
vibrating surface.</p><p>in - modulated surface level
|
|
g - gravity
|
|
damp - damping on impact
|
|
friction - proximity from which on attraction to surface starts</p><h4>2.305<tt> </tt><a name="(part.__dswitch1_index_array_)"></a>(dswitch1 index array)</h4><p>demand rate generator for switching between inputs</p><p>index - which of the inputs to return
|
|
array - array of values or other ugens</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">4</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">y</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-y</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">15</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dswitch1</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">make-mce</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">list</span></span></span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">3</span><span class="hspace"> </span><span class="RktSym">y</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dwhite</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">3</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">3</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">demand</span><span class="hspace"> </span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">30</span><span class="hspace"> </span><span class="RktVal">340</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.306<tt> </tt><a name="(part.__t-duty_rate_duration_reset_done.Action_level_gap_)"></a>(t-duty rate duration reset doneAction level gap)</h4><p>demand results as trigger from demand rate ugens.</p><p>A value is demanded each ugen in the list and output as a trigger
|
|
according to a stream of duration values. The unit generators in
|
|
the list should be ’demand’ rate. When there is a trigger at the
|
|
reset input, the demand rate ugens in the list and the duration are
|
|
reset. The reset input may also be a demand ugen, providing a
|
|
stream of reset times.</p><p>NOTE: sclang reorders the inputs to be ’duration reset level
|
|
doneAction’, rsc does not.</p><p>duration - time values. Can be a demand ugen or any signal.
|
|
The next trigger value is acquired after the
|
|
duration provided by the last time value.</p><p>reset - trigger or reset time values. Resets the list of ugens
|
|
and the duration ugen when triggered. The reset input
|
|
may also be a demand ugen, providing a stream of reset
|
|
times.</p><p>doneAction - a doneAction that is evaluated when the duration
|
|
stream ends.</p><p>level - demand ugen providing the output values.</p><p>Play a little rhythm</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dseq</span><span class="hspace"> </span><span class="RktSym">dinf</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">make-mce</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">list</span></span></span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="hspace"> </span><span class="RktVal">0.4</span><span class="hspace"> </span><span class="RktVal">0.3</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">t-duty</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Amplitude changes</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">t-duty</span><span class="hspace"> </span><span class="RktSym">ar</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dseq</span><span class="hspace"> </span><span class="RktSym">dinf</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">make-mce</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">list</span></span></span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="hspace"> </span><span class="RktVal">0.4</span><span class="hspace"> </span><span class="RktVal">0.3</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dseq</span><span class="hspace"> </span><span class="RktSym">dinf</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">make-mce</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">list</span></span></span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal">0.4</span><span class="hspace"> </span><span class="RktVal">0.01</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="hspace"> </span><span class="RktVal">1.0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">ringz</span><span class="hspace"> </span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktVal">1000</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">t-duty</span><span class="hspace"> </span><span class="RktSym">ar</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.001</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dseq</span><span class="hspace"> </span><span class="RktSym">dinf</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">make-mce</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">list</span></span></span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal">0.4</span><span class="hspace"> </span><span class="RktVal">0.01</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="hspace"> </span><span class="RktVal">1.0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">ringz</span><span class="hspace"> </span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktVal">1000</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.307<tt> </tt><a name="(part._.See_dwhite)"></a>See dwhite</h4><h4>2.308<tt> </tt><a name="(part.__dwhite__length_lo_hi_)"></a>(dwhite length lo hi)</h4><p>(diwhite length lo hi)</p><p>demand rate white noise random generators.</p><p>length number of values to create
|
|
lo minimum value
|
|
hi maximum value</p><p>dwhite returns numbers in the continuous range between lo and hi,
|
|
diwhite returns integer values. The arguments can be a number or
|
|
any other ugen</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dwhite</span><span class="hspace"> </span><span class="RktSym">dinf</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">15</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">40</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">demand</span><span class="hspace"> </span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">30</span><span class="hspace"> </span><span class="RktVal">340</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">diwhite</span><span class="hspace"> </span><span class="RktSym">dinf</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">15</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">40</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">demand</span><span class="hspace"> </span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">30</span><span class="hspace"> </span><span class="RktVal">340</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.309<tt> </tt><a name="(part.__dbufrd_bufnum_phase_loop_)"></a>(dbufrd bufnum phase loop)</h4><p>Buffer demand ugen.</p><p>bufnum - buffer number to read from
|
|
phase - index into the buffer (demand ugen or any other ugen)
|
|
loop - loop when phase exceeds number of frames in buffer</p><p>Example</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-alloc</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">24</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">send</span></span></span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-setn1</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">replicate-m</span><span class="hspace"> </span><span class="RktVal">24</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">exp-random</span><span class="hspace"> </span><span class="RktVal">200</span><span class="hspace"> </span><span class="RktVal">500</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">q</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dseq</span><span class="hspace"> </span><span class="RktVal">3</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">make-mce</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">list</span></span></span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">3</span><span class="hspace"> </span><span class="RktVal">5</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">3</span><span class="hspace"> </span><span class="RktVal">7</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">5</span><span class="hspace"> </span><span class="RktVal">9</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">p</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dseq</span><span class="hspace"> </span><span class="RktSym">dinf</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktSym">q</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dbrown</span><span class="hspace"> </span><span class="RktVal">5</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">23</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dust</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">10</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">demand</span><span class="hspace"> </span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dbufrd</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktSym">p</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Buffer as a time pattern.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-alloc</span><span class="hspace"> </span><span class="RktVal">11</span><span class="hspace"> </span><span class="RktVal">24</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">send</span></span></span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-setn1</span><span class="hspace"> </span><span class="RktVal">11</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">replicate-m</span><span class="hspace"> </span><span class="RktVal">24</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">choose</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">list</span></span></span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="hspace"> </span><span class="RktVal">0.25</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">p</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dseq</span><span class="hspace"> </span><span class="RktSym">dinf</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dseq</span><span class="hspace"> </span><span class="RktVal">3</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">make-mce</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">list</span></span></span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">3</span><span class="hspace"> </span><span class="RktVal">5</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">3</span><span class="hspace"> </span><span class="RktVal">7</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">5</span><span class="hspace"> </span><span class="RktVal">9</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dbrown</span><span class="hspace"> </span><span class="RktVal">5</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">23</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">d</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dbufrd</span><span class="hspace"> </span><span class="RktVal">11</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dseries</span><span class="hspace"> </span><span class="RktSym">dinf</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">l</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dbufrd</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktSym">p</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">duty</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktSym">d</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktSym">do-nothing</span><span class="hspace"> </span><span class="RktSym">l</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>free buffers</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-free</span><span class="hspace"> </span><span class="RktVal">10</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">b-free</span><span class="hspace"> </span><span class="RktVal">11</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.310<tt> </tt><a name="(part.__demand-env-gen_rate_levels_times_shapes_curves_gate_reset)"></a>(demand-env-gen rate levels times shapes curves gate reset</h4><p>levelScale levelOffset timeScale doneAction)</p><p>levels - a demand ugen or any other ugen</p><p>times - a demand ugen or any other ugen if one of these ends,
|
|
the doneAction is evaluated</p><p>shapes - a demand ugen or any other ugen, the number given is
|
|
the shape number according to Env</p><p>curves - a demand ugen or any other ugen, if shape is 5, this
|
|
is the curve factor some curves/shapes don’t work if
|
|
the duration is too short. have to see how to improve
|
|
this. also some depend on the levels obviously, like
|
|
exponential cannot cross zero.</p><p>gate - if gate is x >= 1, the ugen runs, if gate is 0 > x > 1,
|
|
the ugen is released at the next level (doneAction), if
|
|
gate is x < 0, the ugen is sampled end held</p><p>reset - if reset crosses from nonpositive to positive, the ugen
|
|
is reset at the next level, if it is > 1, it is reset
|
|
immediately.</p><p>Frequency envelope with random times.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">l</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dseq</span><span class="hspace"> </span><span class="RktSym">dinf</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">make-mce</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">list</span></span></span><span class="hspace"> </span><span class="RktVal">204</span><span class="hspace"> </span><span class="RktVal">400</span><span class="hspace"> </span><span class="RktVal">201</span><span class="hspace"> </span><span class="RktVal">502</span><span class="hspace"> </span><span class="RktVal">300</span><span class="hspace"> </span><span class="RktVal">200</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">drand</span><span class="hspace"> </span><span class="RktSym">dinf</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">make-mce</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">list</span></span></span><span class="hspace"> </span><span class="RktVal">1.01</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal">2.0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">y</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-y</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.01</span><span class="hspace"> </span><span class="RktVal">3</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">demand-env-gen</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">l</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktSym">y</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">7</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktSym">do-nothing</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">1.01</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Frequency modulation</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-0</span>.01</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-4</span></span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">y</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-y</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">3000</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">l</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dseq</span><span class="hspace"> </span><span class="RktSym">dinf</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">clone</span><span class="hspace"> </span><span class="RktVal">32</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">exp-rand</span><span class="hspace"> </span><span class="RktVal">200</span><span class="hspace"> </span><span class="RktVal">1000</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktSym">sample-dur</span><span class="hspace"> </span><span class="RktSym">y</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">demand-env-gen</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">l</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">l</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktVal">5</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktSym">do-nothing</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>gate. Mouse x on right side of screen toggles gate.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">l</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">u:round</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dwhite</span><span class="hspace"> </span><span class="RktSym">dinf</span><span class="hspace"> </span><span class="RktVal">300</span><span class="hspace"> </span><span class="RktVal">1000</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">100</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">demand-env-gen</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktSym">l</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal">5</span><span class="hspace"> </span><span class="RktVal">0.3</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">gt</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktSym">do-nothing</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">1.21</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.311<tt> </tt><a name="(part.__demand_trig_reset_ugens_)"></a>(demand trig reset ugens)</h4><p>demand results from demand rate ugens.</p><p>When there is a trigger at the trig input, a value is demanded from
|
|
each ugen in the list and output. The unit generators in the list
|
|
should be ’demand’ rate.</p><p>When there is a trigger at the reset input, the demand rate ugens
|
|
in the list are reset.</p><p>trig - trigger. trigger can be any signal. A trigger happens when
|
|
the signal changes from non-positive to positive.</p><p>reset - trigger. Resets the list of ugens when triggered.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">define</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mirror1</span><span class="hspace"> </span><span class="RktSym">l</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">append</span></span></span><span class="hspace"> </span><span class="RktSym">l</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">cdr</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">reverse</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">cdr</span></span></span><span class="hspace"> </span><span class="RktSym">l</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">24</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">drand</span><span class="hspace"> </span><span class="RktSym">dinf</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dseq</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">make-mce</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mirror1</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">enum-from-to</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">5</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">drand</span><span class="hspace"> </span><span class="RktVal">8</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">make-mce</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">enum-from-to</span><span class="hspace"> </span><span class="RktVal">4</span><span class="hspace"> </span><span class="RktVal">11</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">demand</span><span class="hspace"> </span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktVal">100</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-1</span></span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">o</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">add</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0.7</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">scale-neg</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">cubed</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">cubed</span><span class="hspace"> </span><span class="RktSym">o</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">x</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">r</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dust</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dgeom</span><span class="hspace"> </span><span class="RktSym">dinf</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">midi-cps</span><span class="hspace"> </span><span class="RktVal">72</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">midi-ratio</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">demand</span><span class="hspace"> </span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktSym">r</span><span class="hspace"> </span><span class="RktSym">s</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">o</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">add</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0.7</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">u:max</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">cubed</span><span class="hspace"> </span><span class="RktSym">o</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">midi-cps</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">diwhite</span><span class="hspace"> </span><span class="RktSym">dinf</span><span class="hspace"> </span><span class="RktVal">60</span><span class="hspace"> </span><span class="RktVal">72</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">demand</span><span class="hspace"> </span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktSym">s</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">o</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">add</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0.7</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">cubed</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">cubed</span><span class="hspace"> </span><span class="RktSym">o</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.312<tt> </tt><a name="(part.__duty_rate_duration_reset_done.Action_level_)"></a>(duty rate duration reset doneAction level)</h4><p>demand results from demand rate ugens</p><p>A value is demanded from each ugen in the list and output according
|
|
to a stream of duration values. The unit generators in the list
|
|
should be ’demand’ rate. When there is a trigger at the reset
|
|
input, the demand rate ugens in the list and the duration are
|
|
reset. The reset input may also be a demand ugen, providing a
|
|
stream of reset times.</p><p>duration: time values. Can be a demand ugen or any signal. The
|
|
next value is acquired after the duration provided by the last time
|
|
value.</p><p>reset: trigger or reset time values. Resets the list of ugens and
|
|
the duration ugen when triggered. The reset input may also be a
|
|
demand ugen, providing a stream of reset times.</p><p>doneAction: a doneAction that is evaluated when the duration stream
|
|
ends.</p><p>level: demand ugen providing the output values.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">duty</span><span class="hspace"> </span><span class="RktSym">kr</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">drand</span><span class="hspace"> </span><span class="RktSym">dinf</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce3</span><span class="hspace"> </span><span class="RktVal">0.01</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="hspace"> </span><span class="RktVal">0.4</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">2</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dseq</span><span class="hspace"> </span><span class="RktSym">dinf</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">make-mce</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">list</span></span></span><span class="hspace"> </span><span class="RktVal">204</span><span class="hspace"> </span><span class="RktVal">400</span><span class="hspace"> </span><span class="RktVal">201</span><span class="hspace"> </span><span class="RktVal">502</span><span class="hspace"> </span><span class="RktVal">300</span><span class="hspace"> </span><span class="RktVal">200</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">o</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">1.01</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktSym">o</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">duty</span><span class="hspace"> </span><span class="RktSym">kr</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.001</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">2</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dseq</span><span class="hspace"> </span><span class="RktSym">dinf</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">make-mce</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">list</span></span></span><span class="hspace"> </span><span class="RktVal">204</span><span class="hspace"> </span><span class="RktVal">400</span><span class="hspace"> </span><span class="RktVal">201</span><span class="hspace"> </span><span class="RktVal">502</span><span class="hspace"> </span><span class="RktVal">300</span><span class="hspace"> </span><span class="RktVal">200</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">o</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">1.0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktSym">o</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.313<tt> </tt><a name="(part.__dser_length_array_)"></a>(dser length array)</h4><p>demand rate sequence generator.</p><p>array - array of values or other ugens
|
|
length - number of values to return</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dser</span><span class="hspace"> </span><span class="RktSym">dinf</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">make-mce</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">list</span></span></span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">3</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktVal">7</span><span class="hspace"> </span><span class="RktVal">8</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">40</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">demand</span><span class="hspace"> </span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">30</span><span class="hspace"> </span><span class="RktVal">340</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.314<tt> </tt><a name="(part.__dgeom_length_start_grow_)"></a>(dgeom length start grow)</h4><p>demand rate geometric series ugen.</p><p>start - start value
|
|
grow - value by which to grow ( x = x[-1] * grow )
|
|
length - number of values to create</p><p>The arguments can be a number or any other ugen</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dgeom</span><span class="hspace"> </span><span class="RktVal">15</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">1.2</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">40</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">demand</span><span class="hspace"> </span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">30</span><span class="hspace"> </span><span class="RktVal">340</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>demand rate UGens are not shared...</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dgeom</span><span class="hspace"> </span><span class="RktVal">15</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">1.2</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">40</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">demand</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">delay1</span><span class="hspace"> </span><span class="RktSym">t</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">30</span><span class="hspace"> </span><span class="RktVal">340</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f1</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">demand</span><span class="hspace"> </span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">30</span><span class="hspace"> </span><span class="RktVal">340</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktSym">f0</span><span class="hspace"> </span><span class="RktSym">f1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">a0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dgeom</span><span class="hspace"> </span><span class="RktVal">15</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">1.2</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">a1</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dgeom</span><span class="hspace"> </span><span class="RktVal">15</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">1.2</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">40</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">demand</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">delay1</span><span class="hspace"> </span><span class="RktSym">t</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktSym">a0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">30</span><span class="hspace"> </span><span class="RktVal">340</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f1</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">demand</span><span class="hspace"> </span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktSym">a1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">30</span><span class="hspace"> </span><span class="RktVal">340</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktSym">f0</span><span class="hspace"> </span><span class="RktSym">f1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.315<tt> </tt><a name="(part.__drand__length_array_)"></a>(drand length array)</h4><p>(dxrand length array)</p><p>demand rate random sequence generators.</p><p>length - number of values to return
|
|
array - array of values or other ugens</p><p>dxrand never plays the same value twice, whereas drand chooses any
|
|
value in the list.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">u</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">u</span><span class="hspace"> </span><span class="RktSym">dinf</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">make-mce</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">list</span></span></span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">3</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktVal">7</span><span class="hspace"> </span><span class="RktVal">8</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">400</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">demand</span><span class="hspace"> </span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">30</span><span class="hspace"> </span><span class="RktVal">340</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktSym">drand</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktSym">dxrand</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.316<tt> </tt><a name="(part._.See_drand)"></a>See drand</h4><h4>2.317<tt> </tt><a name="(part.__dseries_length_start_step_)"></a>(dseries length start step)</h4><p>demand rate arithmetic series ugen.</p><p>length - number of values to create
|
|
start - start value
|
|
step - step value</p><p>The arguments can be a number or any other ugen</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dseries</span><span class="hspace"> </span><span class="RktVal">15</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">40</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">demand</span><span class="hspace"> </span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">30</span><span class="hspace"> </span><span class="RktVal">340</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.318<tt> </tt><a name="(part.__dswitch_index_array_)"></a>(dswitch index array)</h4><p>demand rate generator for switching between inputs</p><p>index - which of the inputs to return
|
|
array - array of values or other ugens</p><p>In difference to dswitch1, dswitch embeds all items
|
|
of an input demand ugen first before looking up the
|
|
next index.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">a0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dwhite</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktVal">3</span><span class="hspace"> </span><span class="RktVal">4</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">a1</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dwhite</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">a2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dseq</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">make-mce</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">list</span></span></span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dseq</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">make-mce</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">list</span></span></span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">d</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dswitch</span><span class="hspace"> </span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">make-mce</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">list</span></span></span><span class="hspace"> </span><span class="RktSym">a0</span><span class="hspace"> </span><span class="RktSym">a1</span><span class="hspace"> </span><span class="RktSym">a2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">4</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">demand</span><span class="hspace"> </span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktSym">d</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">300</span><span class="hspace"> </span><span class="RktVal">400</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">o</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktSym">o</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>compare with dswitch1</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">a0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dwhite</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktVal">3</span><span class="hspace"> </span><span class="RktVal">4</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">a1</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dwhite</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">a2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dseq</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">make-mce</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">list</span></span></span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dseq</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">make-mce</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">list</span></span></span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">d</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dswitch1</span><span class="hspace"> </span><span class="RktSym">i</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">make-mce</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">list</span></span></span><span class="hspace"> </span><span class="RktSym">a0</span><span class="hspace"> </span><span class="RktSym">a1</span><span class="hspace"> </span><span class="RktSym">a2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">4</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">demand</span><span class="hspace"> </span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktSym">d</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">300</span><span class="hspace"> </span><span class="RktVal">400</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">o</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktSym">o</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.319<tt> </tt><a name="(part._.See_dbrown)"></a>See dbrown</h4><h4>2.320<tt> </tt><a name="(part.__dbrown__length_lo_hi_step_)"></a>(dbrown length lo hi step)</h4><p>(dibrown length lo hi step)</p><p>demand rate brownian movement generators.</p><p>lo - minimum value
|
|
hi - maximum value
|
|
step - maximum step for each new value
|
|
length - number of values to create</p><p>dbrown returns numbers in the continuous range between lo and hi,
|
|
dibrown returns integer values. The arguments can be a number or
|
|
any other ugen.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">u</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">u</span><span class="hspace"> </span><span class="RktSym">dinf</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">15</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">40</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">demand</span><span class="hspace"> </span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">30</span><span class="hspace"> </span><span class="RktVal">340</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktSym">dbrown</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktSym">dibrown</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.321<tt> </tt><a name="(part.__dseq_length_array_)"></a>(dseq length array)</h4><p>demand rate sequence generator.</p><p>array - array of values or other ugens
|
|
length - number of repeats</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dseq</span><span class="hspace"> </span><span class="RktVal">3</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">make-mce</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">list</span></span></span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">3</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktVal">7</span><span class="hspace"> </span><span class="RktVal">8</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">40</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">demand</span><span class="hspace"> </span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">30</span><span class="hspace"> </span><span class="RktVal">340</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dseq</span><span class="hspace"> </span><span class="RktSym">dinf</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">make-mce</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">replicate-m</span><span class="hspace"> </span><span class="RktVal">32</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">random</span></span></span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">10</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">10000</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">demand</span><span class="hspace"> </span><span class="RktSym">t</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">30</span><span class="hspace"> </span><span class="RktVal">340</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.322<tt> </tt><a name="(part._.See_latoocarfian-c_)"></a>See latoocarfian-c.</h4><h4>2.323<tt> </tt><a name="(part.__fb-sine-c_rate_freq_im_fb_a_c_xi_yi_)"></a>(fb-sine-c rate freq im fb a c xi yi)</h4><p>Feedback sine with chaotic phase indexing.</p><p>freq - iteration frequency in Hz - 22050
|
|
im - index multiplier amount - 1
|
|
fb - feedback amount - 0.1
|
|
a - phase multiplier amount - 1.1
|
|
c - phase increment amount - 0.5
|
|
xi - initial value of x - 0.1
|
|
yi - initial value of y - 0.1</p><p>A cubic-interpolating sound generator based on the difference
|
|
equations:</p><p>xn+1 = sin(im*yn + fb*xn)
|
|
yn+1 = (ayn + c) % 2pi</p><p>This uses a linear congruential function to drive the phase
|
|
indexing of a sine wave. For im = 1, fb = 0, and a = 1 a normal
|
|
sinewave results.</p><p>sclang default values</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fb-sine-c</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fdiv</span><span class="hspace"> </span><span class="RktSym">sample-rate</span><span class="hspace"> </span><span class="RktVal">4</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal">1.1</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>increase feedback</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">fb</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.01</span><span class="hspace"> </span><span class="RktVal">4</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktSym">do-nothing</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fb-sine-c</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">sample-rate</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktSym">fb</span><span class="hspace"> </span><span class="RktVal">1.1</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>increase phase multiplier</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktSym">do-nothing</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fb-sine-c</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">sample-rate</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktSym">a</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>randomly modulate parameters</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">12</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">m</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-noise2</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktSym">x</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">m</span><span class="hspace"> </span><span class="RktSym">a</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fb-sine-c</span><span class="hspace"> </span><span class="RktSym">ar</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">10000.0</span><span class="hspace"> </span><span class="RktVal">10000.0</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">32</span><span class="hspace"> </span><span class="RktVal">33</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0.05</span><span class="hspace"> </span><span class="RktVal">1.05</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0.3</span><span class="hspace"> </span><span class="RktVal">0.3</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0.1</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.324<tt> </tt><a name="(part._.See_fb-sine-c)"></a>See fb-sine-c</h4><h4>2.325<tt> </tt><a name="(part.__quad-n_rate_freq_a_b_c_xi_)"></a>(quad-n rate freq a b c xi)</h4><p>(quad-l rate freq a b c xi)
|
|
(quad-c rate freq a b c xi)</p><p>freq - iteration frequency in Hertz
|
|
a, b, c - equation variables
|
|
xi - initial value of x</p><p>General quadratic map chaotic generator. Non-, linear- and cubic-
|
|
interpolating sound generators based on the difference equation:
|
|
xn+1 = axn2 + bxn + c</p><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">define</span></span></span><span class="hspace"> </span><span class="RktSym">quad_</span><span class="hspace"> </span><span class="RktSym">quad-c</span><span class="RktPn">)</span></p></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">quad_</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">4000</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-1</span></span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-0</span>.75</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">r</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">3.5441</span><span class="hspace"> </span><span class="RktVal">4</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">quad_</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">4000.0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">neg</span><span class="hspace"> </span><span class="RktSym">r</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">r</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.4</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">r</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">3.5441</span><span class="hspace"> </span><span class="RktVal">4</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">quad_</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">4</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">neg</span><span class="hspace"> </span><span class="RktSym">r</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">r</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">800</span><span class="hspace"> </span><span class="RktVal">900</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0.4</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.326<tt> </tt><a name="(part.__lorenz-l_rate_freq_s_r_b_h_xi_yi_zi_)"></a>(lorenz-l rate freq s r b h xi yi zi)</h4><p>freq - iteration frequency in Hertz
|
|
s, r, b - equation variables
|
|
h - integration time step
|
|
xi - initial value of x
|
|
yi - initial value of y
|
|
zi - initial value of z</p><p>Lorenz chaotic generator. A strange attractor discovered by Edward
|
|
N. Lorenz while studying mathematical models of the atmosphere.
|
|
The system is composed of three ordinary differential equations:</p><p>x’ = s(y - x)
|
|
y’ = x(r - z) - y
|
|
z’ = xy - bz</p><p>The time step amount h determines the rate at which the ODE is
|
|
evaluated. Higher values will increase the rate, but cause more
|
|
instability. A safe choice is the default amount of 0.05.</p><p>vary frequency</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lorenz-l</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">20</span><span class="hspace"> </span><span class="RktSym">sample-rate</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktVal">28</span><span class="hspace"> </span><span class="RktVal">2.667</span><span class="hspace"> </span><span class="RktVal">0.05</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0.3</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>randomly modulate params</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lorenz-l</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">sample-rate</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-noise0</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktVal">10</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-noise0</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">20</span><span class="hspace"> </span><span class="RktVal">38</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-noise0</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">1.5</span><span class="hspace"> </span><span class="RktVal">2</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0.05</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal">0.0</span><span class="hspace"> </span><span class="RktVal">0.0</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>as a frequency control</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lag</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lorenz-l</span><span class="hspace"> </span><span class="RktSym">ar</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">200</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">10</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">28</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">2.667</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0.05</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0.1</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0.003</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">800</span><span class="hspace"> </span><span class="RktVal">900</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0.4</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.327<tt> </tt><a name="(part._.See_standard-l_)"></a>See standard-l.</h4><h4>2.328<tt> </tt><a name="(part._.See_quad-n)"></a>See quad-n</h4><h4>2.329<tt> </tt><a name="(part._.See_cusp-n)"></a>See cusp-n</h4><h4>2.330<tt> </tt><a name="(part._.See_latoocarfian-c_)"></a>See latoocarfian-c.</h4><h4>2.331<tt> </tt><a name="(part.__logistic_rate_chaos.Param_freq_)"></a>(logistic rate chaosParam freq)</h4><p>UNDOCUMENTED.</p><p>Implements the equation: y1 = param * y1 * (1.0 - y1)</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">logistic</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">2.9</span><span class="hspace"> </span><span class="RktVal">1000</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.332<tt> </tt><a name="(part._.See_fb-sine-c)"></a>See fb-sine-c</h4><h4>2.333<tt> </tt><a name="(part.__latoocarfian-c_rate_freq_a_b_c_d_xi_yi_)"></a>(latoocarfian-c rate freq a b c d xi yi)</h4><p>(latoocarfian-l rate freq a b c d xi yi)
|
|
(latoocarfian-n rate freq a b c d xi yi)</p><p>This is a function given in Clifford Pickover’s book Chaos in
|
|
Wonderland, pg 26. The function has four parameters a, b, c, and
|
|
d. The function is:</p><p>xnew = sin(y * b) + c * sin(x * b);
|
|
ynew = sin(x * a) + d * sin(y * a);
|
|
x = xnew;
|
|
y = ynew;
|
|
output = x;</p><p>According to Pickover, parameters a and b should be in the range
|
|
from -3 to +3, and parameters c and d should be in the range from
|
|
0.5 to 1.5. The function can, depending on the parameters given,
|
|
give continuous chaotic output, converge to a single value
|
|
(silence) or oscillate in a cycle (tone). This UGen is
|
|
experimental and not optimized currently, so is rather hoggish of
|
|
CPU.</p><p>Default initial parameters.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">20</span><span class="hspace"> </span><span class="RktSym">sample-rate</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">latoocarfian-c</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">3</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>randomly modulate all parameters.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">latoocarfian-c</span><span class="hspace"> </span><span class="RktSym">ar</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fdiv</span><span class="hspace"> </span><span class="RktSym">sample-rate</span><span class="hspace"> </span><span class="RktVal">4</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-noise2</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">2</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">1.5</span><span class="hspace"> </span><span class="RktVal">1.5</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-noise2</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">2</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">1.5</span><span class="hspace"> </span><span class="RktVal">1.5</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-noise2</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">2</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="hspace"> </span><span class="RktVal">1.5</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-noise2</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">2</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="hspace"> </span><span class="RktVal">1.5</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0.5</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.334<tt> </tt><a name="(part.__rossler_rate_chaos.Param_dt_)"></a>(rossler rate chaosParam dt)</h4><p>The Rossler attractor is a well known chaotic function. The
|
|
chaosParam can be varied from 1.0 to 25.0 with a dt of 0.04. Valid
|
|
ranges for chaosParam vary depending on dt.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rossler</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">4</span><span class="hspace"> </span><span class="RktVal">0.08</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.335<tt> </tt><a name="(part.__standard-l_rate_freq_k_xi_yi_)"></a>(standard-l rate freq k xi yi)</h4><p>(standard-n rate freq k xi yi)</p><p>Standard map chaotic generator.</p><p>freq - iteration frequency in Hertz
|
|
k - perturbation amount
|
|
xi - initial value of x
|
|
yi - initial value of y</p><p>A linear-interpolating sound generator based on the difference
|
|
equations:</p><p>xn+1 = (xn + yn+1) % 2pi
|
|
yn+1 = (yn + ksin(xn)) % 2pi</p><p>The standard map is an area preserving map of a cylinder discovered by
|
|
the plasma physicist Boris Chirikov.</p><p>Vary frequency</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">standard-l</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">20</span><span class="hspace"> </span><span class="RktSym">sample-rate</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.3</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Mouse-controlled parameter.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fdiv</span><span class="hspace"> </span><span class="RktSym">sample-rate</span><span class="hspace"> </span><span class="RktVal">2</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.9</span><span class="hspace"> </span><span class="RktVal">4</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">standard-l</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.3</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>As a frequency control</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.9</span><span class="hspace"> </span><span class="RktVal">4</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">standard-l</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">40</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">800</span><span class="hspace"> </span><span class="RktVal">900</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.4</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.336<tt> </tt><a name="(part._.See_quad-n)"></a>See quad-n</h4><h4>2.337<tt> </tt><a name="(part.__cusp-n_rate_freq_a_b_xi_)"></a>(cusp-n rate freq a b xi)</h4><p>(cusp-l rate freq a b xi)</p><p>freq - iteration frequency in Hertz
|
|
a, b - equation variables
|
|
xi - initial value of x</p><p>Cusp map chaotic generator. Non- and linear- interpolating sound
|
|
generator based on the difference equation:</p><p>xn+1 = a - b*sqrt(|xn|)</p><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">define</span></span></span><span class="hspace"> </span><span class="RktSym">cusp_</span><span class="hspace"> </span><span class="RktSym">cusp-l</span><span class="RktPn">)</span></p></blockquote><p>vary frequency</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">20</span><span class="hspace"> </span><span class="RktSym">sample-rate</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">cusp_</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktVal">1.0</span><span class="hspace"> </span><span class="RktVal">1.99</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.3</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>mouse-controlled params</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.9</span><span class="hspace"> </span><span class="RktVal">1.1</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">y</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-y</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">1.8</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">cusp_</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fdiv</span><span class="hspace"> </span><span class="RktSym">sample-rate</span><span class="hspace"> </span><span class="RktVal">4</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktSym">y</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.3</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>as a frequency control</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.9</span><span class="hspace"> </span><span class="RktVal">1.1</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">y</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-y</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">1.8</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">cusp_</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">40</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktSym">y</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">800</span><span class="hspace"> </span><span class="RktVal">900</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0.0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.4</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.338<tt> </tt><a name="(part.__lin-cong-c_rate_freq_a_c_m_xi_)"></a>(lin-cong-c rate freq a c m xi)</h4><p>(lin-cong-l rate freq a c m xi)
|
|
(lin-cong-n rate freq a c m xi)</p><p>linear congruential chaotic generator.</p><p>freq - iteration frequency in Hertz
|
|
a - multiplier amount
|
|
c - increment amount
|
|
m - modulus amount
|
|
xi - initial value of x</p><p>A cubic-interpolating sound generator based on the difference
|
|
equation:</p><p>xn+1 = (axn + c) % m</p><p>The output signal is automatically scaled to a range of [-1, 1].</p><p>Default initial parameters.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">20</span><span class="hspace"> </span><span class="RktSym">sample-rate</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lin-cong-c</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktVal">1.1</span><span class="hspace"> </span><span class="RktVal">0.13</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>randomly modulate parameters.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lin-cong-c</span><span class="hspace"> </span><span class="RktSym">ar</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-noise2</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">1.0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">10000.0</span><span class="hspace"> </span><span class="RktVal">10000.0</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-noise2</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="hspace"> </span><span class="RktVal">1.4</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-noise2</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-noise2</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>As frequency control...</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lin-cong-c</span><span class="hspace"> </span><span class="RktSym">ar</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">40</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-noise2</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal">1.0</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-noise2</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-noise2</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">500</span><span class="hspace"> </span><span class="RktVal">600</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0.4</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.339<tt> </tt><a name="(part.__crackle_rate_chaos.Param_)"></a>(crackle rate chaosParam)</h4><p>A noise generator based on a chaotic function. The parameter of
|
|
the chaotic function has useful values from just below 1.0 to just
|
|
above 2.0. Towards 2.0 the sound crackles.</p><p>The equation implemented is: y0 = fabs(y1 * param - y2 - 0.05f)</p><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">crackle</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">1.95</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><p>Modulate chaos parameter</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">p</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">1.0</span><span class="hspace"> </span><span class="RktVal">2.0</span><span class="hspace"> </span><span class="RktVal">3</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">crackle</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">p</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.340<tt> </tt><a name="(part.__henon-n_rate_freq_a_b_x0_x1_)"></a>(henon-n rate freq a b x0 x1)</h4><p>(henon-l rate freq a b x0 x1)
|
|
(henon-c rate freq a b x0 x1)</p><p>Henon map chaotic generator.</p><p>freq - iteration frequency in Hertz – 22050
|
|
a, b - equation variables – 1.4, 0.3
|
|
x0, x1 - initial and second values of x – 0, 0</p><p>A non-interpolating sound generator based on the difference
|
|
equation:</p><p>xn + 2 = 1 - axn + 12 + bxn</p><p>This equation was discovered by French astronomer Michel Henon
|
|
while studying the orbits of stars in globular clusters.</p><p>With default initial parameters.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">henon-n</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">20</span><span class="hspace"> </span><span class="RktSym">sample-rate</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">1.4</span><span class="hspace"> </span><span class="RktVal">0.3</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>With mouse-control of parameters.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">henon-n</span><span class="hspace"> </span><span class="RktSym">ar</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fdiv</span><span class="hspace"> </span><span class="RktSym">sample-rate</span><span class="hspace"> </span><span class="RktVal">4</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">1.4</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-y</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.3</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>With randomly modulate parameters.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">henon-n</span><span class="hspace"> </span><span class="RktSym">ar</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fdiv</span><span class="hspace"> </span><span class="RktSym">sample-rate</span><span class="hspace"> </span><span class="RktVal">8</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-noise2</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="hspace"> </span><span class="RktVal">1.2</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-noise2</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.15</span><span class="hspace"> </span><span class="RktVal">0.15</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>As a frequency control.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">1.4</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">y</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-y</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.3</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">40</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">henon-n</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktSym">y</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">800</span><span class="hspace"> </span><span class="RktVal">900</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0.4</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.341<tt> </tt><a name="(part._.See_henon-n)"></a>See henon-n</h4><h4>2.342<tt> </tt><a name="(part._.See_lin-cong-c_)"></a>See lin-cong-c.</h4><h4>2.343<tt> </tt><a name="(part._.See_.Gbman.L_)"></a>See GbmanL.</h4><h4>2.344<tt> </tt><a name="(part._.See_.Gbman.L_)"></a>See GbmanL.</h4><h4>2.345<tt> </tt><a name="(part._.See_henon-n)"></a>See henon-n</h4><h4>2.346<tt> </tt><a name="(part._.See_lin-cong-c_)"></a>See lin-cong-c.</h4><h4>2.347<tt> </tt><a name="(part.__gbman-c_rate_freq_xi_yi_)"></a>(gbman-c rate freq xi yi)</h4><p>(gbman-l rate freq xi yi)
|
|
(gbman-n rate freq xi yi)</p><p>Gingerbreadman map chaotic generator. Cubic, linear and
|
|
non-interpolating variants.</p><p>freq - iteration frequency in Hertz
|
|
xi - initial value of x
|
|
yi - initial value of y</p><p>A linear-interpolating sound generator based on the difference
|
|
equations:</p><p>xn+1 = 1 - yn + |xn|
|
|
yn+1 = xn</p><p>The behavior of the system is dependent only on its initial conditions
|
|
qand cannot be changed once it’s started.</p><p>Reference: Devaney, R. L. "The Gingerbreadman." Algorithm 3, 15-16,
|
|
Jan. 1992.</p><p>sclang default initial parameters.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">gbman-l</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">20</span><span class="hspace"> </span><span class="RktSym">sample-rate</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">1.2</span><span class="hspace"> </span><span class="RktVal">2.1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Different initial parameters.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">gbman-l</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">20</span><span class="hspace"> </span><span class="RktSym">sample-rate</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-0</span>.7</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-2</span>.7</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Wait for it...</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">gbman-l</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">20</span><span class="hspace"> </span><span class="RktSym">sample-rate</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">1.2</span><span class="hspace"> </span><span class="RktVal">2.0002</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>As a frequency control</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul-add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">gbman-l</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">40</span><span class="hspace"> </span><span class="RktVal">1.2</span><span class="hspace"> </span><span class="RktVal">2.1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">400</span><span class="hspace"> </span><span class="RktVal">500</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.4</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.348<tt> </tt><a name="(part.__lin-pan2_in_pos_level_)"></a>(lin-pan2 in pos level)</h4><p>Two channel linear pan. See pan2.</p><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lin-pan2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pink-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lin-pan2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">800</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">3</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><h4>2.349<tt> </tt><a name="(part.__rotate2_x_y_pos_)"></a>(rotate2 x y pos)</h4><p>Rotate a sound field. rotate2 can be used for rotating an
|
|
ambisonic B-format sound field around an axis. rotate2 does an
|
|
equal power rotation so it also works well on stereo sounds. It
|
|
takes two audio inputs (x, y) and an angle control (pos). It
|
|
outputs two channels (x, y).</p><p>It computes:</p><p>xout = cos(angle) * xin + sin(angle) * yin;
|
|
yout = cos(angle) * yin - sin(angle) * xin;</p><p>where angle = pos * pi, so that -1 becomes -pi and +1 becomes +pi.
|
|
This allows you to use an lf-saw to do continuous rotation around a
|
|
circle.</p><p>The control pos is the angle to rotate around the circle from -1
|
|
to +1. -1 is 180 degrees, -0.5 is left, 0 is forward, +0.5 is
|
|
right, +1 is behind.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">p</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">white-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.05</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">q</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mix</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-saw</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">make-mce</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">list</span></span></span><span class="hspace"> </span><span class="RktVal">200</span><span class="hspace"> </span><span class="RktVal">200.37</span><span class="hspace"> </span><span class="RktVal">201</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.03</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">encoded</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">add</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pan-b2</span><span class="hspace"> </span><span class="RktSym">p</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-0</span>.5</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pan-b2</span><span class="hspace"> </span><span class="RktSym">q</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-0</span>.5</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rotated</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rotate2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce-channel</span><span class="hspace"> </span><span class="RktSym">encoded</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce-channel</span><span class="hspace"> </span><span class="RktSym">encoded</span><span class="hspace"> </span><span class="RktVal">2</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-1</span></span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">decoded</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">decode-b2</span><span class="hspace"> </span><span class="RktVal">4</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce-channel</span><span class="hspace"> </span><span class="RktSym">encoded</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce-channel</span><span class="hspace"> </span><span class="RktSym">rotated</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce-channel</span><span class="hspace"> </span><span class="RktSym">rotated</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktSym">decoded</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Rotation of stereo sound, via LFO.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pink-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.4</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">y</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-tri</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">800</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-pulse</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">3</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.3</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rotate2</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktSym">y</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-saw</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Rotation of stereo sound, via mouse.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mix-fill</span><span class="hspace"> </span><span class="RktVal">4</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">_</span></span></span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-saw</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rand</span><span class="hspace"> </span><span class="RktVal">198</span><span class="hspace"> </span><span class="RktVal">202</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">y</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">900</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">lf-pulse</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">3</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.3</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rotate2</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktSym">y</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.350<tt> </tt><a name="(part.__decode-b2_num.Channels_w_x_y_orientation_)"></a>(decode-b2 numChannels w x y orientation)</h4><p>2D Ambisonic B-format decoder.</p><p>Decode a two dimensional ambisonic B-format signal to a set of
|
|
speakers in a regular polygon. The outputs will be in clockwise
|
|
order. The position of the first speaker is either center or left
|
|
of center.</p><p>The number of output speakers is typically 4 to 8.</p><p>The parameters w, x and y are the B-format signals.</p><p>The parameter orientation should be zero if the front is a vertex
|
|
of the polygon. The first speaker will be directly in
|
|
front. Should be 0.5 if the front bisects a side of the
|
|
polygon. Then the first speaker will be the one left of
|
|
center. Default is 0.5.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">p</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pink-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">encoded</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pan-b2</span><span class="hspace"> </span><span class="RktSym">p</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-1</span></span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">decoded</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">decode-b2</span><span class="hspace"> </span><span class="RktVal">4</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce-channel</span><span class="hspace"> </span><span class="RktSym">encoded</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce-channel</span><span class="hspace"> </span><span class="RktSym">encoded</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce-channel</span><span class="hspace"> </span><span class="RktSym">encoded</span><span class="hspace"> </span><span class="RktVal">2</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktSym">decoded</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.351<tt> </tt><a name="(part.__pan2_in_pos_level_)"></a>(pan2 in pos level)</h4><p>Two channel equal power panner. The pan position is bipolar, -1 is
|
|
left, +1 is right. The level is a control rate input.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">p</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">f-sin-osc</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pan2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pink-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">p</span><span class="hspace"> </span><span class="RktVal">0.3</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-1</span></span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">y</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-y</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pan2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pink-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktSym">y</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.352<tt> </tt><a name="(part.__pan-b2_in_azimuth_gain_)"></a>(pan-b2 in azimuth gain)</h4><p>2D Ambisonic B-format panner. Encode a mono signal to two
|
|
dimensional ambisonic B-format. The azimuth parameter is the
|
|
position around the circle from -1 to +1. -1 is behind, -0.5 is
|
|
left, 0 is forward, +0.5 is right, +1 is behind.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">p</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pink-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">encoded</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pan-b2</span><span class="hspace"> </span><span class="RktSym">p</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-1</span></span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">decoded</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">decode-b2</span><span class="hspace"> </span><span class="RktVal">4</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce-channel</span><span class="hspace"> </span><span class="RktSym">encoded</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce-channel</span><span class="hspace"> </span><span class="RktSym">encoded</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce-channel</span><span class="hspace"> </span><span class="RktSym">encoded</span><span class="hspace"> </span><span class="RktVal">2</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">0.5</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktSym">decoded</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.353<tt> </tt><a name="(part.__detect-silence_in_amp_time_done.Action_)"></a>(detect-silence in amp time doneAction)</h4><p>If the signal at ‘in’ falls below ‘amp’ for ‘time’ seconds then
|
|
‘doneAction’ is raised.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">440</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-y</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.4</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mrg2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">detect-silence</span><span class="hspace"> </span><span class="RktSym">s</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktSym">s</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">with-sc3</span><span class="hspace"> </span><span class="RktSym">display-server-status</span><span class="RktPn">)</span></p></blockquote><h4>2.354<tt> </tt><a name="(part.__line_rate_start_end_dur_done.Action_)"></a>(line rate start end dur doneAction)</h4><p>Generates a line from the start value to the end value.</p><p>start - starting value
|
|
end - ending value
|
|
dur - duration in seconds</p><p>Note: The SC3 UGen reorders the mul and add inputs to precede the
|
|
doneAction input.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">200</span><span class="hspace"> </span><span class="RktVal">17000</span><span class="hspace"> </span><span class="RktVal">5</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.355<tt> </tt><a name="(part.__free_trig_node.I.D_)"></a>(free trig nodeID)</h4><p>When triggered frees a node.</p><p>trig - when triggered, frees node
|
|
nodeID - node to be freed</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">send-synth</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktVal">"a"</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">800</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">send-synth</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktVal">"b"</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mrg2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pink-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">free</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">dust</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">6</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">1001</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">send</span></span></span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">s-new0</span><span class="hspace"> </span><span class="RktVal">"a"</span><span class="hspace"> </span><span class="RktVal">1001</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">send</span></span></span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">s-new0</span><span class="hspace"> </span><span class="RktVal">"b"</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-1</span></span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">with-sc3</span><span class="hspace"> </span><span class="RktSym">reset</span><span class="RktPn">)</span></p></blockquote><h4>2.356<tt> </tt><a name="(part.__pause-self-when-done_src_)"></a>(pause-self-when-done src)</h4><p>pause the synth when the ’done’ flag of the unit at ‘src’ is set.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-1</span></span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">e</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">linen</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktSym">pause-synth</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">440</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">e</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-1</span></span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">e</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">linen</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktSym">do-nothing</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mrg2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pause-self-when-done</span><span class="hspace"> </span><span class="RktSym">e</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">440</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">e</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.357<tt> </tt><a name="(part.__pause-self_src_)"></a>(pause-self src)</h4><p>pause enclosing synth when input signal crosses from non-positive
|
|
to positive. If the synth is restarted and the gate reset the
|
|
synthesis *not* paused a second time.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mrg2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pause-self</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-1</span></span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">440</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.358<tt> </tt><a name="(part.__env-gen_rate_gate_level.Scale_level.Bias_time.Scale_done.Action_envelope_)"></a>(env-gen rate gate levelScale levelBias timeScale doneAction envelope)</h4><p>A segment based envelope generator. Note that the SC3 language
|
|
reorders the inputs to this UGen so that the envelope is the first
|
|
argument.</p><p>There are utilities for contructing the envelope argument.</p><p>The arguments for levelScale, levelBias, and timeScale are polled
|
|
when the env-gen is triggered and remain constant for the duration
|
|
of the envelope.</p><p>envelope - an breakpoint set</p><p>gate - this triggers the envelope and holds it open while > 0. If
|
|
the Env is fixed-length (e.g. Env.linen, Env.perc), the gate
|
|
argument is used as a simple trigger. If it is an sustaining
|
|
envelope (e.g. Env.adsr, Env.asr), the envelope is held open
|
|
until the gate becomes 0, at which point is released.</p><p>levelScale - scales the levels of the breakpoints.</p><p>levelBias - offsets the levels of the breakpoints.</p><p>timeScale - scales the durations of the segments.</p><p>doneAction - an integer representing an action to be executed when
|
|
the env is finished playing. This can be used to free
|
|
the enclosing synth, etc.</p><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">import</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rhs</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rsc3</span><span class="RktPn">)</span><span class="RktPn">)</span></p></blockquote><p>Percussive envelope</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">d</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">env-perc</span><span class="hspace"> </span><span class="RktVal">0.01</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">list</span></span></span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-4</span></span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-4</span></span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">e</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">env-gen</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="hspace"> </span><span class="RktSym">d</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktSym">e</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">440</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>The break-point assistant makes a static envelope from a
|
|
co-ordinate list. There is a duration and amplitude scalar.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">d</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">env-coord</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">list</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">cons</span></span></span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">cons</span></span></span><span class="hspace"> </span><span class="RktVal">0.75</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">cons</span></span></span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">replicate</span><span class="hspace"> </span><span class="RktVal">3</span><span class="hspace"> </span><span class="RktVal">"linear"</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">e</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">env-gen</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="hspace"> </span><span class="RktSym">d</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktSym">e</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">440</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Trapezoidal</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">d</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">env-trapezoid</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.25</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">e</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">env-gen</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="hspace"> </span><span class="RktSym">d</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktSym">e</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">440</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>0.0 3 -1 -1 0.1 0.5 1.0 0.0 0.1 0.0 1.0 0.0 0.0 1.5 1.0 0.0</p><blockquote class="SCodeFlow"><p><span class="RktPn">(</span><span class="RktSym">env-trapezoid</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.25</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span></p></blockquote><h4>2.359<tt> </tt><a name="(part.__free-self-when-done_src_)"></a>(free-self-when-done src)</h4><p>free the synth when the ’done’ flag of the unit at ‘src’ is set.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-1</span></span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">e</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">linen</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">440</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">e</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-1</span></span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">e</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">linen</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktSym">do-nothing</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mrg2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">free-self-when-done</span><span class="hspace"> </span><span class="RktSym">e</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">440</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">e</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.360<tt> </tt><a name="(part.__pause_gate_node.I.D_)"></a>(pause gate nodeID)</h4><p>When triggered pauses a node.</p><p>gate - when gate is 0, node is paused, when 1 it runs
|
|
nodeID - node to be paused</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">send-synth</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktVal">"a"</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">800</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">send-synth</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktVal">"b"</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">letc</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">g</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">Mrg</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pink-noise</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.05</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">pause</span><span class="hspace"> </span><span class="RktSym">g</span><span class="hspace"> </span><span class="RktVal">1001</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">send</span></span></span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">/s_new</span><span class="hspace"> </span><span class="RktVal">"a"</span><span class="hspace"> </span><span class="RktVal">1001</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">send</span></span></span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">/s_new</span><span class="hspace"> </span><span class="RktVal">"b"</span><span class="hspace"> </span><span class="RktVal">1002</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">sleep</span></span></span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">send</span></span></span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">/n_set</span><span class="hspace"> </span><span class="RktVal">1002</span><span class="hspace"> </span><span class="RktVal">"g"</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">sleep</span></span></span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">send</span></span></span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">/n_set</span><span class="hspace"> </span><span class="RktVal">1002</span><span class="hspace"> </span><span class="RktVal">"g"</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">sleep</span></span></span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">reset</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.361<tt> </tt><a name="(part.__x-line_rate_start_end_dur_done.Action_)"></a>(x-line rate start end dur doneAction)</h4><p>Exponential line generator. Generates an exponential curve from
|
|
the start value to the end value. Both the start and end values
|
|
must be non-zero and have the same sign.</p><p>start - starting value
|
|
end - ending value
|
|
dur - duration in seconds
|
|
doneAction - a doneAction to be evaluated when the x-line is
|
|
completed. See env-gen for details.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x-line</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">200</span><span class="hspace"> </span><span class="RktVal">17000</span><span class="hspace"> </span><span class="RktVal">10</span><span class="hspace"> </span><span class="RktSym">remove-synth</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktSym">f</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.362<tt> </tt><a name="(part.__done_src_)"></a>(done src)</h4><p>outputs a unit signal if the ’done’ flag of the unit at ‘src’ is
|
|
set, else output zero.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-1</span></span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">e</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">linen</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="hspace"> </span><span class="RktSym">do-nothing</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">l</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">880</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">r</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">440</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mce2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">done</span><span class="hspace"> </span><span class="RktSym">e</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">l</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktSym">e</span><span class="hspace"> </span><span class="RktSym">r</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.363<tt> </tt><a name="(part.__linen_gate_attack.Time_sus.Level_release.Time_done.Action_)"></a>(linen gate attackTime susLevel releaseTime doneAction)</h4><p>A linear envelope generator. The done flag is set when the
|
|
envelope reaches zero.</p><p>Note that the sustain level input is consulted only at the instant
|
|
when the gate is opened.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">e</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">linen</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">impulse</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">2</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.01</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal">0.4</span><span class="hspace"> </span><span class="RktSym">do-nothing</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">440</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">e</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">y</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-y</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal">0.5</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-1</span></span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">e</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">linen</span><span class="hspace"> </span><span class="RktSym">x</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktSym">y</span><span class="hspace"> </span><span class="RktVal">1.0</span><span class="hspace"> </span><span class="RktSym">do-nothing</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">o</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">440</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">audition</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktSym">o</span><span class="hspace"> </span><span class="RktSym">e</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><p>Open gate for a random interval.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let*</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">r</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">rand</span><span class="hspace"> </span><span class="RktVal">0.05</span><span class="hspace"> </span><span class="RktVal">0.4</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">u</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">letc</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">gate</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">let</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktPn">(</span><span class="RktSym">e</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">linen</span><span class="hspace"> </span><span class="RktSym">gate</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktVal">0.2</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="hspace"> </span><span class="RktSym">do-nothing</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">440</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">e</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">g</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">encode-graphdef</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">synthdef</span><span class="hspace"> </span><span class="RktVal">"linen"</span><span class="hspace"> </span><span class="RktSym">u</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">with-sc3</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">lambda</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">fd</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">async</span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">d-recv</span><span class="hspace"> </span><span class="RktSym">g</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">send</span></span></span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">s-new0</span><span class="hspace"> </span><span class="RktVal">"linen"</span><span class="hspace"> </span><span class="RktVal">1001</span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">send</span></span></span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">bundle</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">utc</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">n-set1</span><span class="hspace"> </span><span class="RktVal">1001</span><span class="hspace"> </span><span class="RktVal">"gate"</span><span class="hspace"> </span><span class="RktVal">1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">send</span></span></span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">bundle</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">+</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">utc</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktSym">r</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">n-set1</span><span class="hspace"> </span><span class="RktVal">1001</span><span class="hspace"> </span><span class="RktVal">"gate"</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">sleep</span></span></span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">*</span></span></span><span class="hspace"> </span><span class="RktSym">r</span><span class="hspace"> </span><span class="RktVal">4</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><span class="badlink"><span class="RktValLink">send</span></span></span><span class="hspace"> </span><span class="RktSym">fd</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">n-free1</span><span class="hspace"> </span><span class="RktVal">1001</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><h4>2.364<tt> </tt><a name="(part.__free-self_src_)"></a>(free-self src)</h4><p>free enclosing synth when the input signal ‘src’ crosses from
|
|
non-positive to positive.</p><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym">audition</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mrg2</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">free-self</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mouse-x</span><span class="hspace"> </span><span class="RktSym">kr</span><span class="hspace"> </span><span class="RktVal"><span class="nobreak">-1</span></span><span class="hspace"> </span><span class="RktVal">1</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">out</span><span class="hspace"> </span><span class="RktVal">0</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">mul</span><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">sin-osc</span><span class="hspace"> </span><span class="RktSym">ar</span><span class="hspace"> </span><span class="RktVal">440</span><span class="hspace"> </span><span class="RktVal">0</span><span class="RktPn">)</span><span class="hspace"> </span><span class="RktVal">0.1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote><div class="navsetbottom"><span class="navleft"><div class="nosearchform"></div> <span class="tocsettoggle"> <a href="javascript:void(0);" title="show/hide table of contents" onclick="TocsetToggle();">contents</a></span></span><span class="navright"> <a href="rsc3__server_commands.html" title="backward to "1 rsc3: server commands"" data-pltdoc="x">← prev</a> <a href="index.html" title="up to "rsc3: racket/scheme/supercollider"" data-pltdoc="x">up</a> <a href="rsc3__tutorials.html" title="forward to "3 rsc3: tutorials"" data-pltdoc="x">next →</a></span> </div></div></div><div id="contextindicator"> </div></body></html> |