Midi message editing (noob) question

Questions and discussion about building and using Max for Live devices
Post Reply
ManuelRodrigues
Posts: 51
Joined: Tue Dec 06, 2011 11:55 am

Midi message editing (noob) question

Post by ManuelRodrigues » Tue Jun 10, 2014 11:27 am

Hi There,

I want to convert midi messages. I need to send a midi note. For example:

Message Chan Data
Note On 1 1 126
Note Off 1 1 64

And convert it to:

Message Chan Data
Note On 1 126 1
Note Off 1 64 1

I want to use the note number for the velocity value and velocity value for the note number of the NOTE ON message. The note off value is ignored in my system.

(Don’t ask me why I want to do this. Its a limitation of my lighting desk that i’m trying to solve)

Ive done some work on it but can’t get it to work properly:

Ive created a midi parse object and connected it to an unpack object. I then connected the first output of the unpack object to the second output of a pack object and connected the second output of the unpack object to the first output of the pack object. I then connected the output of the pack object to a midi format object. See the attached file. This give erratic results. I noticed in my midi monitor that every time ONE note on OR off message is sent this patch generates a note AND off message. It doubles the information!?

So when I send this:
Message Chan Data
Note On 1 1 126
Note Off 1 1 64

I get this:

Message Chan Data
Note Off 1 126 64
Note On 1 126 1
Note Off 1 0 64
Note On 1 0 1

Hope you can help!

I have a similar thread running on the cycling forum:

http://cycling74.com/forums/topic/midi/#post-292220

Hope you can help!

Manuel

ManuelRodrigues
Posts: 51
Joined: Tue Dec 06, 2011 11:55 am

Re: Midi message editing (noob) question

Post by ManuelRodrigues » Wed Jun 11, 2014 1:10 pm

FIXED!!! :lol:

chapelier fou
Posts: 4861
Joined: Mon May 15, 2006 12:15 pm

Re: Midi message editing (noob) question

Post by chapelier fou » Wed Jun 11, 2014 1:14 pm

just in case : [zl rot]
MacBook Pro 13" Retina i7 2.8 GHz OS 10.13, L10.0.1, M4L.
iMac 27" Retina i5 3,2 GHz OS 10.11.3 L10.0.1 M4L.

Post Reply