Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... yCode: KeyDownActions.keyCodes['fn + F1']) ); scFunc = "// load a new setup via dialog\n" ++ { CVCenterLoadDialog() }.asCompileString; this.globalShortcuts.put( 'fn + F2', (func: scFunc, keyCode: KeyDownActions.keyCodes['fn + F2']) ); scFun ...

  2. Spectrum and Spectrogram of a sound file by jcc (jcc) Code

    ... Color.new(0.63915638923645, 0.61455166339874, 0.3189784526825)]]) .action_({ Dialog.openPanel( okFunc: { |path| sfPath = path; soundFile = SoundFile.new; soundFile.openRead(path); sfSampleRate = soundFile.sampleRate; ...

  3. XiiPolyMachine Quark

    ... ca", 9)) .states_([["load", Color.black, Color.clear]]) .action_({arg butt; GUI.dialog.getPaths({ arg paths; var chosenstate; paths.do({ arg p; stateDict = Object.readArchive(p); }); stateNum = stateDict.size; if(stateNum > 0, { // if there ...

  4. ObjectInsp Quark

    ... method.gui; true },{ false }); }); if(found.not,{ // needs a gui report in the dialog ("Method not found:" + string).inform; }); }; w = PageLayout("method?",Rect(200,200,170,40),scroll:false); b = TextField(w,Rect(5,5,150,30)); b.string = ...

  5. UScore Quark

    ... events| ^super.new.init( events ); } *open { |path, action| if( path.isNil ) { Dialog.getPaths( { |paths| action.value( openFunc.(paths[0]) ); }); } { path = path.standardizePath; action.value( openFunc.(path) ); }; } *openMultiple { |path ...

  6. JITModPatch Quark

    ... th.notNil) { ^new.load(path) }; // else (btw, later implement default path) FileDialog( { |path| new.load(path) }, { NotificationCenter.notify(new, \ready) }, // finish initing empty patch fileMode: 1, acceptMode: 0, stripResult: true, path ...

  7. All_Interface_Functions Quark

    ... etting of every playing sound: MFdef('snapshot').value; // NTMI can also open a dialog on snapshot: NTMI.snapDialog = true; // For the curious, see all the functions and objects within NTMI.slots: NTMI.slots.printInterface("NTMI.slots."); " ...

  8. Core_z354_shim Quark

    ... ++ " Partials").postln; }; nil }; ~f2aSaveProjectV354 = { |withSession = false| Dialog.savePanel({ |path| var p = path.asString; if(p.endsWith(".json").not) { p = p ++ ".json" }; { var f = File.open(p, "w"); if(f.notNil and: { f.isOpen }) { ...

  9. XiiSounddrops Quark

    ... ca", 9)) .states_([["load", Color.black, Color.clear]]) .action_({arg butt; GUI.dialog.getPaths({ arg paths; var chosenstate; paths.do({ arg p; stateDict = Object.readArchive(p); }); stateNum = stateDict.size; params = stateDict.at("state 1 ...

  10. plusSpec-makeView Quark

    ... ( "copy all" ) .border_( 1 ) .radius_( 2 ) .font_( font ) .action_({ var paths; Dialog.savePanel({ |path| path = path.dirname; paths = vws[ \val ].collect({ |item| item.path.getGPath.asSymbol }).as(Set).as(Array).do({ |pth| pth.asString.cop ...

prev 11 12 13 14 15 16 17 18 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow