tweaking mode fgeneration

main
mwinter 4 years ago
parent 245865ef41
commit ec1f32350e

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -1,4 +1,4 @@
\version "2.22.0" \version "2.19.83"
#(define (override-color-for-all-grobs color) #(define (override-color-for-all-grobs color)
(lambda (context) (lambda (context)
@ -75,7 +75,7 @@
(stretchability . 0)) (stretchability . 0))
%systems-per-page = 3 %systems-per-page = 3
first-page-number = 4 first-page-number = 1
print-first-page-number = ##t print-first-page-number = ##t
print-page-number = ##t print-page-number = ##t
@ -137,7 +137,7 @@
(minimum-distance . 20 ) (minimum-distance . 20 )
(padding . 0 ) (padding . 0 )
(stretchability . 0)) (stretchability . 0))
\override TextScript.staff-padding = #1 \override TextScript.staff-padding = #2
\override TextScript.self-alignment-X = #0 \override TextScript.self-alignment-X = #0
} }
\context { \context {

@ -60,15 +60,16 @@ harmonicDistance = {arg fr; log2(fr[0].asFloat.product * fr[1].asFloat.product)}
//~~~~~~~~~~~~GENERATE MODE~~~~~~~~~~~~ //~~~~~~~~~~~~GENERATE MODE~~~~~~~~~~~~
//TODO: Play with this a bit more (should I go back to the old way) //TODO: Play with this a bit more (should I go back to the old way)
genMode = { genMode = {
var mode; var mode, alternateProb;
alternateProb = [1, 0].wchoose([1, 4].normalizeSum);
mode = [ mode = [
[1, 1], [1, 1],
[9, 8], [9, 8],
[[5, 4], [6, 5]].wchoose([3, 1].normalizeSum), [[5, 4], [6, 5]].wchoose([3, 1].normalizeSum),
[[4, 3], [11, 8]].wchoose([1, 10].normalizeSum), [[4, 3], [11, 8]].wchoose([alternateProb, 1].normalizeSum),
[3, 2], [3, 2],
[[8, 5], [13, 8]].wchoose([1, 10].normalizeSum), [[8, 5], [13, 8]].wchoose([alternateProb, 1].normalizeSum),
[[15, 8], [7, 4]].wchoose([1, 10].normalizeSum) [[15, 8], [7, 4]].wchoose([alternateProb, 1].normalizeSum)
]; ];
mode.collect({arg fr; [[1] ++ fr[0].factors, [1] ++ fr[1].factors]}); mode.collect({arg fr; [[1] ++ fr[0].factors, [1] ++ fr[1].factors]});
}; };

@ -60,7 +60,6 @@ var formatPatternData;
}).add; }).add;
sdBass = SynthDef(\bass_mono_ ++ ~hash, {arg freq = 440, ampBus = 0, bus = 0; sdBass = SynthDef(\bass_mono_ ++ ~hash, {arg freq = 440, ampBus = 0, bus = 0;
Poll.kr(Changed.kr(In.kr(ampBus)), In.kr(ampBus));
Out.ar(bus, (SinOsc.ar(freq) * 0.4 * In.kr(ampBus))) Out.ar(bus, (SinOsc.ar(freq) * 0.4 * In.kr(ampBus)))
}).add; }).add;
@ -193,7 +192,7 @@ formatPatternData = {arg musData, measureLen;
preampBusses, nextNode, accompBusses, postampBusses, preampBusses, nextNode, accompBusses, postampBusses,
synths, prePatterns, playablePatterns, score; synths, prePatterns, playablePatterns, score;
trackNames = ["part_start", "part_III", "part_II", "part_I", "accomp_I", "accomp_II", "click"]; trackNames = ["part_start", "part_III", "part_II", "part_I", "accomp_II", "accomp_I", "click"];
basePath = ~dir +/+ ".." +/+ "audio" +/+ "seed_" ++ seed; basePath = ~dir +/+ ".." +/+ "audio" +/+ "seed_" ++ seed;
basePath.mkdir; basePath.mkdir;

Loading…
Cancel
Save