PDA

View Full Version : Midi player BPM (Beats per minute)


smith_toh
09-26-2011, 01:35 AM
hi all
i use the following code to load and play a midi music

music = viz.addAudio('bach_air.mid')
music.play


Is there any way for me to set the BPM (Beats per minute) for the midi music?
Thank you so much.

Jeff
09-26-2011, 01:29 PM
There is no command that takes BPM as an argument. You can change the rate the audio is played at using the <multimedia:av>.setRate command.

smith_toh
09-26-2011, 10:08 PM
Thank you so much