GameOfLife / Unit-Lib

The Unit Library is a system that provides high level abstractions on top of the SuperCollider language.
25 stars 6 forks source link

ArrayControlSpec gui broken ? #30

Closed miguel-negrao closed 10 years ago

miguel-negrao commented 10 years ago

Udef(\test1,{ Out.ar(0, SinOsc.ar( 0.5 * \amps.kr({rrand(0.0,1.0)}.dup(5) ) ) ) }).setSpec(\amps, ArrayControlSpec(0.0,1.0,\lin))

UChain(\test1).gui

the range slider doesn't report the right values and the plot (edit) doesn't show all the points.

miguel-negrao commented 10 years ago

Wouter, can you check that this commit is okay ?

woutersnoei commented 10 years ago

yes, looks good to me. Hadn't used ArrayControlSpec directly in a Udef yet, only in MassEdit

miguel-negrao commented 10 years ago

It's actually very handy to edit the values in the plot window with the ArrayControlSpec for a multichannel control ! I'm quite liking it. I think it would also be handy to be able to edit the values by hand, maybe a pop up window with a text view with the array as a string which you can alter and then it would compile back to array on pressing ok.

woutersnoei commented 10 years ago

I'm working a bit on SmoothMultiSlider for my own lib. That will basically become an editable plot view, in "smooth" style :-). Once done I'll replace the current plot thing by my own version and certainly add things like single value editing, but also edit modes where one could for example lock the relative positions, select and move parts of the plot, draw lines etc. And then the next step would be to add generators and transform options, similar to the WFSPathGUI.