pitchscapes.scapes.PitchScape

class pitchscapes.scapes.PitchScape(values=None, scape=None, prior_counts=0, normalise=False, **kwargs)[source]

Bases: Scape

Public Methods:

__init__([values, scape, prior_counts, ...])

__getitem__(item)

Return value of the scape at position :type item: :param item: (start, end) with start < end :return: value of the scape for the time window (start, end)

Inherited from Scape

__init__(min_time, max_time)

__getitem__(item)

Return value of the scape at position :type item: :param item: (start, end) with start < end :return: value of the scape for the time window (start, end)

assert_valid_time_window(start, end)


__annotations__ = {}
__dict__ = mappingproxy({'__module__': 'pitchscapes.scapes', '__init__': <function PitchScape.__init__>, '__getitem__': <function PitchScape.__getitem__>, '__doc__': None, '__annotations__': {}})
__getitem__(item)[source]

Return value of the scape at position :type item: :param item: (start, end) with start < end :return: value of the scape for the time window (start, end)

__init__(values=None, scape=None, prior_counts=0, normalise=False, **kwargs)[source]
Parameters:
  • min_time – minimum time

  • max_time – maximum time

__module__ = 'pitchscapes.scapes'
__weakref__

list of weak references to the object (if defined)

assert_valid_time_window(start, end)