10-24-2023, 02:19 AM
(10-23-2023, 11:18 PM)PhilOfPerth Wrote:(10-23-2023, 02:59 PM)bplus Wrote:I have no problem getting "p" to be recognized. This is a simple check I used:(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"
Play "cdp16ef"
Sleep 1
Play "cdp1ef"
As you'll notice, line 3 has a much longer pause than line 1
Yes I agree with you, it could be better worded in Wiki, that 1-64 are fractions of one not numbers of quarter notes, good catch. mnr's fix of my botched mod of sample proves it.
724 855 599 923 575 468 400 206 147 564 878 823 652 556 bxor cross forever


