Foreseeing midinotes in m4l

Questions and discussion about building and using Max for Live devices
Post Reply
eskil_ms@hotmail.com
Posts: 4
Joined: Fri Apr 16, 2010 9:09 pm

Foreseeing midinotes in m4l

Post by eskil_ms@hotmail.com » Mon Feb 07, 2011 10:53 pm

I would like to make a m4l-midi instrument that lets me view incoming midi notes a second or so before it is actually played, so that you can actually on beforehand see what midinote will be played. Of course, it is possible to use the midi editor to view subsequent midi note events, but i am looking for something more GuitarHero-like. Can someone please help me look into the midi future? Thanks

Surreal
Posts: 560
Joined: Wed May 17, 2006 1:18 am

Re: Foreseeing midinotes in m4l

Post by Surreal » Mon Feb 07, 2011 11:31 pm

I assume you mean prerecorded midi.

you would want to select all notes in the clip, get the notes, then display them in (or ahead of) time.

select_all_notes
get_selected_notes
(magic)

LOM

I do something like this in javascript for clipstep, but with straight up max, i can only tell you the theory

broc
Posts: 1148
Joined: Mon Jul 26, 2004 8:37 am

Re: Foreseeing midinotes in m4l

Post by broc » Tue Feb 08, 2011 12:56 pm

Yes, it can be with M4L using clip note operations.
Just decrease all note start times continuously (driven by metro), and if 0 trigger the note.

eskil_ms@hotmail.com
Posts: 4
Joined: Fri Apr 16, 2010 9:09 pm

Re: Foreseeing midinotes in m4l

Post by eskil_ms@hotmail.com » Thu Feb 10, 2011 10:15 pm

It is working. Thanks for the advice!

broc
Posts: 1148
Joined: Mon Jul 26, 2004 8:37 am

Re: Foreseeing midinotes in m4l

Post by broc » Sat Feb 12, 2011 2:31 pm

Cool!

I'm curious about the actual performance. Do you have any issues with the timing of graphics/sound?

Post Reply