-
... File.new.headerFormat_("AIFF").sampleFormat_("int16").numChannels_(1); sfpath = PathName.tmp +/+ "sc3_test_allocAndQuery.aiff"; sf.openWrite(sfpath); // sawtooth b = Signal.sineFill(441, (1..20).reciprocal); // write multiple cycles (441 * ...
-
... } plot { |notesOnly = false| var window, events; window = ScaledUserViewWindow( pathName.basename ); // this.adjustEndOfTrack; events = this.analyzeUsedEvents; if( notesOnly ) { events = events.select({ |event| event[2] == 'noteOn' }); }; w ...
-
... ++ Date.getDate.asString); } *libraries {var libsFolder; this.new; libsFolder = PathName(libPath).folders; libsFolder = libsFolder.reject({|item| item.folderName == ".git" }); ^(["Main"] ++ libsFolder.collect({|item| item.folderName })); } ...
-
... playButton.value; }); }; var soundfiles= []; folder= folder.standardizePath; if(PathName(folder).isFolder, { soundfiles= SoundFile.collect(folder+/+"*"); }); spf= argSpf??{PlayFileDiskStereo()}; spf.server.ifNotRunning({"%: boot server firs ...
-
... { score.removeAt(anID)}, { "No voice with that ID found".warn; }) } output {arg pathname, mode = "w"; var string, eventstring; file = File.new(pathname, mode); file.write("%% SuperCollider output from " ++ Date.localtime ++ "\n"); file.writ ...
-
... " + "sounds/ixiquarks/"++filename++".aif").unixCmd; }); txtv.string_(filename = PathName(filename).nextName); }); }, { XiiAlert("you need to start a server in order to record"); recButton.value_(0); }); }); timeText = GUI.staticText.new(win ...
-
... = (formatDict[f.sampleFormat] ? Signal).newClear(f.numFrames); name = name ?? { PathName(path).fileName.basename; }; f.readData(sig); f.close; ws = this.new(name.asSymbol, sig, f.sampleRate); ws.path = path; if (toBuffer) { ws.toBuffer(serv ...
-
... er.newCopyArgs(n_tracks, n_output_chans, ambi_order).init; } *initClass { dir = PathName(this.class.filenameSymbol.asString.dirname).parentPath; // Init chaos name-algo pairs // Must have same call signature, so some args may be unused (eg, ...
-
... orClass { arg class; var match, path; match = registery[class.name] ?? { path = PathName(MxUnit.class.filenameSymbol.asString).parentPath +/+ "drivers" +/+ class.name.asString ++ ".scd"; if(File.exists(path), { path.debug("Loading driver"). ...
-
... , filepath, pFunc; if(txtv.items.size > 0, { [\soundfile, soundfile].postln; if(PathName(soundfile).isFolder.not, { if(butt.value == 1, { group = Group.new(server, \addToHead); a = SoundFile.new; a.openRead(soundfile); chNum = a.numChannels ...