midiselect -- specify a range of note values?

AndrewCarterHughes@gmail.com's icon

This seems like it should be a simple question, but I can't find the answer. Is there some way with the midiselect object to specify a note range? Such as: "midiselect @note 1-83"

Thanks,

Andrew

Leigh Marble's icon

Just came up against this today... anyone find a good solution?

Leigh Marble's icon
Max Patch
Copy patch and select New From Clipboard in Max.

To answer my own question, here is a workaround using rslider to control an uzi. It's the brute force way, which may be the only way, barring some range syntax for the midiselect object that I haven't been able to figure out.

Rick's icon
Max Patch
Copy patch and select New From Clipboard in Max.

split is one option.

Leigh Marble's icon

Rick,

That's a nice alternative to what I posted, and it cleans up the Uzi method quite a bit!

Still, selecting a note range seems like such a common thing to do, I would wish for midiselect to have a built-in syntax for it. Currently, as I understand it, the syntax options are @note followed by "none", "all", a single integer, or a list of integers.

A hyphen-based syntax, like Andrew originally suggested above, would seem a graceful way to do it.

cheers,
Leigh

Ben Bracken's icon

FWIW, you can do something like this (@note [n0,n1]) with the mpesplit object which was released with today's RISE Package:
https://cycling74.com/articles/get-the-rise-package/

Though these objects are of particular use with MPE, some of them can be used with more general MIDI.

-Ben