Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (274) Code (17) Doc (32) Help (12) Quark (212) Plugin (1) SCDoc ↗ Forum ↗ Google ↗
  1. Modules Quark

    ... ath), { ^path.load.value(this); }); } runFilesForFolder{ arg path, file; path = PathName(path); // if(path.folders.size > 0){ // ("-> Running "++file++" files for all modules").postln}; path.folders.do({ arg folder; this.runFile(folder, fil ...

  2. SynthBenchmark Quark

    ... e the synthdef is written somewhere for the server to read it synthdefbinpath = PathName.tmp;// +/+ "benchSystemCmd_%_%.scsyndef".format(synthdef.name, this.hash.asString); synthdef.writeDefFile(synthdefbinpath, true); synthdefbinpath = syn ...

  3. extPlatform Quark

    ... + "downloaded-quarks" +/+ "miSCellaneous*").pathMatch; dirs = dirs.select { |p| PathName(p).isFolder and: { PathName(p +/+ "Classes").isFolder } }; withWarnings.if { case { dirs.size == 0 }{ "\nWARNING: no directory beginning with name 'miS ...

  4. SCLOrkSamples Quark

    ... r cannot be a number *loadFile { |path, key| var buffer, extension; extension = PathName(path).extension; // only proceed if file is valid (allowed extension) if(allowedExtensions.includesEqual(extension), { // if a key is not provided, use ...

  5. SCMAudioHelper Quark

    ... ay; */ SCMAudioHelper { classvar <audioDirectory; *initClass { audioDirectory = PathName.new(this.filenameSymbol.asString).pathOnly; } *fullpathAudiofile { |file| ^audioDirectory ++ file; } }

  6. HelpFile2 Quark

    ... var <classname; var <>shortDescription; var <>longDescription; *new { arg name, pathName; pathName = pathName ?? (name++".html"); ^super.new(pathName, "w").init(name); } init{ |name| examples = Array.new; instanceMethods = IdentityDictionar ...

  7. TimeStretch2 Quark

    ... File, fftMax = 65536; action ?? {action = {"done stretchin!".postln}}; inFile = PathName(inFile); if((inFile.extension=="wav")||(inFile.extension=="aif")||(inFile.extension=="aiff")){ sf = SoundFile.openRead(inFile.fullPath); numChans = sf. ...

  8. TimeStretch Quark

    ... Mult=100, chanArray=nil, splits = 9, filterOrder=129, fftType=0| var fileName = PathName(inFile).pathOnly++PathName(inFile).fileNameWithoutExtension; if(chanArray==nil){chanArray = Array.fill(SoundFile.openRead(inFile).numChannels, {|i| i}) ...

  9. FileWriter Quark

    ... olonFileWriter See also: FileReader, FilePlayer . Creation / Class Methods *new(pathName,mode,stamp,del) Create a new instance of FileWriter stamp Whether or not to add a time stamp at the beginning of each line (default false) del The deli ...

  10. checkDo Quark

    ... e as an argument. Similar to File:use, but with overwrite check. File:checkDo ( pathName, function, overwrite, ask, mode ) File .checkDo( "~/Desktop/testFile.txt" , { |file| file.putString( "test" ); } ); If you run this line for the second ...

prev 1 2 3 4 5 6 7 8 9 10 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow