Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... ; dir = p.standardizePath.withTrailingSlash; } *standardizePath { arg path; var pathName; pathName = PathName(path.standardizePath); ^if(pathName.isRelativePath, { dir ++ pathName.fullPath; }, { pathName.fullPath }) } *abrevPath { arg path; ...

  2. ActionMenu Quark

    ... ; newitem = this.prPathItem(item); newitem.notNil.if{items=items.add(newitem)}; PathName( item ).isFolder.if{returnpaths=returnpaths.add(this.prPathUp(item));}; } } }{ (item.class.name.asString != "True").if{ ("PathActionMenu: item"+item.cl ...

  3. extPathName Quark

    + PathName { deepFolders { var out; this.entries.do { | item | if(item.isFolder) { out = out.add(item); out = out.addAll(item.deepFolders); } }; ^out } }

  4. CoverMe Quark

    ... ~/Documents/SCBackups/" ++ Date.getDate.format("%m_%d_%Y") ++"/"; } *start { if(PathName(backupsFolder).isFolder.not, {//"folder not present, creating...".postln; ("mkdir"+ backupsFolder).unixCmd; }); if(covering == false, { kdFunc = { arg ...

  5. SCMSynthDefAutoload Quark

    ... fAutoload { *initClass { StartUp.add({ SCMFileHelper.evaluateSourcesInDirectory(PathName(this.filenameSymbol.asString).pathOnly, "scm_synthdef_autoload.scd", false); }); } }

  6. SCMImageHelper Quark

    ... ) */ SCMImageHelper { classvar <imagesDirectory; *initClass { imagesDirectory = PathName.new(this.filenameSymbol.asString).pathOnly; } *mixerFaderSprite { ^Image.openSVG(imagesDirectory ++ "MixerFadersSprite.svg", 50@50); } }

  7. 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 ...

  8. 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 ...

  9. 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 ...

  10. 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 ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow