I have some midifiles that send control change values that detune the pitch. The problem is if I load a new midifile the pitch is still detuned (until I restart the midi device). What I want to do, is to reset every cc setting when loading a new file (or at least - the detune setting).
https://www.recordingblogs.com/wiki/midi-controller-message
I already do reset cc 120,121 and 123 and it has some effect, but not for the pitch. I also tried without pitchbend information, but its still detuned.
Also tried the midi reset message: https://www.recordingblogs.com/wiki/midi-reset-message
But it only seems to work if send from a midi file (I play them from a [text] object).
Any idea which cc (or something else) setting to reset for a correct pitch?
-
How to reset detuned pitch of a midifile?
-
@Jona https://www.reddit.com/r/Reaper/comments/9lb5n2/midi_pitch_modulation_affecting_the_next_item/
more....
https://www.pgmusic.com/forums/ubbthreads.php?ubb=showflat&Number=490405
So probably the easy way to reset the pitch is to send a message into [bendout].
I am pretty sure the message is 0 for no bend.......... https://forum.pdpatchrepo.info/topic/4333/bendout-pitch-bending-in-general
David. -
@whale-av thank you. I will check that out.
-
I found out that it is an Emscripten / webMidi specific issue, on desktop it works fine. I guess I made some mistake in my webMidi implementation or it behaves differently...
-
I solved it with sending raw midi data.