Forums > MaxMSP

Fixed MIDI Note Velocity

February 26, 2011 | 2:37 pm

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

February 26, 2011 | 2:52 pm

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!


February 27, 2011 | 1:04 am

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. :)


February 27, 2011 | 8:51 pm

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


Viewing 4 posts - 1 through 4 (of 4 total)