SOUND Example

BS1 icon {PBASIC 1.0}

Syntax: SOUND

 

 

 

' SOUND.BS1
' This program generates a constant tone 25 followed by an ascending tones.
' Both the tones have the same duration.

' {$STAMP BS1}
' {$PBASIC 1.0}

SYMBOL  tone            = B2


Main:
  FOR tone = 0 TO 255
    SOUND 0, (25, 10, tone, 10)
  NEXT
  END

Go to PBASIC Language home page

Open Getting Started with Stamps in Class

Open Connection Troubleshooting

BASIC Stamp Help Version 2.5.4

Copyright © Parallax Inc.

8/21/2013