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 // 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( ~samples = Dictionary.newFrom(
( (
@ -38,7 +38,7 @@ MIDIdef.cc(\ccTest, {
~samples[39].class; ~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 = (); ~sample = ();
~sampleDir.entries.do({ |pn| ~sampleDir.entries.do({ |pn|
var sym; var sym;
@ -48,11 +48,11 @@ MIDIdef.cc(\ccTest, {
) )
// Define the Synth for sample triggering with amp bus and drum bus // 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| SynthDef(\sampleTrigger, { |buf, ampin = 0, outbus = 0|
var sound, amp; var sound, amp;
amp = In.kr(ampin, 1); 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; sound = sound * amp;
Out.ar(outbus, sound.dup); Out.ar(outbus, sound.dup);
}).add; }).add;
@ -119,7 +119,8 @@ MIDIdef.cc('808amp', { |val, num|
}, ccNum: [24, 29, 48, 51, 54, 57, 60, 63, 82, 85, 88], chan: [1]); }, ccNum: [24, 29, 48, 51, 54, 57, 60, 63, 82, 85, 88], chan: [1]);
MIDIdef.cc('drumBusAmp', { |val| MIDIdef.cc('drumBusAmp', { |val|
~drumAmpBus.set(val / 127) ~drumAmpBus.set(val / 127);
}, ccNum: 2, chan: 2); ["808 volume", val/127].postln;
}, ccNum: 0, chan: 3);
) )
MIDIFunc.trace(true); MIDIFunc.trace(true);
Loading…
Cancel
Save