pitchtypes.logfreq.LogFreq
- class pitchtypes.logfreq.LogFreq(value, is_pitch, is_class, is_log=True, **kwargs)
Bases:
AbstractBase
Represents a pitches and intervals in continuous frequency space with the frequency value stored in log representation.
- __init__(value, is_pitch, is_class, is_log=True, **kwargs)
Initialise from frequency or log-frequency value. :type value: :param value: frequency or log-frequency (default) value :type is_log: :param is_log: whether value is frequency or log-frequency
Methods
__init__
(value, is_pitch, is_class[, is_log])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])set_func_attr
(sub_type, flags, names, funcs)Add functions
funcs
as methods withnames
to classsub_type
, controlled byflags
.- 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)