Browse Source

Not sure why

master
Nova deViator 6 years ago
parent
commit
75d1d3f952
1 changed files with 22 additions and 6 deletions
  1. +22
    -6
      scd/snd_lines.scd

+ 22
- 6
scd/snd_lines.scd 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
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…
Cancel
Save