Talk to other MIDI Designer users about MIDI Designer, iOS MIDI and related topics. Or share layouts, pages, and ideas.

Also check out the Facebook Group.

Of course, if you want to send us an email, feel free.

MIDI Designer
Design your perfect MIDI controller for iPad, iPhone and iPod touch.
How to use a button to select value of knob that has named ticks - MIDI Designer Q&A

How to use a button to select value of knob that has named ticks

0 votes
asked Sep 2, 2019 in Advanced by espiegel123 (470 points)
Hmm, I do not think that is possible but I ‘d like to be corrected if I am not right about this. IMHO you have to set boundaries (number of ticks) before filling in the midi values of the subcontrols.

You could in advance create a few extra ticks/values that will be used in time. You could hide them first and bring them to live when needed.
FWIW, It looks like the knobs with named ticks seem to respond to incoming MIDI without being scaled (thank goodness). I.e. my knob receives a value of 6 from incoming MIDI, it gets set to the value I have set for an input of 6 -- it is only when sending a value from a u.i. item in MDP that the scaling happens.

1 Answer

0 votes

How to range sub controls, whether or not the subcontrol uses named ticks.


The values coming from supercontrols are not scaled.  What is happening is that to move a subcontrol full scale, it takes a full scale movement of the supercontrol, whether or not the subcontrol has named ticks.  That movement is effected as the midi value sent to the subcontrol.

For a seven bit super control, this means 127 to hit max.  For a 14 bit, 16383.

So if your subcontrol has thee ticks, named or not, you send the values 0, 64, and 127 respectively.  Five ticks, 0, 32, 64, 95, 127.   

Your three sub controls might have the labels 1, 2, 3, and midi values of 2, 4, 6.  The 3/6 combo is the full range value, and requires a drive of 127 to reach. Is why midi receive sets the subcontrol to the correct value when it receives the 6.

For real confusion, have the supercontrol be 7 bit, and the subcontrol be 14 bit.  The seven bit super will still drive the sub full range at 127, via every 8th value.  Might actually be a use for this.

Once this gets into practice, it comes easy.  Much of my workflow is in a spreadsheet, were the values get calculated.  And continues my argument of why it is a best practice to separate the super control and any scaling issues from the midi value transmission.

Two ways to calculate the button values:

  • MDP2 will calculate the numbers.  Make a new knob, select the number of ticks, do not change max value from 127, then convert to named ticks.  The correct midi values will be filled in.  These are NOT the midi values you need in the sub control, but the values to send to activate the nth subcontrol setting.  (Also works for 14 bit controls)
  • Dan has posted a spreadsheet to scale your buttons. (Although I cannot find that link now - will have to find, or post my version - my math comes out slightly different than his).
  • For smaller sets of numbers these are 'ish - 1, 28, 60, 97, 127 prolly works for five values.
answered Nov 14, 2019 by jkhiser (10,510 points)
...