Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (177) Code (11) Doc (44) Help (12) Quark (110) SCDoc ↗ Forum ↗ Google ↗
  1. UMenuBar Quark

    ... Item.new(scoreMenu, "Export as audio file..").action_({ UScore.current !! { |x| Dialog.savePanel({ |path| x.writeAudioFile( path ); }); }; }); SCMenuSeparator.new(scoreMenu); SCMenuItem.new(scoreMenu, "Add Event").action_({ UScoreEditorGUI. ...

  2. 1_butz Quark

    ... me top-level one-liners: Butz.addMiniMax; Butz.add('StartupDial', { StartupFile.dialog }); Butz.add('CLOSEALL', { Window.allWindows.do { |w| if (w != Butz.w) { w.close } } }); //////// ndefmixer - add to WinBounds call to Butz, make func la ...

  3. WFSPath2 Quark

    ... not write file:\n%\n".postf( this.class, path.quote ); }; }; if( path.isNil ) { Dialog.savePanel( { |pth| path = pth; path = path.replaceExtension( "wfspath" ); writeFunc.value; } ); } { writeFunc.value; }; } read { |path, action| // return ...

  4. RedToolsMenu Quark

    ... { Event.default.parent.associationsDo(_.postln); }, ['system', 'post path'], { Dialog.getPaths{|paths| paths.do{|x| x.postln}}; }, ['system', 'post specs'], { Spec.specs.keysValuesDo{|key, val| if(val.class==ControlSpec, {[key, val].postln ...

  5. RedDiskInPlayer Quark

    ... 220116 //replace FlowLayout with Layout and fix background colors //change from Dialog to FileDialog to better handle folders //folder selection now remember last location //progressbar now wrap around when loop is on //--changes171223: //r ...

  6. PlayFileDiskView Quark

    ... f(val>0, { this.read(soundfiles[val-1].path); }); }; readButton.action= {|view| Dialog.openPanel({|path| filePopup.items= filePopup.items.put(0, path.basename); filePopup.value= 0; this.read(path); }); }; vZoomSlider.action= {|view| waveVie ...

  7. handout-5-blocks Quark

    ... ); // Writing your own blocks (to UserLib), then removing them again without a dialog. ~radTestRemoveUserBlock = {|key| var lib = Radicles.getLib("UserLib"); SynthFile.remove(\block, key, false, nil, lib, false); SpecFile.remove(\block, ke ...

  8. 2d_preset_func Quark

    ... %: sorry, no preset present.\n".postf(proxy) } }; /* // two snapModes: NTMI.snapDialog = true; // open dialog(s) NTMI.snapDialog = nil; // default, saves with datestamp */ ///// add a preset on the fly while playing MFdef(\snapshot1).add(\g ...

  9. BufferSystem Quark

    ... bufferByDir bufferCount bufferInfo bufferPaths cue cueAll cueDir defaultPath dirDialog dirTags fileNames fileNumChannels free freeAll freeAt freeAtAll get getFile getFromPath getGlobVar getGlobVarArr getPath globVarArray pathToTag postWin r ...

  10. nanoKontrol2_SpectralAnalyser Quark

    ... l('nk2', "*trol2"); n.resetActions; ~nrBands = 8; ~nrLights = 8; ~lowBand = 50; Dialog.openPanel( {|path| { ~buf = Buffer.readChannel(s, path, channels:[0]); s.sync; SynthDef(\band, {|frlow, frhi, id| var in, filter, amplitude; in = PlayBuf ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow