Package jazzparser :: Package taggers :: Package segmidi :: Module midi
[hide private]
[frames] | no frames]

Module midi

source code


Author: Mark Granroth-Wilding <mark.granroth-wilding@ed.ac.uk>

Functions [hide private]
 
midi_to_emission_stream(segmidi, metric=True, remove_empty=True, unique_notes=False)
Get a list of emissions from the midi stream's note on events.
source code
Variables [hide private]
  __package__ = None
hash(x)
Function Details [hide private]

midi_to_emission_stream(segmidi, metric=True, remove_empty=True, unique_notes=False)

source code 

Get a list of emissions from the midi stream's note on events.

Returns a 2-tuple of the list of emissions and their corresponding start times in midi ticks.

Parameters:
  • segmidi (jazzparser.data.input.SegmentedMidiInput) - midi input
  • metric (bool) - include a metrical model. Each observation has a metrical value associated with it. If this is False, the value will always be 0
  • remove_empty (bool) - remove any chunks that have no observations in them (default True)