Skip to content

07 Single notes, basslines, and "melody"

Gene Boggs edited this page Jan 2, 2025 · 16 revisions

At random!

Please refer to the examples 1, 2, and 3 on the Selecting pitches page.

By interval choice

Example 1

By mathematical computation

Exhibit A

kiloparsec

For example, check out the SYNOPSIS of Music::RhythmSet::Voice

Bass-lines versus lines in higher registers

For a bass-line we should make sure it does not conflict in an ugly way with other parts. To achieve this we can have it only play notes in say, a pentatonic scale, as is done in the #3 example above. Also, bass notes tend to be held longer, say for a whole or half-note. Too many quick notes for a long time, and it sounds like a solo!

Exhibit B

algo-progression

(And even though its name doesn't give it way, you can use the above Bassline generator module to produce notes in a higher octave. These can then be rhythmically phrased with Music::Duration::Partition to make a melodic line based on named chords!)

Phrasing and pauses

This bit requires creativity! That being said, phrases can be generated with the previously covered partitioning module combined with logical pitch generation...

Traditional techniques

Exhibit C

inversion

Exhibit D

ode-to-joy

Allowed instrument voicings

If we are to write a piece for the oboe patch, we should code such that the range of notes is within the possibilities for an oboe. "The commonly accepted range for the oboe extends from B♭3 to about G6", according to wikipedia. Same goes for the all other instruments.

Clone this wiki locally