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.

_compute_fundamental()[source]
_compute_scale(octave, step_number)[source]
fold_step_number(number, octave=False)[source]
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.

is_last_step_number(number)[source]
is_valid_step_number(number)[source]
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

__int__()[source]
__lt__(other)[source]
translate(language)[source]
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.

__getitem__(step_number)[source]
__iter__()[source]
by_degree(degree)[source]
by_name(name)[source]
by_step_number(step_number)[source]
fold_natural_step_number(number, octave=False)[source]
is_natural_step_number(number)[source]
is_valid_step_name(name)[source]
iter_on_naturals()[source]
name_to_number(name)[source]
translator(*args, **kwargs)[source]
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