Fixed MIDI Note Velocity

Feb 26, 2011 at 2:37pm

Fixed MIDI Note Velocity

Hello all, trying to get my head around something this morning. I’m trying to get fixed velocity values from ‘notein’, meaning no matter what the velocity of a note is coming in, it will always output the same value (apart from when it’s 0). I’m wanting to filter out the different velocities but still use the MIDI data as I would normally for something like ‘poly~’.

In the attached patch I’ve got a method going for it. I basically route the velocity value for each of the notes I receive, always make it 64 or 0, then repack the note data for normal use. However, I think I’m having some sort of routing problem. The previously hit note will always receive note-on velocity of the next note. I can’t figure out why!

I know this whole demonstration patch might seem a little convoluted but it’s for quite a specific purpose. Is there a better way of doing this?

The main patch is ‘fixedvelpico.maxpat’, ‘fixvnote.maxpat’ is an abstraction. Thanks, any help would be appreciated.

Just as a note, I’ve used this method in the past for creating pseudo-MIDI note data from other data input!

Attachments:
  1. fixvnote.maxpat
#55202
Feb 26, 2011 at 2:52pm

Mmm I’ve just had a thought. It’s probably far more straightforward for me to flatten out the velocity within ‘poly~’ rather than before it. Nevermind! Once again the obvious solution eluded me!

#198691
Feb 27, 2011 at 1:04am

i did not look at the patches but i think you want to check out [buddy]
or change the way you connected unpack and pack. :)

#198692
Feb 27, 2011 at 8:51pm

[togedge] will give bangs for >0 and <1 transitions

#198693

You must be logged in to reply to this topic.