I’m looking for something almost exactly like midi hub but I also need it to do something specific: convert pitch bends to notes. Can midihub do this? I imagine it would need some kind of variable pipe and a maths pipe to be able to do that?
Pitch bends are actually always based on some base note, then depending on how the sound producing module is configured, pitch bend shifts the frequency some fraction from the base note frequency to the depth of total pitch bend, as configured in the sound producer. Depending on the device and its config, the depth may be a single semitone, 2 semitones, 12 semitones for whole octave pitch bends, or whatever else is set up. A single semitone would allow for the highest accuracy, as pitch bend messages have only 14 bits of precision, and this includes the sign bit.
Of course it’d be technically possible to know when a regular note’s pitch is passed through (the depth would have to be specified ahead of time), and convert that into a note event. Is this the intended effect you’re after?
Hi. Thanks for your reply. I have Suzuki QChord and it’s MIDI implementation is a bit funky. There is a strum plate which is split into 3 midi channels and only outputs the note C plus or minus 12 semitones. If I connect it to an external sound module it sounds fine. But if I record the output I only get Cs. So what I’d like is to remap the pitch bend range of a note to new notes. So a C with a pitch bend of +2 semitones should output a D.
Can this be done?
Always the exact pitches. There is a pitch bend wheel on top of that which works as a regular one would for the in-between tones. I think the pitch bend values generated by the strum plate range from -8192 to 8191 representing +/- 12 semitones. I read “pitch bend is transmitted using 2x7bit data bytes, forming a signed 14 bit number.”
If so, I could perhaps get away with it using the existing midihub pipes? I could filter out the pitch bend values based on specific values (at intervals of (8192*2)/24) and then transform them to notes starting from C2. That would take ages though and make changing things also time consuming.
Otherwise a pipe that could remap from CC to notes would be great. Or perhaps 2 new pipes: a variable pipe and a maths pipe? Either option would not only be useful for the odd QChord user but would also allow other midihub users to do more complex generative sequencing.
Interesting. I guess it could be called an ‘Auto Tune’ pipe which would quantize the bent notes to the regular frequencies. I’ll add this to the list of suggestions for a future update.
I don’t think it’d be possible to achieve this using currently available pipes in Midihub. A Midiboy sketch could be written for such a function, if you know how to write code.
Cheers! I do know how to write code so will check out midiboy. That autotune pipe would be super cool - especially when chained with a rescale pipe! That would add great new functionality to pitch bend / modulation wheels and strips on keyboards.