Expand description
How loud a note is: music21’s volume.Volume.
A volume is one number held two ways — a MIDI velocity from 0 to 127 and
the same value as a scalar from 0 to 1 — plus the rule for reading it
against the dynamic marks around it. music21 finds those marks by
searching the stream the note sits in; there are no streams here, so
Volume::realized_with takes the dynamic scalar and the articulation
shift as arguments instead of going looking for them.
Structs§
- Volume
- How loud a note is: music21’s
volume.Volume.
Functions§
- rounded_
str - A loudness written out the way Python writes
str(round(value, 2)): to two places, with the trailing zeros dropped but never the point.