Talk:SmileBASIC (Petit Computer 3)/@comment-14513004-20141122062546/@comment-14513004-20141123114333

Topindex is just starting position of wavedata array.

I used wave file editor. http://smileboom.com/special/ptcm3/sample/code/sbwav.php (note: WV%[] array size is 16384)

I recorded  my voice (2 seconds). I edited source code and used 0 as topindex. It played whole wave for 2 seconds. WAVSETA BNO,EGA,EGD,EGS,EGR,WV%,NOTE,0 BEEP BNO

Then I changed topindex to 10000. It played starting from the middle, but whole sound was stretched (it sounded lower and slower) and played about 2 seconds. WAVSETA BNO,EGA,EGD,EGS,EGR,WV%,NOTE,10000 BEEP BNO

It seems you can't loop wave data using BEEP command. It will play the selected section once.