22.09.2015 Views

of Microprocessors

Musical-Applications-of-Microprocessors-2ed-Chamberlin-H-1987

Musical-Applications-of-Microprocessors-2ed-Chamberlin-H-1987

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

694 MUSICAL ApPLICATIONS OF MICROPROCESSORS<br />

a note statement begins with either an ID number or simply one or more<br />

blanks. The statement ID number is not important to the interpreter but<br />

may be included to identify various portions <strong>of</strong> the score such as measure<br />

numbers to the user. The remainder <strong>of</strong> the note statement consists <strong>of</strong> one or<br />

more event (note) specifications. As before, a semicolon following a specification<br />

is a signal that more follow on the same or next line.<br />

Quite a bit <strong>of</strong> information is needed in the specification such as the<br />

voice ID, pitch, duration, and articulation so the syntax is somewhat condensed<br />

to save space without unduly affecting readability. For a tone event,<br />

the specification starts with a number corresponding to the voice statement<br />

defining the "instrument" that will play the event. Immediately following<br />

the voice ID is a single letter pitch mnemonic, which is simply one <strong>of</strong> the<br />

letters A-G. If the basic pitch must be sharped or flatted, the letter is<br />

followed by a # or an @ sign, respectively. Following this is a single digit<br />

specifying the octave where C4 through B4 spans the octave starting at<br />

middle C. Note that the octave numbers "turn over" at C in accordance with<br />

usual musical practice.<br />

After the voice and pitch have been specified, the duration is needed. In<br />

the original version <strong>of</strong> NOTRAN, standard fractions such as 1/4 were used<br />

for the duration. However, single-letter mnemonics will be used here for the<br />

common durations as listed below:<br />

W<br />

H<br />

Q<br />

E<br />

S<br />

T<br />

Whole note<br />

Half note<br />

Quarter note<br />

Eighth note<br />

Sixteenth note<br />

Thirty-second note<br />

These stock durations may be modified by appending one or more dots<br />

(periods) or the digit 3. The dot extends the duration specified to its left by<br />

50% and can be repeated if desired, that is, Q .. is 75% longer than a<br />

standard quarter note. The "3" modifier indicates a triplet, which has a<br />

duration two-thirds <strong>of</strong> that specified. This format is much faster to type than<br />

the old fractional form but may not be quite as flexible. For example, tied<br />

notes are not readily specified, although for most common cases dots can be<br />

used to simulate tied notes. A general solution to situations such as a half<br />

note tied to an eighth note is left to the reader's imagination. (In the original<br />

version, a simple 5/8 would have been used.)<br />

The final variable to specify is articulation. Currently, only staccato is<br />

recognized and is indicated by the letter "S" following all other specifications.<br />

When normal (legato) notes are interpreted and given to the sound<br />

generation routines, the sustain duration is made equal to the note duration<br />

minus the attack and decay duration. Thus, the release phase <strong>of</strong> the note<br />

occurs beyond its musical stopping poinr. If the note duration is shorter than<br />

the attack plus decay time, the full attack, decay, and release phases are still

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

Saved successfully!

Ooh no, something went wrong!