Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (1875) Code (155) Doc (456) Help (116) Quark (1142) Plugin (6) SCDoc ↗ Forum ↗ Google ↗
  1. Show a chord in music notation in a sclang window by 56228375 (56228375) Code

    ... d.svg"); // embed the generated svg in a window window = Window.new("test", Rect(100,100,150,100)).front; window.view.background_(Color.new(153,255, 102)); chordview = UserView(window); chordview.drawFunc = { |uview| var viewwidt ...

  2. tri-o emulation by 0-2U (grirgz) Code

    ... 700, run = true; var starttime = TempoClock.default.beats; w = Window("trio", Rect(40, 40, h, v), false); w.onClose = { run = false }; // stop the thread on close w.front; w.drawFunc = { Pen.width = 2; Pen.use { var time ...

  3. Sound file position selector GUI by 0-2U (grirgz) Code

    ... var vlayout; var zoom_slider; win = Window.new("select sample position", Rect(200, 300, 740, 100)); sf = SoundFile.new; sfview = SoundFileView.new; vlayout = VLayout.new; zoom_slider = RangeSlider.new; zoom_slider.orie ...

  4. Draw your waveform feat. silly pattern player by rukano (rukano) Code

    ... fill(1024, { 256 }); // array, language side w = Window("Draw your waveform!", Rect(100, 100, 1024, 512)).front; u = UserView(w, w.view.bounds); // function that changes the array and the buffer, and makes some clipping f = { |x, y| ...

  5. Mountains by simon (Dindoléon) Code

    ... rpretation of enveloppe pictural representation. ( var win = Window.new( "", Rect( 0, 800, 700, 400 ) ); // This will be our main window var instrument_file = {}; var main_view = UserView(); var layout = UserView(); var backgroun ...

  6. Demo of Model-View-Controller design by 0-cM (jamshark70) Code

    ... the best way to structure GUI code. IMO, Model-View-Controller (when done correctly) gives you the most flexibility while avoiding common bugs. But it's hard to wrap your head around it first. So, here's a quick example using NodeProxies ...

  7. GUI: Scrolling list of multi-view items by 0-7r (jamshark70) Code

    ... ut, there are a couple of tricks: * If you set the .layout of a ScrollView directly, the layout will use the visible area only -- no scrolling. SOLUTION: Explicitly replace the ScrollView's canvas with your own View(), and apply the l ...

  8. Simple GUI for WavesetsEvent by ian-m-fraser (IMF) Code

    ... vent.play; event[\dur].wait; } }); //gui w = Window.new("wavesets", Rect(128, 64, 400, 400)).front; w.addFlowLayout; w.view.decorator.gap=5@5; labels = ["numWs", "repeats", "playRate", "playRate2", "volume", "pan", "legat ...

  9. A QuNeo's Sampler melodic and expressive with different scales by sebastienclara (sebastienclara) Code

    ... //////////////////////////////// // Gui window = Window("A QuNeo's Sampler", Rect(500, 700, 250, 50)); selectSampleButton = Button(window).states_([["Select a sample"]]); scalePopUp = PopUpMenu(window).items_(ScaleInfo.scales.keys. ...

  10. Method help re-ordering utility by 0-7r (jamshark70) Code

    ... ed = split.copy.sort { |a, b| a.last[1] < b.last[1] }; w = Window("Methods", Rect(centerX - 150, 0, 300, Window.screenBounds.height)); w.layout = HLayout( list = ListView(), VLayout( nil, upBtn = Button().fixedSize_(Size(30, 2 ...

prev 11 12 13 14 15 16 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow