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/makeBufferProcessingNdef.sc

18 lines
302 B

+ NodeDictionary {
makeBufferProcessingNdef {
| name, buf, quant = 1.0 |
var internalName = if(name.isNil, {this[\name]}, {name});
Ndef(internalName, {
var freq, signal, env, gate;
signal = SynthDef.wrap(
func: this[\func],
prependArgs: [buf]
);
signal * \amp.kr(1);
});
}
}