pitchscapes.reader

Functions

chordify(piece)

Create time bins at note events (on- or offset).

get_pitch_scape(file_path, **kwargs)

Load a pitch scape from file.

piano_roll(file[, min_pitch, max_pitch, ...])

pitch_class_counts(file[, reader])

Read pitch-class counts from MIDI file by concatenating read_midi, chordify, and pitch_class_counts :type file: :param file: MIDI file :return: 2-tuple of numpy arrays with pitch-class counts and time boundaries

pitch_class_counts_from_chordified(chordified)

Take a chordified piece and compute pitch class counts for each time slot.

read(file)

read_midi_mido(file)

Read notes with onset and duration from MIDI file.

sample_density(n_time_intervals[, ...])

sample_piece(n_samples[, file_path, scape, ...])

sample_scape(n_time_intervals[, file_path, ...])

Sample points from a scape on a uniform grid.

Classes

Event(time, duration, data)