Forums > MaxMSP

Step-by-Step with Detonate

October 19, 2013 | 3:35 am

Hi –

I’m having a problem with Detonate and I was hoping someone here could help.

I’d like to play back a polyphonic MIDI file, one note/chord at a time, using a Bang coming from the a Spacebar trigger.

This works most of the time, but some notes seem to get their durations shortened and they sound "flubbed", and I’m not sure what’s causing that or what could be done to fix it.

I could try to upload a MIDI, if people seem to think the problem is starting there. Is Sendspace OK on the forum?

Thank you so much!

October 19, 2013 | 7:03 am

It seems possible that triggering multiple notes in the same tick of the scheduler might be causing [detonate] to malfunction. You might try deferring the re-triggering of the ‘next’ message, by putting either a [deferlow] or [delay 0] object after the [sel 1]. Other than that, your program looks like it should work.

October 19, 2013 | 7:58 am

dont know if that helps you, but have you tried using ‘1’,’2′,’3, 4, 5′ instead of ‘next’ and ‘bang’?

October 19, 2013 | 8:02 am

‘a’ "a" ‘1’ "1"

what the heck is the forum doing to these characters now.

looks like the closing apostrophes would be of a bigger font size.

an why are they different when they are around a number character.

‘a’ "a" ‘1’ "1"

‘a’ "a" ‘1’ "1"

‘a’ "a" ‘1’ "1"

‘a’ "a" ‘1’ "1"

‘a’ "a" ‘1’ "1"

only as code it is normal:

'a' "a" '1' "1"



October 19, 2013 | 9:17 am

If your MIDI has overlapping notes of the same pitch (re-triggering), the second note may be shortened by note-off from the first note. This could be solved with the @repeatmode attribute of [makenote].

October 19, 2013 | 2:57 pm

Hmmmm…I tried all of the changes, but nothing seems to be doing it.
Here’s the updated patch.
I’ve also been trying MIDI from this website:

Are there maybe some externals that could do this better?

Maybe it has something to do with note durations in respect to specified tempo also?

October 19, 2013 | 3:09 pm

Oh, it looks like that Counter-stepped version won’t work – because it can’t do chords. Here’ another quick update.

October 20, 2013 | 3:21 am

> Maybe it has something to do with note durations in respect to specified tempo also?

In my experience detonate ignores the tempo specified in a MIDI file and always assumes standard tempo 120. So if the file has tempo x, you may need to adjust the durations, ie. multiply with factor (120./x).

October 20, 2013 | 11:39 pm

I’m not sure that is the problem, though – because it seems like the note "blunting" happens only occasionally.
Are there any other possible fixes for this? No one else has run into this problem? The application doesn’t seem that specialized.

October 21, 2013 | 1:50 am

I’m using detonate for continuous playback of MIDI files without any problem. So there seems something wrong with your step-by-step trigger and chord recognition. For investigating the issue it would be most helpful to find a reproducible scenario.

October 22, 2013 | 1:30 am

Yes – detonate works well for simply playing back a MIDI file – but triggering it step-by-step is where the problem occurs – I attached the patch I was working with in the above thread and a link to various MIDI files that demonstrate the problem.

It’s a truly frustrating problem!

October 23, 2013 | 2:36 am

Is there a way to route the output to some sort of polyphonic voice selector?

January 10, 2014 | 4:45 pm

Hi, Lizzy (or anyone) – I wonder if you might be able to help me? I’ve been using this application for a couple of years now, to do all sorts of exciting performer-based things, ultimately triggered by audio hits and used to trigger musical notes, one at a time, and video, in real time.

Great! The trouble is, my mac died recently and the application – Tapper – will not work in OS X 10.8 as it’s power pc. I’m really desperate to find something that will do the same job in 10.8, but so far, to no avail. M sounded like it might do the trick, but I can’t find a way to load midi files into it (it’s greyed out in the menu). Thew closest thing anywhere is your example above using detonate. The thing is – I’m completely new to Max and I’m feeling very stupid…I’ve tried and tried to find a satisfactory way to use a midi input to do the job of the space bar – but I can’t seem to filter out the original note info – it seems like at least three notes are playing together.

If you – or anyone – might be able to show me how that bit of midi input ought to fit into the examples above, I’d be very very grateful – I’ve got shows coming up that require it – and equipment built around the concept!

So…here’s hoping!

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

Forums > MaxMSP