Skip to content

04 Selecting pitches

Gene Boggs edited this page Feb 17, 2021 · 12 revisions

Named notes vs MIDI pitch numbers

For MIDI-Perl "C4" and "60" are identical.

Pre-determined

We really don't have to select anything at all. Rather, we can just add the right notes to the score.

for my $note (qw(C4 F4 G4 C5)) {
    $score->n('qn', $note);
}

But this page is about selection...

At random

Example 1

Within a scale

Example 2

Within an array of scales

Example 3

Sidebar: Converting note formats

Example 4

Clone this wiki locally