generating midi CC control ramps from note input

Mar 17, 2011 at 6:04am

generating midi CC control ramps from note input

so, i’m trying to make a patch that will basically take a CC# and make it ramp from high to low, triggering said action with a note.

eg: if the patch gets note on 1, send CC1 starting at 0, increment by one until we get to 127, using the note velocity as a wait time to increment. if patch gets note 2, same thing but go from 127 to 0.

i can make this in 5 minutes in arduino with C code. i’ve sat here for 3 hours looking at tutorials and i still have literally NO CLUE how to even begin this in max. i don’t even know what to look up in the help to assist me in starting.

also: this should only work on notes coming in on channel 10…

#55611
Mar 17, 2011 at 10:49am

It can be frustrating, having the pseudo code crystal clear, but just not knowing which objects to use…..we’ve all been there!

Here’s a quick example which you may want to adapt/improve:

– Pasted Max Patch, click to expand. –

Brendan

#200004
Mar 17, 2011 at 9:50pm

fantastic. “line” is what i didn’t know about, and i didn’t really see how to do message formats until now.

that said, i almost have the first piece of what i’m working towards (automated crossfader control via notes)… how do i get the first two notes to send static values instead of lines? lines that start and end from the same place don’t seem to work as i hoped…

thanks for the start though man. ruling.

– Pasted Max Patch, click to expand. –
#200005
Mar 17, 2011 at 10:15pm

also, is there a way to easily ignore note off and note off velocity? ableton doesn’t have any kind of option to change note off velocity and it’s screwing with the line speed

(edit: nevermind, stripnote object)

#200006
Mar 18, 2011 at 12:55am

i’m having a terrible time getting this thing to operate correctly. it works, but the line will only go the right direction after hitting the note a second time, like it’s not getting the low and high values fast enough the first time around. or, the line will send the first 8 messages from the last instruction, THEN output what was picked via the input.

help? argh.

– Pasted Max Patch, click to expand. –

i also tried it this way but i have no idea how to make this actually function properly. for whatever reason the first two notes trigger the line bang which makes me want to throw my computer because it doesn’t seem like it should be happening

– Pasted Max Patch, click to expand. –
#200007

You must be logged in to reply to this topic.