-
... var data = Dictionary.new; // Oscillators: modulOscillators.do({|item, num| var string = "/osc/" ++ (num + 1) ++ "/"; data.put(string ++ "range", item.range.round(0.01)); data.put(string ++ "pulse/level", item.pulseLevel.round(0.01)); data. ...
-
... KeyController { classvar <identifierCodes, <states, <wildcards; var <>browser, <string, routine, <lastMTIndex, <registers; *initClass { identifierCodes = (65..90) ++ (97..122) ++ (48..57) ++ $_.ascii ++ 127; states = Dictionary[ // matchIte ...
-
... KeyController { classvar <identifierCodes, <states, <wildcards; var <>browser, <string, routine, <lastMTIndex, <registers; *initClass { identifierCodes = (65..90) ++ (97..122) ++ (48..57) ++ $_.ascii ++ 127; states = Dictionary[ // matchIte ...
-
... = false | var tokens, tokenIndex, parseError, voices, year, openVoice; var fileString = String.readNew(File.new(filePath, "r")); tokens = SCLOrkPDPreset.tokenize(fileString); if (tokens.isNil, { ^nil; }); // We now advance through the toke ...
-
+ Object { docpost {arg doc; var textSize, string; textSize = doc.text.size; doc.selectRange(textSize, 0); string = this; doc.string_(string, doc.selectionStart+string.size); } docpostln {arg doc; var string; string = this ++ 10.asAscii; st ...
-
... ave ; if they are inside { } Distinguish Do( from "Do(" .e. ignore stuff inside strings when looking for Do blocks Rules: Inside do blocks: - no ; other then those of the Do block - You can have Do blocks inside other do blocks. // m = 0 Do ...
-
+ String { ask { |function| function = function ? { this.postln; }; ^SCAlert( this, [\cancel, \ok], [ nil, function ] ); } request { |function, question = "Please enter string:"| function = function ? { |string| string.postln; }; question = ...
-
... "using % preprocessor\n".postf(tag) } }; func.value(code, event); } value { arg string; var i0 = string.findAll(startDelimiter); var i1 = string.findAll(endDelimiter); var strings, i2; if(i0.isNil or: { i1.isNil }) { ^string } { if(i0.size ...
-
... e; }, { false; }); }); window.layout = VLayout.new( HLayout.new( StaticText.new.string_("SHIFT + Right Click + Mouse Up or Down to Zoom"), StaticText.new.string_("Right Click + Mouse Left or Right to Scroll"), ), soundFileView = SoundFileVi ...
-
... criptFieldView(bounds:400@200).front().showPopup().action = { | sender | sender.string.postln; } */ SCMScriptFieldView : View { var model, dependants, setValueFunction, textSeparateEditing, string; var <mainLayout, <textEditing, windowPopup ...