Sequence class

class Sequence

Child class of NoteList, uses same constructor. Is hashable. Contains Note objects, as well as functions to analyze chords. Accepts either a single iterable Notes, or a bunch of Notes. Typically constructed using the inherited functions NoteList.from_ascii() or NoteList.from_midi_list(). While similar to NoteList, Sequence can be used with MIDIEventLoop.

Raises:ValueError – When more than maxlen objects are passed for construction.
maxlen

Default is 16. Maximum length to use when comparing to a deque. Also what is used for the MIDIEventLoop.recent_notes deque max length.