pitchscapes.reader.Event
- class pitchscapes.reader.Event(time, duration, data)
Bases:
tuple
Public Data Attributes:
Alias for field number 0
Alias for field number 1
Alias for field number 2
Public Methods:
__new__
(_cls, time, duration, data)Create new instance of Event(time, duration, data)
__repr__
()Return a nicely formatted representation string
Return self as a plain tuple.
Inherited from
tuple
__repr__
()Return repr(self).
__hash__
()Return hash(self).
__getattribute__
(name, /)Return getattr(self, name).
__lt__
(value, /)Return self<value.
__le__
(value, /)Return self<=value.
__eq__
(value, /)Return self==value.
__ne__
(value, /)Return self!=value.
__gt__
(value, /)Return self>value.
__ge__
(value, /)Return self>=value.
__iter__
()Implement iter(self).
__len__
()Return len(self).
__getitem__
(key, /)Return self[key].
__add__
(value, /)Return self+value.
__mul__
(value, /)Return self*value.
__rmul__
(value, /)Return value*self.
__contains__
(key, /)Return key in self.
__getnewargs__
()index
(value[, start, stop])Return first index of value.
count
(value, /)Return number of occurrences of value.
__class_getitem__
See PEP 585
Private Data Attributes:
Private Methods:
_make
(iterable)Make a new Event object from a sequence or iterable
_replace
(**kwds)Return a new Event object replacing specified fields with new values
_asdict
()Return a new dict which maps field names to their values.
- __add__(value, /)
Return self+value.
- __annotations__ = {}
- __class_getitem__()
See PEP 585
- __contains__(key, /)
Return key in self.
- __eq__(value, /)
Return self==value.
- __ge__(value, /)
Return self>=value.
- __getattribute__(name, /)
Return getattr(self, name).
- __getitem__(key, /)
Return self[key].
- __getnewargs__()
Return self as a plain tuple. Used by copy and pickle.
- __gt__(value, /)
Return self>value.
- __hash__()
Return hash(self).
- __iter__()
Implement iter(self).
- __le__(value, /)
Return self<=value.
- __len__()
Return len(self).
- __lt__(value, /)
Return self<value.
- __match_args__ = ('time', 'duration', 'data')
- __module__ = 'pitchscapes.reader'
- __mul__(value, /)
Return self*value.
- __ne__(value, /)
Return self!=value.
- static __new__(_cls, time, duration, data)
Create new instance of Event(time, duration, data)
- __repr__()
Return a nicely formatted representation string
- __rmul__(value, /)
Return value*self.
- __slots__ = ()
- _asdict()
Return a new dict which maps field names to their values.
- _field_defaults = {}
- _fields = ('time', 'duration', 'data')
- classmethod _make(iterable)
Make a new Event object from a sequence or iterable
- _replace(**kwds)
Return a new Event object replacing specified fields with new values
- count(value, /)
Return number of occurrences of value.
- data
Alias for field number 2
- duration
Alias for field number 1
- index(value, start=0, stop=9223372036854775807, /)
Return first index of value.
Raises ValueError if the value is not present.
- time
Alias for field number 0