Variable in Vmusic Commands

MurrayJ

Senior Member
I always thought the following would work to play a numbered mp3 file stored in a variable to a Vmusic player -

serout 4,t9600_8,("vpf ",b3,".mp3",CR)

On trying it out I see you have to convert the number into the ascii equivalent using the bintoascii command. I this the correct way to do this or is their a more direct way?

Murray
 

hippy

Ex-Staff (retired)
You can use #b3 to produce a numeric ASCII string but there will be no leading zeroes ( eg, "0.mp3", "1.mp3", "10.mp3" "100.mp3" filenames ).

If leading zeros are required, BINTOASCII is probably the easiest way.
 
Top