-
... cument.text } name { var p; if(document.isNil, { p = this.path; if(p.notNil, { ^PathName(p).fileName }); ^((content?"").copyRange(0, 10) ++ "...") }); ^document.name } printOn { arg stream; stream << "Document:"; stream << (this.name ?? {th ...
-
... ; activeBuffer.asArray.flat.do{|b| b.free}; buffer = nil; activeBuffer = []; if(PathName(filename).pathOnly == Platform.defaultTempDir) { filename.asString + "has been deleted".postln; File.delete(filename) }; } /* //load sound file into bu ...
-
... pn.pathMatch.do{|x| if(x.last.isPathSeparator, { arr= arr++deepPathMatch.value(PathName(x++"*")); }, { arr= arr++PathName(x); }) }; arr }; syms= deepPathMatch.value(PathName(path)).collect{|x| var pathNoRoot= x.fullPath.copyToEnd(root.with ...
-
... .0.0.1" ) { last.ip = NetAddr.myIP; }; if( last.ip != "127.0.0.1" ) { last.ip = PathName(last.ip).nextName; }; last.name = PathName(last.name).nextName; } { last = WFSServerOptions(); if( object.masterOptions.notNil ) { last.ip = PathName( ...
-
... a Function which refers to variables from outside its own scope). writeArchive(pathname) Write an object to disk as a text archive. pathname is a String containing the resulting file's path. *readArchive(pathname) Read in an object from a ...
-
... type == \ir} { path = this.getIRPath; }; case {type == \play} { filesInFolder = PathName(path).files.collect{|item| item.fileNameWithoutExtension.asSymbol;}; if(filesInFolder.includes(settings), { typeStore = this.addPlay(settings, path, {| ...
-
... ver = http.createServer(function onRequest (req, res) { send(req, parseUrl(req).pathname, { root: '/www/public' }) .pipe(res) }) server.listen(3000) ``` ### Custom file types ```js var http = require('http') var parseUrl = require('parseurl ...
-
... String++".wav", 0, 0, i ]],); }); } ) } *loadHeadphoneCorrections {|server| var pathname = PathName.new( HOA.kernelDirsFor("", "headphoneEQ")[0]); // collect all headpone model names headPhones = pathname.files.collect({|item,i| item.fileNa ...
-
... g }, save: { [~source.soundFilePath] }, load: { arg path; SFP(*path) }, name: { PathName(~source.soundFilePath ? "None").fileNameWithoutExtension }, beatDuration: { ~source.beatDuration }, gui: { arg layout; var l; l = layout ?? {PageLayout ...
-
... ze_(65536 * 4); s.newBusAllocators; // global variables ~out = 0; ~path = PathName(thisProcess.nowExecutingPath).parentPath++"/vocal-samples/"; // expects folder "vocal-samples" with audio samples in the same folder as the project fil ...