Creates a monophonic ``piccolo´´ sound-bit from a note sequence.
The
sound-bit can be changed using the
reset(notes) method.
Notes
Definition of note's sequence and note:
- The notes sequences is written as:
- a sequence of notes, separated with spaces;
- while note's duration is noted by an integer, from 1 to
999, separated with spaces;
here, 1 stands for the minimal note duration (e.g. quaver),
the note duration being valid until a new duration is set;
- while note's intensity is written using the construct
Ivalue where value is from 0 to 0.999, e.g.
I0.5 or I5 (the 0. number prefix can be omitted)
refers to a half-scale intensity.
- other pattern being ignored.
e.g.
e5 e5b e5 e5b e5 e5b e5 b d5 c5 4 a | 1 h c e a 4 b | 1 h e g g# 4 a
is more or less the Elise'letter piano right-hand 1st notes.
- Each note is written as A4 for the middle-board A
(La) at 440Hz.
- The letter:
Note codes
A |
B |
C |
D |
E |
F |
G |
H |
La |
Si |
Do |
Ré |
Mi |
Fa |
Sol |
silence |
stands for the note name. The h stands for a ``halt´´, a
silence.
- The digit, from 0 to 8 included, stands for the octave,
default is 4.
- The # or b suffix stands for the sharp or
flat modulation respectively.
e.g., G1# is the 1st piano fingerboard G sharp. The notation
is case insensitive.
- The tempo, i.e. the minimal note duration in second, is declared a
the beginning of the note sequence using the T value construct.
Default is 0.25s, while this declarations is to be done once.