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.
29 lines
466 B
29 lines
466 B
NodeDictionary : IdentityDictionary {
|
|
getDefaultOr {
|
|
| key, defaultValue |
|
|
if(this[\defaults][key].isNil, {
|
|
^defaultValue
|
|
}, {
|
|
^this[\defaults][key]
|
|
});
|
|
}
|
|
|
|
makeAnalysysNdef {
|
|
^Ndef(this[\name], {
|
|
var input = SoundIn.ar(\bus.kr(0));
|
|
var signal = SynthDef.wrap(
|
|
func: this[\func],
|
|
prependArgs: [input]
|
|
);
|
|
|
|
if(this[\convertToKr].isNil.not
|
|
and:
|
|
this[\convertToKr] == true,
|
|
{
|
|
A2K.kr(signal);
|
|
}, {
|
|
signal;
|
|
});
|
|
});
|
|
}
|
|
} |