Forums > MaxMSP

Interactive drum learning programme

Nov 24 2009 | 4:45 pm

Hi there,

I am attempting to create an interactive drum learning programme using max msp for my final year project, the idea is that the user will control an on screen interface using an electronic drum kit. I am new to max msp so I am having trouble starting off. For the actual drum lessons I need to be able to measure the time between when a note is played and when it should be played according to a click track. I then need to work out in milliseconds how much the beat was out and output some feedback. I also need to measure the velocity but I will tackle the timing first.
Any advice or opinions are welcome. I need to know what the best objects to use would be.


Nov 25 2009 | 1:45 pm

What kind of feedback will you output? If I were you I’d go through some max msp tutorials and look at objects such as "metro", "clocker", "tempo" etc to measure the timing in milliseconds and then use objects such as "< " or ">" to measure if the beats are hitting before of after pre-defined timing divisions. Velocity will be a piece of piss is your using MIDI, again you’d just use "< " and ">" to analyze velocity input. Hope this helps.

Nov 25 2009 | 1:58 pm

For time tracking you could use a seperate "beat", that gets started earlier than the one the user actually hears.
Start it f.e. 100ms ahead of the monitor beat and then simply subtract 100ms from the timing difference of the user input, so you’ll end up between -100 and +100.

Nov 25 2009 | 2:53 pm

Thanks for your comments, I have a patch set up with a metro that sends out a bang every 500ms, this is connected to a makenote object and in to the left inlet of a timer object, everytime there is a bang it resets the ms to 0, in the right inlet I have a note in, this allowed me to view how many ms out I am at each bang. I want to be able to count up the total ms out of time, any idea what object I would use? I’ve tried the counter object but it does not do the job.

Nov 25 2009 | 10:52 pm

"clocker" will do that for you.

Nov 26 2009 | 7:21 pm

Thanks, got the timing sorted, just wondering how I would stop the tempo when it has so many bars done, say 4 bars? Then output feedback such as a message on screen that lets you know how well you are doing?

Nov 26 2009 | 7:27 pm

Im guessing it has something to do with the seq object?

Dec 23 2009 | 7:21 pm

use clocker and then the "select" object. When select receives a predetermined number from clocker it will out put a bang, use this bang to activate feedback. You will have to create a simple patch to convert bars into milliseconds. I could send you something if you like…

Dec 27 2009 | 12:09 pm

you can have a lot of ways to determine how much "time" has elapsed, remember that bpm vs. msec is variable, so bars may not always be the same msec long. this will let you speed up and slow down the overall bpm, but retain the same "% off the beat" if you want.

For bpm to msec, take (bpm value) –> [!/ 60.] –> [* 1000.] –> [msec for metro or whatever]

note the use of floats in the 60. and 1000.
and the !/ that is the reciprocal of /

To sum up the total msec "off" you are over time, use [accum]. If you want absolute "off", run the values through [abs] so that the early ones don’t offset the late ones.

fun stuff and perfectly suited for Maxing!

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

Forums > MaxMSP