You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
569 B
24 lines
569 B
+ NodeDictionary {
|
|
makeSourceSynthDef {
|
|
^SynthDef(this[\name], {
|
|
var freq, signal, gate;
|
|
|
|
gate = \gate.tr(0);
|
|
freq = \freq.kr(220);
|
|
|
|
if(this[\useFreqLag].asBoolean, {
|
|
freq = Lag.kr(freq, \freqLag.kr(0.5));
|
|
});
|
|
|
|
signal = SynthDef.wrap(
|
|
func: this[\func],
|
|
prependArgs: [freq, gate]
|
|
);
|
|
|
|
Out.ar(
|
|
\out.kr(0),
|
|
signal,
|
|
);
|
|
});
|
|
}
|
|
} |