COCKOS
CONFEDERATED FORUMS
Cockos : REAPER : NINJAM : Forums
Forum Home : Register : FAQ : Members List : Search :
Old 11-04-2009, 01:29 AM   #1
pipelineaudio
Mortal
 
pipelineaudio's Avatar
 
Join Date: Jan 2006
Location: Wickenburg, Arizona
Posts: 5,685
Default Increment/decrement switches

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?
pipelineaudio is online now   Reply With Quote
Old 11-06-2009, 01:27 AM   #2
cc_
Mortal
 
Join Date: Mar 2009
Posts: 64
Default

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...
cc_ is offline   Reply With Quote
Old 11-06-2009, 08:46 PM   #3
pipelineaudio
Mortal
 
pipelineaudio's Avatar
 
Join Date: Jan 2006
Location: Wickenburg, Arizona
Posts: 5,685
Default



so far

never mind the little turtles
pipelineaudio is online now   Reply With Quote
Old 11-07-2009, 02:27 AM   #4
junioreq
Mortal
 
Join Date: Aug 2008
Location: Buffalo NY
Posts: 417
Default

Should get with schwa and put this right in the iplug example imo. These kind of switches are handy.

~Rob.
junioreq is offline   Reply With Quote
Old 11-16-2009, 09:28 PM   #5
pipelineaudio
Mortal
 
pipelineaudio's Avatar
 
Join Date: Jan 2006
Location: Wickenburg, Arizona
Posts: 5,685
Default

I cant seem to get this going but it would really be kickass if someone could
pipelineaudio is online now   Reply With Quote
Old 11-18-2009, 01:49 PM   #6
cc_
Mortal
 
Join Date: Mar 2009
Posts: 64
Default

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).
cc_ is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 08:06 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.