Harmonic¶
- class maelzel.core.symbols.Harmonic(kind='natural', interval=0)[source]¶
Bases:
EventSymbol
A natural/artificial harmonic, or a sound-pitch flageolet
In the case of a natural or artificial harmonic, the notated pitch is the “action” pitch. In the case of a natural harmonic, for a string instrument this means the pitch of the node to lightly touch. Fon an attificial harmonic the note to which this symbol is attached identifies the pressed pitch, the interval will determine the node to touch (for a 4th harmonic the interval should be 5 since the 4th is 5 semitones above of the pressed pitch) A flageolet is a harmonic where the written pitch indicates the sounding pitch, and the means of execution is left for the player to determine.
If the interval is given then an artificial harmonic is assumed.
- Parameters:
kind – either ‘natural’, ‘artificial’ or an interval as string (‘4th’ is a perfect fourth, ‘3M’ is a major third). In this last case the kind is set to artificial and the interval is set to this value
interval (
int
|str
) – the interval for artificial harmonics. If set, the kind is set to ‘artificial’
Example
# A string 4th (2 octave higher) harmonic >>> symbols.Harmonic(‘4th’) # A flageolet, where the written note indicates the sounding pitch >>> symbols.Harmonic(‘natural’) # A touch harmonic, where the written note indicates where to slightly # touch the string. The interval is left as 0 >>> symbols.Harmonic(‘artificial’)
Attributes Summary
Methods Summary
applyToNotation
(n, parent)Apply this symbol to the given notation, inplace
applyToTiedGroup
(notations, parent)- rtype:
None
Attributes Documentation
- applyToRests = False¶
Methods Documentation