fixing rounding bug and making 1/4 = 2/8

main
mwinter 1 year ago
parent 87fafc8599
commit aa56ac5b7a

@ -299,10 +299,10 @@ s.waitForBoot({
s.sync(c);
createTransportData = {arg measureLengths;
measureLengths.postln.collect({arg dur, measure;
measureLengths.collect({arg dur, measure;
var beats;
if(dur.round(0.5) % 1 == 0, {
dur.asInteger.collect({arg beat;
if((dur.round(0.5) % 1 == 0) && (dur.round(0.5) != 1), {
dur.round(0.5).asInteger.collect({arg beat;
[measure + 1, beat + 1, 1]
})
}, {
@ -324,7 +324,7 @@ s.waitForBoot({
[measure + 1, beat + 1, bDur]
})
});
}).flatten.postln;
}).flatten;
};
createTransportPattern = {arg addr, transportData;
@ -375,7 +375,6 @@ s.waitForBoot({
measureLengths = 284.collect({4});
playbackData.add(\jaendel -> [jaendelCreatePatternsForLive.value(seqs, 0, 1, 55, group), createTransportData.value(measureLengths), measureLengths]);
OSCdef(\mixer, {arg msg, time, addr, port;
[msg, time, addr, port].postln;
if((msg[1].asString == "volume_master") || (msg[1].asString == "volume_click") || (msg[1].asString[..2] == "out"), {

Loading…
Cancel
Save