10-23-2023, 02:59 PM
(10-23-2023, 11:33 AM)PhilOfPerth Wrote: Am I wrong again? (I often am)!
In the Wiki (and the Help file) I think there may be an error in the explanation for a pause in the Play function.
It says that Pn will pause for n quarter-notes, when it actually pauses for 1/n th. So p1 pauses longer than say, p16.
It's quite easy to adjust the string, but it's confusing.
Well I tried adding p in the middle of a sample and all I got was illegal this and that, no matter what I tried so don't have proper code test.
But if 1 is whole note and 4 is quarter note then 8 must be eight and so on to 64 so I agree with your observation.
illegal code:
Code: (Select All)
Play "q0mll64"
Do
For x = 1 To 50
a$ = a$ + "v" + LTrim$(Str$(x)) + "n" + LTrim$(Str$(x))
Next
a$ = a$ + "p" + _Trim$(Str$(i))
For x = 50 To 1 Step -1
a$ = a$ + "v" + LTrim$(Str$(x)) + "n" + LTrim$(Str$(x))
Next
Print a$
Play a$
a$ = ""
Loop Until InKey$ <> ""
Play "v10l1c,l4egl2o5c,o4l4eg"
b = b + ...