07.05.2015 Views

Bronze Edition Guide - True BASIC

Bronze Edition Guide - True BASIC

Bronze Edition Guide - True BASIC

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

17. Sound and Music<br />

137<br />

F4 F4 G4 E4. F8 G4<br />

A4 A4 B-4 A4. G8 F4<br />

The letter R stands for rest. The number given with R has the same meaning as the numbers<br />

associated with the code L. That is, R4 means rest for the length of a quarter note, R2<br />

means rest for the length of a half note, etc.<br />

The following table summarizes the PLAY codes.<br />

Code<br />

A to G<br />

L n<br />

ML<br />

MN<br />

MS<br />

Meaning<br />

Play a note in current octave, at current tempo, etc.<br />

Set the length of subsequent notes.<br />

Play music legato, or smoothly.<br />

Play music normally (not legato or staccato).<br />

Play music staccato, or briskly.<br />

O n Set current octave. Middle C is the first note in octave 5.<br />

R n or P n Rest (pause) for length n.<br />

T n<br />

Set the tempo.<br />

# or + Sharp.<br />

- Flat.<br />

. Play dotted note.<br />

The SOUND Statement<br />

The SOUND statement makes your computer emit sounds that are not necessarily musical<br />

notes. You specify the frequency of the sound in Hertz (cycles per second) and the duration<br />

of the sound in seconds. For example, the statement:<br />

SOUND 440, 10<br />

plays concert A, which has a frequency of 440 Hertz, for 10 seconds.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!