1. IMPORTANT:
    We launched a new online community and this space is now closed. This community will be available as a read-only resources until further notice.
    JOIN US HERE

14 bit MIDI knobs (solved)

Discussion in 'Building With Reaktor' started by MPJS, Apr 9, 2018.

  1. MPJS

    MPJS NI Product Owner

    Messages:
    59
    Hi!

    I am building a 14 bit MIDI controller (or actually 10 bit sent out as 14 bit MIDI from an Arduino with high byte and low byte 60cc apart).

    To receive 14 bit MIDI, I simply created two knobs that are summed.
    Is this the best way or am I missing something cooler I could do in Reaktor to receive 14 bit MIDI?

    To represent the value on the GUI, I now only have a meter that looks like a knob... is there some trick maybe how I could get an actual knob that reacts to 14 bit input but is still also controllable with the mouse?

    And then I would like to run all controls on a separate channel... for that I would have to put all controls in a separate instrument and wire that to the synth I want to control, right?
    (I want the controller on channel 3 for example, but my keyboard on channel 1, because I need all 128 CC's of a channel and don't want to interfere with pitchwheel, modwheel etc....)
    14 bit knob.jpg
     

    Attached Files:

    • !a1.ens
      File size:
      1.5 MB
      Views:
      361
    Last edited: Apr 9, 2018
  2. herw

    herw NI Product Owner

    Messages:
    6,421
    there is another simple solution:
    MSB+LSB.png
    set the range of a knob to [0;16256] with step size=1 but mouse resolution to 127. So the knob jumps with 128-steps. Now set Fine-tuning Factor to 128 and with shift-mouse or shift-cursor key you have step size 1 too.

    edit: (2018-04-19) the range must be 0..16383=2^14-1
     
    Last edited: Apr 19, 2018
    • Like Like x 1
  3. MPJS

    MPJS NI Product Owner

    Messages:
    59
    Greetings herw!

    That's a nice solution for a 14 bit knob, thank you.
    But I can't automate it with 14 bit MIDI, which is the whole point.

    I think 14 bit MIDI is a nice feature that should be added to Reaktor, just to have the extra option for a second finetuning controller like with the mouse.

    I could maybe use 12 bit OSC, maybe even make the Arduino Nano send it (?), but I know nothing about it and as far as I know it only works in standalone mode... but since I will probably only use one instance at a time I might have a look into that.
     
  4. sellotape

    sellotape NI Product Owner

    Messages:
    345
    Try to layer a mousearea above the pseudo knob and split the output to send msb and lsb.
     
  5. EvilDragon

    EvilDragon Well-Known Member

    Messages:
    19,938
    But 14-bit range is 0-16384! :)
     
  6. sellotape

    sellotape NI Product Owner

    Messages:
    345
    14 bits = 16384 possible conditions, so if we start with zero it's 0-16383 to be correct.
     
    • Like Like x 1
  7. EvilDragon

    EvilDragon Well-Known Member

    Messages:
    19,938
    Touché/my finger slipped. :D
     
    • Like Like x 1
    • Funny Funny x 1
  8. MPJS

    MPJS NI Product Owner

    Messages:
    59
    Hi there!

    I did have a mouse area in there and merged the output with the signal from the two summed knobs and placed it over the meter with the knob grafics, which works (no need to split the output, since the meter is controlled by the summed output of the 2 knobs and should act like 1), but the resolution from the mouse area is very bad because it can't be bigger than the knob - maybe with extremely slow mouse it would get better but it doesn't have fine tuning.

    A google search quickly led to the conclusion that I want to stay away from OSC (needs an additional interface in software or hardware (ethernet device)), so it'll probably have no mouse control and be automated via 2 knobs in an external instrument - if I use Blocks each Block could act as a midi receiver so I wouldn't have to externalise them...
     
  9. MPJS

    MPJS NI Product Owner

    Messages:
    59
    Maybe an invisible knob over the meter... the value would jump to the knob value when clicked on with the mouse but besides that it would act ike 1 knob...

    Edit: Yes, invisible knob is the best solution.
    Theres even an invisible knob creator online for all sizes:
    http://png-pixel.com/

    :)
     
    Last edited: Apr 19, 2018
  10. herw

    herw NI Product Owner

    Messages:
    6,421
    :oops: - getting older
    have corrected in my posting
     
    • Like Like x 1
  11. MPJS

    MPJS NI Product Owner

    Messages:
    59
    To conclude this thread I post the 14 bit mixer: a modified Bento Mix 4 with 4 knobs with 14 bit automation.

    The controls for automation with MSB and LSB are on the B panel, while it can be controlled with the mouse on panel A. (I chose a mouse resolution of 256 with finetuning factor 4 to get the same 10 bit resolution I will have with my controller, but they can be automated in full 14 bit if someone wants that)

    Thank you guys for your input!

    14 bit mixer.jpg
     

    Attached Files:

    • Like Like x 1
  12. MPJS

    MPJS NI Product Owner

    Messages:
    59
    There's one thing I forgot, though: Snapshot saving.
    I haven't tested yet but I guess when a snapshot loads it will probably load the mouse button value and not the MIDI one....
     
  13. Paule

    Paule NI Product Owner

    Messages:
    7,555
    A snap value element?
     
  14. MPJS

    MPJS NI Product Owner

    Messages:
    59
    Yes, easy, works... :)

    This time, the mixer has 4 outputs.
    If you activate an output it breaks the summing chain at that point.
    So if you activate just output 2 for example you have input 1 and 2 mixed to output 2 and 3 and 4 mixed to output 4.

    It would be nice if it could recognize automatically if a connection is made (same with the VCA CV-inputs - just connected a 1 there as default)... maybe in a future version with salamanders FPP...
    14 bit mixer+.jpg
     

    Attached Files:

    • Like Like x 2