-
... d playing them from GUI buttons. !!! Needs Qt GUI !!! (VLayout) var make; var dialog = Dialog.openPanel({ |list| make.(list) }, nil, true); var win = Window("Sample Player 3000").front; var samples = (); var buttons = (); make = { |pa ...
-
Re: Load and play samples from GUI (Qt GUI only), adapted to use SoundFile:cue by lfsaw (LFSaw) Code
... you can start and stop playing the samples //samplePlayerGUI var make; var dialog = Dialog.openPanel({ |list| make.(list) }, nil, true); var win = Window("Sample Player 3001").front; var samples = (); var buttons = (); var players ...
-
Sometime you want to play a certain part of a sound file, but you must provide the Synthdef with the starting and ending buffer frame number. It's nice to be able to select it graphically. <Space> play the selected part (or till the end if ...
-
... n buttons[0] .states_( [["Switch File", Color.black]] ) .action_({|obj| Dialog.openPanel({ | path | var ws = WavesetsEvent.new; ws.readChannel(path, onComplete: { ~wavesets = ws; ~path = path }) }); }); //start button b ...
-
A QuNeo's Sampler melodic and expressive with different scales by sebastienclara (sebastienclara) Code
... scalePopUp.valueAction = (scalesIndex); selectSampleButton.action = { Dialog.openPanel({ arg pathFile; ("sample =>" + pathFile).postln; buffer = Buffer.read(s, pathFile); }); }; window.onClose = { padsDegree.si ...
-
... , in the new order. Then you can copy/paste these back into the schelp file. ( Dialog.openPanel { |path| var f = File(path, "r"); protect { if(f.isOpen) { m = f.readAllString; } { "Couldn't read %".format(path).warn; } ...
-
... "do nothing"}, { player.stop; player = nil; }); // Let user select files: Dialog.openPanel( okFunc: {arg pathList; pathList.do({arg path; bufferList.add(Buffer.readChannel(s, path, channels: [0])); displayFileName ...
-
... ; // Stop whatever is playing s.freeAll; startButton.value = 0; Dialog.openPanel( okFunc: { |path| soundFile = SoundFile.new; soundFile.openRead(path); // Load sound into buffer buffer = Buffer.readCh ...
-
... Color.new(0.63915638923645, 0.61455166339874, 0.3189784526825)]]) .action_({ Dialog.openPanel( okFunc: { |path| sfPath = path; soundFile = SoundFile.new; soundFile.openRead(path); sfSampleRate = soundFile.sampleRate; ...
-
... / ----- save current session saveprj = { var array, snaps, fxparas, file; Dialog.savePanel( { arg path; file = File(path ++ ".txt", "w"); fxparas = [ gui.roomsens.value, gui.roomfreq.value, gui.roomdamp.value, ...