-
... str.parseYAML} }{ parseFunc = {|str| Freesound.parseJSON(str)}; }; tokenFile = PathName(Freesound.class.filenameSymbol.asString).pathOnly; tokenFile = tokenFile ++ Platform.pathSeparator++"token.json" } *uri{|uri_key,args| ^(uris[\BASE] ++ ...
-
... h ++ "/" ++ fname; app.buffers[i].write(filePath); } }); } loadBuffers{|folder| PathName(folder ++ "audio/").folders.do({|f| if("^[0-7]$".matchRegexp(f.folderName)){ app.loadBuffer(f.folderName.asInt, f.files[0].fullPath,{}) } }); } savePro ...
-
... "/templates/" } runTemplate { arg templateName, options = (); var path; path = PathName.new(templatesDir ++ templateName); this.copyTemplateBaseFiles(path, options); this.copyTemplateSubFolderFiles(path, options); } copyTemplateBaseFiles { ...
-
... o({|thisBuffer, index| thisBuffer.free; }); buffer = nil; activeBuffer = []; if(PathName(filename).pathOnly == Platform.defaultTempDir) { filename.asString + "has been deleted".postln; File.delete(filename) }; } /* //load sound file into bu ...
-
... 3.5, {"test 3".postln} ]) ); t.play; // Using a path t = Timeline.newFromPath( PathName(CuePlayer.class.filenameSymbol.asString).parentPath +/+ "HelpSource/Classes/timeline" +/+ "t-score.scd" ); t.play; // An Array or String can also be co ...
-
... rnally a symlink is created for each image d = WsImage.new(a, Rect(0, 0, 1, 0), PathName(Platform.helpDir).parentPath ++ "/HelpSource/images/icon.supercollider.png"); //0 for width or height will default to default image's w-h ratio d = WsI ...
-
... ing; tuning = Tuning.at( tuningName ); if( tuning.isNil ) { var scalaFileName = PathName( ScalaTunings.filenameSymbol.asString ).pathOnly +/+ "archive" +/+ "%.scl".format( tuningName ); ^Tuning.fromScalaFile( tuningName, scalaFileName ) }; ...
-
... rnally but listed here in the case you find them useful. . getAtkOpPath Get the PathName of the op directory ( 'kernels' or 'matrices' ), in either the "built-in" ATK support directory or the user extension subdirectory ( isExtension = true ...
-
... and vv. SimpleMIDIFile { classvar <>tempoScale = 1024; var <tempo = 120; var <>pathName; var <>midiEvents; // format: [trackNumber, absTime, type, channel, val1, val2] var <>metaEvents; // format: [trackNumber, absTime, type, [ values ] / ...
-
... ^package } *thisPackageName{ ^this.thisPackage().name } *compiledFilesFolder{ ^PathName(Platform.userExtensionDir) +/+ (this.thisPackageName() ++ "FaustPlugins") } *folderExists{ ^this.compiledFilesFolder().isFolder } *makeFolder{ File.mkd ...