|
|
|
@ -8,6 +8,7 @@
|
|
|
|
|
|
|
|
|
|
basePath = ~dir +/+ ".." +/+ "lilypond" +/+ "seed_" ++ seed;
|
|
|
|
|
basePath.mkdir;
|
|
|
|
|
(basePath +/+ "includes").mkdir;
|
|
|
|
|
|
|
|
|
|
scoreFile = File(basePath +/+ "cicc_score.ly".standardizePath,"w");
|
|
|
|
|
//File.readAllString(basePath +/+ ".." +/+ "templates" +/+ "cicc_score_template.ly").postln;
|
|
|
|
@ -39,7 +40,7 @@
|
|
|
|
|
dur = item[1];
|
|
|
|
|
sus = item[2];
|
|
|
|
|
note = sus.collect({[freq, i]});
|
|
|
|
|
if(p < rawMusicData.size, {rest = (dur - sus).collect({[-1, i]})}, {[]});
|
|
|
|
|
rest = if(p < rawMusicData.size, {(dur - sus).collect({[-1, i]})}, {[]});
|
|
|
|
|
},
|
|
|
|
|
2, {
|
|
|
|
|
var freq1, freq2, dur, sus;
|
|
|
|
@ -48,7 +49,7 @@
|
|
|
|
|
dur = item[2];
|
|
|
|
|
sus = 4;
|
|
|
|
|
note = sus.collect({[[freq1, freq2 - freq1], i]});
|
|
|
|
|
if(p < rawMusicData.size, {rest = (dur - sus).collect({[-1, i]})}, {[]});
|
|
|
|
|
rest = if(p < rawMusicData.size, {(dur - sus).collect({[-1, i]})}, {[]});
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
note ++ rest
|
|
|
|
|