PLAY

SmallBASIC implementations: 


Console command PLAY


10
20  PLAY string
30
Play musical notes.


See examples


If there is insufficient information on this page and you wish learn more about PLAY, please send an email to smallbasic@gmail.com. You can help to improve information about PLAY by submitting an article using the comments link below. Note, an offline language reference text file is now avialable – see the Download section.

  • A-G[-|+|#][nnn][.] Play note A..G, +|# is sharp, – is flat, . is multiplier 1.5
  • On Octave 0..6, < moves down one octave, > moves up one octave
  • Nnn Play note 0..84 (0 = pause)
  • Pnnn Pause 1..64
  • Lnnn Length of note 1..64 (1/nnn)
  • Tnnn Tempo 32..255. Number of 1/4 notes per minute.
  • MS Staccato (1/2)
  • MN Normal (3/4)
  • ML Legato
  • Vnnn Volume 0..100
  • MF Play on foreground
  • MB Play on background
  • Q Clear sound queue