.txt Text file data conversion to midi/clt data problem.Help&advice appreciated

redrum's icon

Hello there,

Erm, this might be a slightly brave first post....

I've just started using Max recently and a trying to find a solution to converting lists of numbers into midi note data and control messages. I wish to output the converted data as a midi file/s to use in another sequencer.

So far I've tried this:

Writing the data from the text file to two function tables with a range of -10.25 to 3.04 for both midi pitch and midi note duration. Along with data from another text file, again to a function table with a range of 0. to 280.4 for velocity and a midi control message.

So to playback rescale the data from the function tables another metro and playback toggle has been added. With the function tables feeding into the scale objects to rescale the data ranges to midi protocol information.

These rescale objects then feed into three separate itables, with each one intended to generate, midi pitch, m midi velocity and duration respectively.

Could any of you please advise on the best way to achieve this conversion of data, where i'm going wrong or offer an more efficient method of mangling the data within the .txt files.

Thank-you in advance.

Max Patch
Copy patch and select New From Clipboard in Max.

R

1549.temp.txt
txt