December 07, 2019, 03:21:09 PM

Author Topic: RTMIDI...again  (Read 266 times)

Offline wadmixfm

  • Jr. Member
  • **
  • Posts: 31
RTMIDI...again
« on: July 28, 2019, 10:21:02 PM »
hi there again

is there a way to process the timestamp on midi.out

i know there is on midi.in because its in the example code

i wonder why they dont bother doing it both ways

it would save a lot of mither

i have tried to send a midi note which works fine in to a sequencer to record it but the note when its recording keeps going when the midi example has stopped
i understand the concept

message[0] = channel
message[1] = control / note on
message[2] = velocity

but when i do the note off with 128 it does not send it

any ideas out there peeps

cheers

Offline iWasAdam

  • Hero Member
  • *****
  • Posts: 1412
Re: RTMIDI...again
« Reply #1 on: July 29, 2019, 06:28:26 AM »
Midi note off is NOT supported by all devices - go figure

what you need to send is midi note on with a velocity of 0

the standard is to send note off and offer the option to send note on vel=0 instead

Offline wadmixfm

  • Jr. Member
  • **
  • Posts: 31
Re: RTMIDI...again
« Reply #2 on: July 29, 2019, 10:59:27 PM »
it worked a treat cheers

its a shame there is no Note length option in rtmidi for output

but for what i need the note on velocity 0 works for me :-)

lee



Offline iWasAdam

  • Hero Member
  • *****
  • Posts: 1412
Re: RTMIDI...again
« Reply #3 on: July 30, 2019, 05:29:48 AM »
Midi is a standard (ignoring the note off issue), thats the reason itt has remained stable for many years.

sending note on - note off, is the accepted way of doing things ;)