Detect MIDI note-on practices

Hi there,
sometimes drowning with things I do in 1s in Max, but keep strongly working.

Midi flows, I want to detect only note on.
Trigger CHOP with these values seem ok but is there a better practice ?

image

image

image

You could also use the callback function in the Midi In DAT. See an example in Op Snippets.

To change that example in Op Snippets to make it do something only on Note On, the code in the midiin1_script DAT could be something like:

def receiveMIDI(dat, rowIndex, message, channel, index, value, input, bytes):
	if message == "Note On":
		print("we have received a note")
	return

That’s perfect. Massive amount of informations everywhere (and well located)
I’ll check this AND it also probably provided me the way to get my WHOLE midi parsing / routing / exporting in one script/place.

Actually, I’m not sure about what I’m writing here… because MIDI In CHOP could be better (as it provides Exporting to parameters) but…

I was about to start another thread about that.

Hey @julien,

for operator centric approaches to control input data you might find some nice tricks in this experiment here: https://derivative.ca/community-post/asset/zuweiser-more-experiments-controller-mapping-and-binding.

There are other useful tools in the same realm mentioned at the top of the article as well: Bridgets, Galileo Mapper and TDMorph.

cheers
Markus

1 Like