You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
MIDIClient.init;
|
|
MIDIIn.connectAll;
|
|
|
|
|
|
(
|
|
MIDIdef.noteOn(\noteOnTest, {
|
|
arg vel, nn, chan, src;
|
|
[vel, nn].postln;
|
|
|
|
{
|
|
var sig, env;
|
|
sig = LFTri.ar(nn.midicps)!2;
|
|
env = EnvGen.kr(Env.perc, doneAction:2);
|
|
sig = sig * env * vel.linexp(1,127,0.01,0.3);
|
|
}.play;
|
|
});
|
|
)
|
|
|