MIDI controller / filter for turning knobs with two values?

Talk about your MIDI interfaces, microphones, keyboards...

Moderators: MattKingUSA, khz

Post Reply
fraslo
Established Member
Posts: 57
Joined: Sun Jun 28, 2015 2:51 pm
Has thanked: 2 times
Been thanked: 8 times

MIDI controller / filter for turning knobs with two values?

Post by fraslo »

Hi,

My workstation has four MIDI controller knobs, which can be turned endlessly and I would like to use them to control my DAW/sequencer.

Every little turn of the knobs triggers a MIDI event, but only the values 1 or 65 are shown as an output (screenshot is attached). When I switch the turning direction, the output value changes immediately from 1 to 65 or the other way around. When I use the knobs with my workstation, a wide range of values can be reached.

The four knobs behave the same, the only difference is the second hexcode in white letters. The screenshot shows 10, the other knobs show 11, 12, 13. Four proprietary DAWs are preconfigured in my workstation and can be chosen, but the behavior of the knobs stays the same.

Is there any chance to filter/change the MIDI events to create a range from 0 to 127 or any other solution?

Any help is appreciated.

Frank
Attachments
midicontroller1-65.png
midicontroller1-65.png (117.16 KiB) Viewed 6637 times
User avatar
noedig
Established Member
Posts: 233
Joined: Wed Feb 12, 2014 4:39 am
Location: South Africa
Has thanked: 9 times
Been thanked: 52 times

Re: MIDI controller / filter for turning knobs with two values?

Post by noedig »

It is possible with mididings if you're okay with some scripting.

I would post an example, but I just discovered that it's not in the Ubuntu repositories anymore and there's a few snags to get it to build.
fraslo
Established Member
Posts: 57
Joined: Sun Jun 28, 2015 2:51 pm
Has thanked: 2 times
Been thanked: 8 times

Re: MIDI controller / filter for turning knobs with two values?

Post by fraslo »

Hi,

thanks for your reply, I didn't know about mididings. :D
User avatar
milo
Established Member
Posts: 1242
Joined: Wed Sep 06, 2017 2:55 am
Location: Southern Utah, USA
Has thanked: 275 times
Been thanked: 218 times
Contact:

Re: MIDI controller / filter for turning knobs with two values?

Post by milo »

You also may find what you need here: http://x42-plugins.com/x42/x42-midifilter
User avatar
MyLoFy
Established Member
Posts: 82
Joined: Sat Jun 27, 2020 8:10 am
Location: Berlin
Has thanked: 21 times
Been thanked: 36 times

Re: MIDI controller / filter for turning knobs with two values?

Post by MyLoFy »

QMidiRoute does also a pretty good job converting and filtering MIDI events. I use it to run automation of synths or ardour controls with my faderport.
User avatar
noedig
Established Member
Posts: 233
Joined: Wed Feb 12, 2014 4:39 am
Location: South Africa
Has thanked: 9 times
Been thanked: 52 times

Re: MIDI controller / filter for turning knobs with two values?

Post by noedig »

Those are good tools to have in your toolbox, but it doesn't look like they can solve this issue.
A memory of each CC must be kept, and when receiving a 65, it must increase the stored value and output it. When receiving a 1, it must decrease the stored value and output it. The output must be limited between 0 and 127.

Some more scripting solutions in addition to mididings:
- Ardour supports Lua scripting to create a "DSP script" that could do MIDI processing
- Reaper supports JSFX plugins, which are basically scripts that run as plugins and could do MIDI processing
- https://www.osar.fr/protoplug/ - Lua scripting in a VST plugin
- As a last resort (although it's actually quite simple) a JACK MIDI program can be created in C which does this.
fraslo
Established Member
Posts: 57
Joined: Sun Jun 28, 2015 2:51 pm
Has thanked: 2 times
Been thanked: 8 times

Re: MIDI controller / filter for turning knobs with two values?

Post by fraslo »

Hi,

Thanks for all these suggestions, I already learned a lot about MIDI filtering.
Post Reply