Dmaxer
05-12-2005, 07:02 PM
I have a model of a synthesizer I have made with 71 keys on it , I need to animate all the keys with a midi file , so far I have found a small program that will convert the midi data to a txt file and this gives the output format you can see below
25 On ch=1 n=37 v=14
so this means 25= frame number , On = note , ch=1 = channel number , n=37 = note number , v=14 = volume
I need to make a script to read the file and do some thing like this
A; get frame number and set 3dmax time slider to same frame number and turn on animate
B; is it on Ch= 1 ? if no then don’t use ,move to next line go back to A , if yes then read rest of line
C; read n= and select same number Key object in scene
D; read volume if 0 then move key object back up to start angle , if >0 then move key to down angle
Any help with this would be great as I dont know where to start
could someone show me a bit of script to read a txt file in this format ?
or do you know of a good script tutorial I could use online that will cover some thing like this , so far I have not found anything :(
Thanks for Reading
25 On ch=1 n=37 v=14
so this means 25= frame number , On = note , ch=1 = channel number , n=37 = note number , v=14 = volume
I need to make a script to read the file and do some thing like this
A; get frame number and set 3dmax time slider to same frame number and turn on animate
B; is it on Ch= 1 ? if no then don’t use ,move to next line go back to A , if yes then read rest of line
C; read n= and select same number Key object in scene
D; read volume if 0 then move key object back up to start angle , if >0 then move key to down angle
Any help with this would be great as I dont know where to start
could someone show me a bit of script to read a txt file in this format ?
or do you know of a good script tutorial I could use online that will cover some thing like this , so far I have not found anything :(
Thanks for Reading
