Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

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

  2. AbstractFaustPackage Quark

    ... ^package } *thisPackageName{ ^this.thisPackage().name } *compiledFilesFolder{ ^PathName(Platform.userExtensionDir) +/+ (this.thisPackageName() ++ "FaustPlugins") } *folderExists{ ^this.compiledFilesFolder().isFolder } *makeFolder{ File.mkd ...

  3. MxDocument Quark

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

  4. SampleDescript Quark

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

  5. WFSOptionsGUI Quark

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

  6. BStore Quark

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

  7. README Quark

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

  8. HOABinaural Quark

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

  9. SFP Quark

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

  10. TLCommand Quark

    ... is.copy; new.isRunning = false; ^new.reset } isTLCommand { ^true } *loadCmds { (PathName(this.filenameSymbol.asString).pathOnly ++ "proto-cmds.scd").loadPath; } } // totally customizable command: uses an environment to store parameters: // ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow