live.dial to control CC with range -64 to 63?
Hi all,
my apologies for asking a couple of questions that might seem to simple to answer. I am trying to build a small midi-controller, reading up as much as possible, of course.
Got some things I need to learn about live.dial. I am trying to control CCs on a device with knobs/values that range from a) -64 to 63 and b) -24 semitones to 24 semitones while trying to display those parameter values correctly with live.dial. I am e.g. using Type == Float or INT and Range/Enum == -64 64, but that doesn't seem to work and only affects the CC from -64 to -1 obviously. If I use values 1 127 or 40 88 (for the 48 semitones) it works correctly, but the displayed values are confusing.
Warm regards.
EDIT: Obviously I've been stupid and there's lots to learn, but it's not hopeless. Adding some simple math/numbers between live.dial and the output dest… +64 for the first question and +24 *128 / 48 for the latter.
and such simple math is often easier than using the GUI objects internal possibilities.
Also way more interesting!
Could someone have a quick look into the attached patch? Keen to learn! I am really just beginning with some simple things here. Trying to rebuild with dial what has been relatively easy to achieve with live.dial. Couple of questions:
- how can I make dial output enum values x1, x2, etc…?
- how can I set dial to an initial value by mouse double-clicking?
- can I focus the dial and enter values with the keyboards number pad?
- how to map/modulate with live.lfos?
EDIT: an additional zl.lookup into right inlet of messages seems to be an option, though then I can only control the value through the dial.
1.)
[zl] lookup or [coll] are fine for that if you want the visual representation to look like it is.
for the pure numbers try
[t 2 i]
[pow]
2.)
there are externals for that, but if you want a patch solution i have to look on my mac later.
3.)
i am not sure if you really want to enter numbers into the "multiplier" knob. :) and where the paramter values are the respective numbers, you could just use the numberbox which you use as diplay.
but let´s take the challenge like given.
a)
put an empty [lcd] behind the dial (context menu: bring to front) to catch the click, which will activate "recording" the keyboard input as well as provide control of the dial.
to make it work, set the dial to not "respond to click" in the inspector, which makes it "transparent to the mouse".

(you could also make the lcd transparent - color wise - and put it on top.)
think a moment about why i use [sel 0].
b)
a [gate] after the [key] will now open and keyboard input will now be sent wherever you wish.
take the ASCII code
let it trigger the "buffer"
then convert it to a symbol
then concatenate that symbol with the buffer content in reverse order
then write the string back to the buffer
then output the string
