Data Reading From Text File

Gus's icon

Hi All ,

I am very new to M4L and would really appreciate a bit of help here.

I have created a synth and I would like to be able to write in a text file (txt, xls. or whatever you think is the most appropriate) a set of midi data (e.g. note, velocity) and then be able to input that in the synth that I have created in M4L for it to play.

I have been looking around quite a lot but could not find anything appropriate. Any advice is very welcome!

Thanks a lot!

Andro's icon

The coll or dict object would work. Then you just parse the data.

Gus's icon

Hi,

Thanks a lot I had a quick look yesterday and this seems to be the appropriate stuff! However I am not sure how to write the data (in coll per example) so that it is understood by midiparse.

Ex: If in coll I want to have in a ligne pitch and Velocity values how do I write that so that it is understood by midiparse which then does its job (and then sends output the data to a synth) ?

I have started like:

1, 60 70 where the first would be the pitch and second velocity but midiparse does not get it.

Thanks!