|
|
|
@ -55,10 +55,10 @@ SynthDef(\masterPlayerControl, {
|
|
|
|
|
|
|
|
|
|
imp = Impulse.kr(10);
|
|
|
|
|
SendReply.kr(imp,
|
|
|
|
|
'/masterLevels',
|
|
|
|
|
'/masterLevels' ++ ~hash,
|
|
|
|
|
values: [Amplitude.kr(masterSig)]);
|
|
|
|
|
SendReply.kr(imp,
|
|
|
|
|
'/trackLevels',
|
|
|
|
|
'/trackLevels' ++ ~hash,
|
|
|
|
|
values:
|
|
|
|
|
[
|
|
|
|
|
Amplitude.kr(guitarSig), Amplitude.kr(accompHighSig),
|
|
|
|
@ -70,8 +70,8 @@ SynthDef(\masterPlayerControl, {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SynthDef(\transport, {arg measure = 0, beat = 0, gate = 1, dur = 1;
|
|
|
|
|
SendReply.kr(Impulse.kr(0) * (measure > 0) * (beat > 0),'/measureClock', values: [measure, beat]);
|
|
|
|
|
SendReply.kr(Impulse.kr(0) * (measure < 1) * (beat < 1),'/playNextSubsection');
|
|
|
|
|
SendReply.kr(Impulse.kr(0) * (measure > 0) * (beat > 0),'/measureClock' ++ ~hash, values: [measure, beat]);
|
|
|
|
|
SendReply.kr(Impulse.kr(0) * (measure < 1) * (beat < 1),'/playNextSubsection' ++ ~hash);
|
|
|
|
|
EnvGen.kr(Env.sine(dur), gate, doneAction: 2);
|
|
|
|
|
}).add;
|
|
|
|
|
|
|
|
|
@ -118,7 +118,7 @@ SynthDef(\interludeTremelo, { arg gate = 0, amp = 1;
|
|
|
|
|
Out.ar(~interludeTremoloBus, fade);
|
|
|
|
|
}).add;
|
|
|
|
|
|
|
|
|
|
OSCFunc({ arg msg, time; {~updateSection.value(1, false, false)}.defer},'/playNextSubsection', s.addr);
|
|
|
|
|
OSCFunc({ arg msg, time; {~updateSection.value(1, false, false)}.defer},'/playNextSubsection' ++ ~hash, s.addr);
|
|
|
|
|
|
|
|
|
|
//~~~~gen music
|
|
|
|
|
~genPatterns = {arg guitarSeqIn, accompLowSeqIn, accompHighSeqIn, sectionSeqIn, beatFrac = 1/8;
|
|
|
|
|