Submit
Browse
Anonymous
Login
RSS
SuperCollider Code
Fork Code: Load and play samples from GUI (Qt GUI only)
name
code content
var make; var dialog = Dialog.openPanel({ |list| make.(list) }, nil, true); var win = Window("Sample Player 3000").front; var samples = (); var buttons = (); make = { |paths| { paths.do{ |path| [\loaded, path.basename].postln; samples[path] = Buffer.read(Server.default, path); s.sync; buttons[path] = Button() .states_([[path.basename]]) .action_{ samples[path].play }; }; win.layout = VLayout(*buttons.asArray); win.onClose_{ samples.do{ |buf| buf.close; buf.free }; }; }.fork(AppClock); };
code description
Pretty simple GUI (button per sample) for loading samples into buffers and playing them from GUI buttons. !!! Needs Qt GUI !!! (VLayout)
use markdown for formating
category tags
comma separated, i.g. "wild, siren" (do not enter default SC class names, please)
ancestor(s)
comma separated identificators, i.g. "1-C,1-1,1-4M,1-x"
Private?
the code will be accessible by direct url and not visible in public activity
signup to submit public code without captcha
comment of change