10.1.13.7. Temperament¶
This module defines temperaments.
-
class
Musica.Theory.Temperament.
EqualTemperament
(number_of_steps, pitch_standard)[source]¶ Bases:
object
Class to define an Equal Temperament.
Step is an alias for semitone.
-
frequency
(octave, step_number)[source]¶ Return the frequency for an octave using the scientific pitch notation and an step number ranging from 0 to 11.
For A440 (La3), use octave 4 and step number 9.
-
fundamental
¶ Return the frequency of C0
-
number_of_steps
¶
-
pitch_standard
¶
-
-
class
Musica.Theory.Temperament.
TemperamentAccidentalStep
(temperament, step_number)[source]¶ Bases:
Musica.Theory.Temperament.TemperamentStep
-
flatten_name
¶
-
is_accidental
¶
-
is_natural
¶
-
sharpen_name
¶
-
-
class
Musica.Theory.Temperament.
TemperamentNaturalStep
(temperament, step_number, degree, name, quality)[source]¶ Bases:
Musica.Theory.Temperament.TemperamentStep
-
degree
¶
-
is_accidental
¶
-
is_natural
¶
-
name
¶
-
-
class
Musica.Theory.Temperament.
TemperamentStep
(temperament, step_number, quality=None)[source]¶ Bases:
object
-
next_natural
¶
-
next_step
¶
-
prev_natural
¶
-
prev_step
¶
-
quality
¶
-
step_number
¶
-
-
class
Musica.Theory.Temperament.
UsualEqualTemperament
(math_implementation, pitch_standard, natural_steps, translator)[source]¶ Bases:
Musica.Theory.Temperament.EqualTemperament
Base class factory to build for example a twelve-tone equal temperament.
-
natural_step_names
¶
-
number_of_natural_steps
¶
-
-
Musica.Theory.Temperament.
ET12
= <Musica.Theory.Temperament.UsualEqualTemperament object>¶ Twelve-tone equal temperament, also known as 12 equal temperament, 12-TET, or 12-ET