Not sure why
parent
56438f99aa
commit
75d1d3f952
|
@ -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
|
||||
arg location = PathName(thisProcess.nowExecutingPath).pathOnly +/+ "../dev/silicon_lines.txt";
|
||||
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
|
||||
~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
|
||||
~siLinesData.do({ |item, 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
|
||||
~viewLinesFunc.value;
|
||||
|
||||
|
|
Loading…
Reference in New Issue