#!/usr/bin/python2.7 import sys sys.path.append('./lib') from renderer.midi.stream import Stream as MidiStream from renderer.midi.file_ import File as MidiFile from renderer.audio.simplesynth import SimpleSynth from tuning.midi import Midi as TuningMidi file2 = MidiFile() file2.load_events(from_file="../Think_of_Rain.midi"); stream2 = file2.stream events2 = stream2.make_event_stream(); synth2 = SimpleSynth(filename="just_intonation", wavetype="sine") synth2.midi_stream_process(events2, tuning=TuningMidi(tuning="just_intonation", tonic_midi_note=77))
#!/usr/bin/python2 import sys sys.path.append('./lib') from renderer.midi.file_ import File as MidiFile from renderer.midi.filecollection import FileCollection as MidiFileCollection midifile = MidiFile(); midifile.load_events(from_file="./rendered/1439631385.midi") midifile_collection = MidiFileCollection(); midifile_collection.split_by_channel(midifile); #print midifile.events print midifile.midifile_out() print midifile_collection.midifiles_out()