|
|
|
|
@ -62,7 +62,7 @@ SynthDef(\sampleTrigger, { |buf, ampin = 0|
|
|
|
|
|
amp = In.kr(ampin, 1);
|
|
|
|
|
sound = PlayBuf.ar(1, buf, BufRateScale.ir(buf), doneAction: 2); // doneAction: 2 will free the synth when it's done
|
|
|
|
|
sound = sound * amp;
|
|
|
|
|
Out.ar(0, sound); // Send to audio output
|
|
|
|
|
Out.ar(0, sound!2); // Send to audio output
|
|
|
|
|
}).add;
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
@ -137,7 +137,7 @@ MIDIdef.noteOn('808trig', { |vel, nn|
|
|
|
|
|
{75} {
|
|
|
|
|
Synth(\sampleTrigger, [buf: ~sample.cl, ampin: ~clampbus]);
|
|
|
|
|
}
|
|
|
|
|
}, noteNum: [36, 38, 39, 42, 43, 46, 47, 49, 50, 56, 62, 63, 64, 70, 75], chan: [0]);
|
|
|
|
|
}, noteNum: [36, 38, 39, 42, 43, 46, 47, 49, 50, 56, 62, 63, 64, 70, 75], chan: [1]);
|
|
|
|
|
|
|
|
|
|
MIDIdef.cc('808amp', { |val, num|
|
|
|
|
|
switch(num)
|
|
|
|
|
@ -153,6 +153,6 @@ MIDIdef.cc('808amp', { |val, num|
|
|
|
|
|
{85} {~cyampbus.value = val / 127}
|
|
|
|
|
{88} {~cbampbus.value = val / 127};
|
|
|
|
|
|
|
|
|
|
}, ccNum: [24, 29, 48, 51, 54, 57, 60, 63, 82, 85, 88], chan: [0]);
|
|
|
|
|
}, ccNum: [24, 29, 48, 51, 54, 57, 60, 63, 82, 85, 88], chan: [1]);
|
|
|
|
|
)
|
|
|
|
|
MIDIFunc.trace(true)
|