Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Wrong explanation in Play?
#5
(10-23-2023, 02:59 PM)bplus Wrote:
(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. Huh

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"
I have no problem getting "p" to be recognized. This is a simple check I used:
Play "cdp16ef"
Sleep 1
Play "cdp1ef"
As you'll notice, line 3 has a much longer pause than line 1
Of all the places on Earth, and all the planets in the Universe, I'd rather live here (Perth, W.A.) Big Grin
Please visit my Website at: http://oldendayskids.blogspot.com/
Reply


Messages In This Thread
Wrong explanation in Play? - by PhilOfPerth - 10-23-2023, 11:33 AM
RE: Wrong explanation in Play? - by bplus - 10-23-2023, 02:59 PM
RE: Wrong explanation in Play? - by PhilOfPerth - 10-23-2023, 11:18 PM
RE: Wrong explanation in Play? - by bplus - 10-24-2023, 02:19 AM
RE: Wrong explanation in Play? - by mnrvovrfc - 10-23-2023, 03:29 PM
RE: Wrong explanation in Play? - by bplus - 10-23-2023, 04:38 PM
RE: Wrong explanation in Play? - by SMcNeill - 10-24-2023, 02:07 PM
RE: Wrong explanation in Play? - by SMcNeill - 10-24-2023, 02:12 PM
RE: Wrong explanation in Play? - by bplus - 10-24-2023, 02:33 PM



Users browsing this thread: 1 Guest(s)