PDA

View Full Version : Increment/decrement switches


pipelineaudio
11-04-2009, 01:29 AM
I need to make a switch class that will have increment/decrement switches. I think it would have four switches per "knob": +/- .1 and +/- 1

How in the world can i do this?

cc_
11-06-2009, 01:27 AM
I have done this, unfortunately not in a way that I can easily post up here (there is an extra layer of scripting stuff on top).

I used IContactControl's for the up/down buttons. Then the problem is how to find out when they are pressed so you can change the main control - for that I used ISubect.h which you can get here:
http://forum.cockos.com/showpost.php?p=400994

Maybe I'll get time to post up an example later...

pipelineaudio
11-06-2009, 08:46 PM
http://stash.reaper.fm/oldsb/237665/1091068332-FX-track-10-Kick-glued-00-render.png

so far

never mind the little turtles

junioreq
11-07-2009, 02:27 AM
Should get with schwa and put this right in the iplug example imo. These kind of switches are handy.

~Rob.

pipelineaudio
11-16-2009, 09:28 PM
I cant seem to get this going but it would really be kickass if someone could

cc_
11-18-2009, 01:49 PM
I've updated my ISubject.h thread with an example of a nudge button.

Don't forget to make the three changes (IControl.cpp , IControl.h and IGraphics.cpp).

junioreq
11-21-2009, 09:08 AM
cc thank you!!

~Rob.

cerberus
08-11-2010, 02:02 PM
i've made a shuttle knob... thanks to junioreq for teaching me about custom control classes.

http://cerberusaudio.com/b/ScreenFlow15.mov
(not calibrated when this movie was made, the accumulated value will multiply by the
control amount in the real plug-in, rather than increment/decrement as shown here.