Not sure why

master
Nova deViator 2015-09-09 16:06:49 +02:00
parent 56438f99aa
commit 75d1d3f952
1 changed files with 22 additions and 6 deletions

View File

@ -12,7 +12,7 @@
( (
// FUNCTION procLines: process lines and store/return List -------------------------------------------------------- // function procLines: process lines and store/return List
~procLinesFunc = { // process lines, return na array ~procLinesFunc = { // process lines, return na array
arg location = PathName(thisProcess.nowExecutingPath).pathOnly +/+ "../dev/silicon_lines.txt"; arg location = PathName(thisProcess.nowExecutingPath).pathOnly +/+ "../dev/silicon_lines.txt";
var siLines = FileReader.read(path: location, skipBlanks:true, skipEmptyLines:true); var siLines = FileReader.read(path: location, skipBlanks:true, skipEmptyLines:true);
@ -115,6 +115,17 @@
}; };
// process lines, store to a List
~siLinesData = ~procLinesFunc.value;
// sort 2D
~siLinesData = ~siLinesData.sortBy(0);
// FUNCTION: display linesData list in a view/window // FUNCTION: display linesData list in a view/window
~viewLinesFunc = { ~viewLinesFunc = {
@ -177,12 +188,11 @@
) )
// process lines, store to a List
~siLinesData = ~procLinesFunc.value;
// sort 2D
~siLinesData = ~siLinesData.sortBy(0);
(
( // DEBUG/test:
// display table of all data to post window // display table of all data to post window
~siLinesData.do({ |item, i| ~siLinesData.do({ |item, i|
post(i + ""); post(i + "");
@ -197,6 +207,12 @@
}); });
) )
// this could be bound to a button,
// or ideally expanded to an animated timeline
// and included in main window...:
// show a window/view with lines - score // show a window/view with lines - score
~viewLinesFunc.value; ~viewLinesFunc.value;