-
... e.asSymbol, tuning ) }); ^Tuning.at( tuningName ); } *fromScala { |aString| var lines, name, size, pitches, octaveRatio; lines = aString.split($\n); lines = lines.collect( _.stripWhiteSpace ); lines = lines.reject( _.beginsWith("!") ); line ...
-
... ile @*/ ^super.new.initOpen(pathname: path); } initOpen{ arg pathname; var file,lines,line, ratios, num, numerator, denominator, clean_line, line_finished; tuning = []; ratios = []; // read the file // ok to read all the data into memory be ...
-
/* syntax colorisation for a difference between lines. */ ( var str = " abc axc xxxy xkxxy klakxmxcvay klixmmycvay klymix abkly "; var lines = str.split(Char.nl).collect { |line| line.as(Array) }; var diff, lineIndex; var indices = []; diff ...
-
/* \line_trajectory Creates an UMap for generating a line trajectory between two points. The points can also be UMaps. a: the start point of the line b: the end point of the line curve: a curve value (x,y) for the line. A 0 (zero) curve cre ...
-
... f n chars in Font( "Monaco", 9 ) *heightM9 { |n = 1| ^(n * 12) } // height of n lines in Font( "Monaco", 9 ) boundsM9 { |origin| // no tabs supported!! // M9 stands for Font( "Monaco", 9 ) /* var lines; origin = ( origin ?? { Point( 0,0 ) } ...
-
... toff frequency ratio: %".format(val).postln}; //--read loop task= Routine({ var line= ""; this.setSamplingRate(rate); this.setFilterCutoff(cutoff); inf.do{ var byte= port.read; //byte.postln; //debug if(mute.not, { if(byte!=13, { line= line ...
-
... e GNU/GPL license, version 2 or higher */ FilePlayer : FileReader { var <currentLine = 0; var <lineMap; var <>headerSize = 0; var <curid = 0; *new { | pathOrFile, skipEmptyLines=false, skipBlanks=false, delimiter | var stream; if (pathOrFil ...
-
FilePlayer reads space-delimited text files at specific lines. Inherits from: : Object : AbstractFunction : Stream : FileReader FilePlayer is an enhanced version of FileReader, allowing to jump to specific lines in the file. Subclasses: Tab ...
-
ChordtrisScoreManager { var <score = 0; var <lines = 0; var <level = 0; incrementLines { lines = lines + 1; } nextLevel { if(level < 10) { level = level + 1 }; } linesCompleted { |numOfCompletedLines| var multiplier; if(numOfCompletedLines ...
-
... , sum; var segment= 0, extended= 0; //not thoroughly tested var eof= false; var line; array= []; while({line= f.getLine(266); line.notNil}, { //--check start character if(line[0]!=$:, { (this.class.name++": read error - no colon at beginnin ...