pitchtypes.logfreq.LogFreqInterval
- class pitchtypes.logfreq.LogFreqInterval(value, is_ratio=False, **kwargs)
Bases:
LogFreq
- __init__(value, is_ratio=False, **kwargs)
Initialise from frequency or log-frequency value. :type value: :param value: frequency or log-frequency (default) value :param is_log: whether value is frequency or log-frequency
Methods
__init__
(value[, is_ratio])Initialise from frequency or log-frequency value.
convert_to
(other_type)create_subtypes
()link_interval_class_type
([skip_name_check, ...])A decorator to link an interval class type to its base type.
link_interval_type
([skip_name_check, ...])A decorator to link an interval type to its base type.
link_pitch_class_type
([skip_name_check, ...])A decorator to link a pitch class type to its base type.
link_pitch_type
([skip_name_check, ...])A decorator to link a pitch type to its base type.
name_check
(cls, sub_type, suffix, ...)Check if
sub_type
follows the standard naming convention.print_precision
([precision])ratio
()set_func_attr
(sub_type, flags, names, funcs)Add functions
funcs
as methods withnames
to classsub_type
, controlled byflags
.to_class
()- Interval
alias of
LogFreqInterval
- IntervalClass
alias of
LogFreqIntervalClass
- Pitch
alias of
LogFreqPitch
- PitchClass
alias of
LogFreqPitchClass
- __eq__(other)
Return self==value.
- __hash__()
Return hash(self).
- __repr__()
Return repr(self).
- __setattr__(key, value)
Implement setattr(self, name, value).
- __weakref__
list of weak references to the object (if defined)