How do I send a MIDI filename into the seq object

Feb 24, 2011 at 1:35pm

How do I send a MIDI filename into the seq object

I’m trying to send the message

read “/path/with some spaces/to/my/midifile.mid”

to a seq object so I can load a specific midi file rather than get the file dialog. But the file dialog appears anyway and so I’m suspecting my filename doesn’t match the concept of a Max “symbol”

Eliminating the quotes doesn’t help, even if I try to escape the spaces.

Can someone provide a correct syntax example?


Feb 24, 2011 at 2:55pm

Paths need to be formated in a Max cross platform way: HD:/folder/file.whatever. You can also use object like dropfile, or opendialog to choose the file, or format the path string using objects like sprintf or combine.

– Pasted Max Patch, click to expand. –
Feb 24, 2011 at 5:34pm

Thank you so much — the dropfile mechanism made it easy for me to see what to write. Turns out that there was a separate issue because the MIDI file I was trying to load was format 1. I don’t quite understand why the seq object only supports format 0 files these days.


You must be logged in to reply to this topic.