finalized 808 patch

master
Leo Coogan 8 months ago
parent 35ea60b2ab
commit 3d19bb157e
Signed by: lcoogan
SSH Key Fingerprint: SHA256:vnrR5ilHkdr6L4t2yOMUMINFPpxEh+53N3nMel66mCw

@ -18,7 +18,7 @@ MIDIdef.cc(\ccTest, {
// Load samples
(
~sampleDir = PathName("/home/lcoogan/snd/samples/seq/@808").fullPath;
~sampleDir = PathName("/home/lcoogan/snd/live/2025-04-26.Basic_City_Brewery/seq/borrowed_flesh/808").fullPath;
~samples = Dictionary.newFrom(
(
@ -38,7 +38,7 @@ MIDIdef.cc(\ccTest, {
~samples[39].class;
(
~sampleDir = PathName("/home/lcoogan/snd/samples/seq/@808");
~sampleDir = PathName("/home/lcoogan/snd/live/2025-04-26.Basic_City_Brewery/seq/borrowed_flesh/808");
~sample = ();
~sampleDir.entries.do({ |pn|
var sym;
@ -48,11 +48,11 @@ MIDIdef.cc(\ccTest, {
)
// Define the Synth for sample triggering with amp bus and drum bus
("/home/lcoogan/snd/live/2025-04-26.Basic_City_Brewery/trax/05-Cantor_Zavel_Kwartin_Ribono_Shel_Olam.wav""/home/lcoogan/snd/live/20"/home/lcoogan/snd/live/2025-04-26.Basic_City_Brewery/trax/02-Cantor_Mordechai_Hershman_Baruch_Hashem_Bayom.wav"25"/home/lcoogan/snd/live/2025-04-26.Basic_City_Brewery/trax/05-Cantor_Zavel_Kwartin_Ribono_Shel_Olam.wav"-04-26.Basic_City_Brewery/trax/05-Cantor_Zavel_Kwartin_Ribono_Shel_Olam.wav"
(
SynthDef(\sampleTrigger, { |buf, ampin = 0, outbus = 0|
var sound, amp;
amp = In.kr(ampin, 1);
sound = PlayBuf.ar(1, buf, BufRateScale.ir(buf), doneAction: 2);"/home/lcoogan/snd/live/2025-04-26.Basic_City_Brewery/trax/05-Cantor_Zavel_Kwartin_Ribono_Shel_Olam.wav"
sound = PlayBuf.ar(1, buf, BufRateScale.ir(buf), doneAction: 2);
sound = sound * amp;
Out.ar(outbus, sound.dup);
}).add;
@ -119,7 +119,8 @@ MIDIdef.cc('808amp', { |val, num|
}, ccNum: [24, 29, 48, 51, 54, 57, 60, 63, 82, 85, 88], chan: [1]);
MIDIdef.cc('drumBusAmp', { |val|
~drumAmpBus.set(val / 127)
}, ccNum: 2, chan: 2);
~drumAmpBus.set(val / 127);
["808 volume", val/127].postln;
}, ccNum: 0, chan: 3);
)
MIDIFunc.trace(true);
Loading…
Cancel
Save