def test_export_pattern(): import pygmidi g = pygmidi.Pygmidi("Viva_La_Vida.midi") g.to("pattern") new_midi_path = "new_midi_file.midi" g.to(new_midi_path) assert os.path.exists(new_midi_path) os.remove(new_midi_path)
def test_manipulate_multitrack(): import pygmidi g = pygmidi.Pygmidi("Viva_La_Vida.midi") g.to("multitrack") g.trim(0, 12 * g.resolution) g.binarize() g.plot() g.blend() g.count_downbeat() g.resolution g.tempo g.downbeat g.tracks
def test_import_pattern(): import pygmidi g = pygmidi.Pygmidi("Viva_La_Vida.midi") g.to("pattern")
def test_import_midiarray(): import pygmidi g = pygmidi.Pygmidi("Viva_La_Vida.midi") g.to("midiarray")
def test_import_multitrack(): import pygmidi g = pygmidi.Pygmidi("Viva_La_Vida.midi") g.to("multitrack")
def test_import_prettymidi(): import pygmidi g = pygmidi.Pygmidi("Viva_La_Vida.midi") g.to("prettymidi")