-
... 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 ...
-
... Color.new(0.63915638923645, 0.61455166339874, 0.3189784526825)]]) .action_({ Dialog.openPanel( okFunc: { |path| sfPath = path; soundFile = SoundFile.new; soundFile.openRead(path); sfSampleRate = soundFile.sampleRate; ...
-
... 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 ...
-
... 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 = ...
-
... 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 ...
-
... 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 ...
-
... 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."); " ...
-
... ++ " 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 }) { ...
-
... 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 ...
-
... ( "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 ...