Using VarPtr in Play staement - Printable Version +- QB64 Phoenix Edition (https://qb64phoenix.com/forum) +-- Forum: QB64 Rising (https://qb64phoenix.com/forum/forumdisplay.php?fid=1) +--- Forum: Code and Stuff (https://qb64phoenix.com/forum/forumdisplay.php?fid=3) +---- Forum: Help Me! (https://qb64phoenix.com/forum/forumdisplay.php?fid=10) +---- Thread: Using VarPtr in Play staement (/showthread.php?tid=3250) |
Using VarPtr in Play staement - PhilOfPerth - 12-05-2024 I'm trying to set the length of notes in a Play statement using a loop and Varptr, but can't hit on the correct syntax. This is what I'm currently trying: Code: (Select All) For D% = 1 To 3 What am I doing wrong? RE: Using VarPtr in Play staement - grymmjack - 12-06-2024 (12-05-2024, 11:39 PM)PhilOfPerth Wrote: I'm trying to set the length of notes in a Play statement using a loop and Varptr, but can't hit on the correct syntax. This is what I'm currently trying: I think you need to pass PLAY the whole string - the docs here show that: Code: (Select All) 'Play scale in 7 different octaves From: https://qb64phoenix.com/qb64wiki/index.php/PLAY RE: Using VarPtr in Play staement - PhilOfPerth - 12-06-2024 (12-06-2024, 04:25 AM)grymmjack Wrote:(12-05-2024, 11:39 PM)PhilOfPerth Wrote: I'm trying to set the length of notes in a Play statement using a loop and Varptr, but can't hit on the correct syntax. This is what I'm currently trying: Thanks @grymmjack. I'll play around with that and see what I can figure out. (as you can see, I'm not the quickest at absorbing new info)! RE: Using VarPtr in Play staement - grymmjack - 12-06-2024 (12-06-2024, 09:05 AM)PhilOfPerth Wrote:(12-06-2024, 04:25 AM)grymmjack Wrote:(12-05-2024, 11:39 PM)PhilOfPerth Wrote: I'm trying to set the length of notes in a Play statement using a loop and Varptr, but can't hit on the correct syntax. This is what I'm currently trying: OK good luck! Let us know how it goes |