fixing siliconSynth & timeline

master
Nova deViator 2015-09-09 17:53:40 +02:00
parent 4a2538c647
commit c320a0a95f
1 changed files with 17 additions and 13 deletions

View File

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