fixing siliconSynth & timeline
parent
4a2538c647
commit
c320a0a95f
|
@ -36,7 +36,6 @@ postln("~~~ function ~procLinesFunc ...");
|
|||
|
||||
siLinesData = List.newClear(0);
|
||||
|
||||
|
||||
processItem = { |item, i, reverse=false, layer=0, tscale=1, toffset=0|
|
||||
|
||||
if((item[1].asInt > threshold) && (item[0].asInt < 6741) && (item[0].asInt > 3950), {
|
||||
|
@ -274,24 +273,28 @@ post(" ");
|
|||
|
||||
} {
|
||||
// exposition
|
||||
frequency = siLines[step][0].asFloat.linexp(3900, 7200, 16000, 40);
|
||||
frequency_alt = siLines[step][0].asFloat.linexp(3900, 7200, 40, 16000);
|
||||
nextfrequency = siLines[step+1][0].asFloat.linexp(3900, 7200, 16000, 40);
|
||||
nextfrequency_alt = siLines[step+1][0].asFloat.linexp(3900, 7200, 40, 16000);
|
||||
nextplayhead = siLines[step+1][0].asFloat.linlin(3905.52, 7193.9, 0, (60*37+5));
|
||||
playhead = siLines[step][0].asFloat.linlin(3905.52, 7193.9, 0, (60*37+5));
|
||||
//frequency = siLines[step][0].asFloat.linexp(3900, 7200, 16000, 40);
|
||||
frequency = siLines[step][4].asFloat;
|
||||
// frequency_alt = siLines[step][0].asFloat.linexp(3900, 7200, 40, 16000);
|
||||
frequency_alt = siLines[step][5].asFloat;
|
||||
playhead = siLines[step][0].asFloat;
|
||||
nextfrequency = siLines[step+1][4].asFloat;
|
||||
nextfrequency_alt = siLines[step+1][5].asFloat;
|
||||
nextplayhead = siLines[step+1][0].asFloat;
|
||||
delta = nextplayhead - playhead;
|
||||
amp = siLines[step][1].asInt * 0.001;
|
||||
nextamp = siLines[step+1][1].asInt * 0.001;
|
||||
nextdelta = siLines[step+2][0].asFloat.linlin(3905.52, 7193.9, 0, (60*37+5)) - nextplayhead;
|
||||
amp = siLines[step][3].asInt * 0.001;
|
||||
nextamp = siLines[step+1][3].asInt * 0.001;
|
||||
nextdelta = siLines[step+2][0].asFloat - nextplayhead;
|
||||
|
||||
//action::documentation
|
||||
post("\n~" + step + "|");
|
||||
post(siLines[step][1]);
|
||||
post(" | ");
|
||||
post((playhead/60).round(1));
|
||||
post(":");
|
||||
post((playhead%60).round(1));
|
||||
post(" | ");
|
||||
post(siLines[step][0]);
|
||||
post(siLines[step][2]);
|
||||
post( "nm | " );
|
||||
post(frequency.round(1));
|
||||
post("Hz | ");
|
||||
|
@ -302,7 +305,8 @@ post(" ");
|
|||
post(delta.round(1));
|
||||
postln("s");
|
||||
|
||||
post(" ");
|
||||
post(" |" + siLines[step+1][1]);
|
||||
post("| ");
|
||||
post(delta.round(1));
|
||||
post("s / ");
|
||||
post(nextfrequency.round(1));
|
||||
|
|
Loading…
Reference in New Issue