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.
bmSClib/NodeDictionary/makeSourceNdef.sc

24 lines
590 B

+ NodeDictionary {
makeSourceNdef {
| name |
var internalName = if(name.isNil, {this[\name]}, {name});
Ndef(internalName, {
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]
);
this.processSig(signal, gate);
});
}
}