kronihias / ambix

cross-platform Ambisonic VST, LV2 plug-ins with variable order for use in Digital Audio Workstations like Reaper or Ardour or as Jack standalone applications
GNU General Public License v2.0
237 stars 34 forks source link

wrapping slider without patching JUCE #8

Closed umlaeute closed 8 years ago

umlaeute commented 8 years ago

here's a naive implementation of a wrapping-slider that does not require patching of the JUCE sources.

it is implemented by hooking into the SliderListener::valueChanged() callback (and making the slider range slightly larger than needed).

so far this has only been tested on linux/standalone but here i haven't encountered eny problems.

given that the implementation was straight-forward i wonder why it wasn't done like this in the first place (or probably it was done like this at first but discarded for some reason)

kronihias commented 8 years ago

thanks for the patch! i included the changes slightly modified to allow slider dragging without wrapping which i prefer (getting the source exactly to -180° without editing the text).

the reason it wasn't done like this before was simply because i didn't realize it was that easy ;)

umlaeute commented 8 years ago

great that you like it :-)