Play a melody
PLAY mel$,dur%,vol%
Plays a melody coded in mel. The characters have the following meaning.
| Character | Meaning |
| 'a'..'h' | Play the corresponding note |
| '#' | Increment next note a half step (cis, dis..) |
| '+' | Change to next higher octave |
| '-' | Change to next lower octave |
| 1 | Select whole notes 1/1 |
| 2 | Select half notes 1/2 |
| 4 | Select quarter notes 1/4 |
| 8 | Select eighth notes 1/8 |
| 6 | Select sixteenth notes 1/16 |
| ' ' or 'p' | Play a rest |
| 'r' | Reset to default value |
The changes of octave and note length are valid until explicitely reset with 'r' character. Parameter dur is the length of 1/1 note. vol is the volume (or waveform) like in SOUND.
|