def play_note(instrument, value): if not globdef.config.PLAY_AS_TYPING: return stop() import songwrite2.model as model import songwrite2.midi as midi global noteplayer if not noteplayer: noteplayer = model.Song() noteplayer.partitions.append(model.Partition(noteplayer)) noteplayer.partitions[0].notes.append(model.Note(noteplayer.partitions[0], 0, 48, 0)) noteplayer.partitions[0].instrument = instrument noteplayer.partitions[0].notes[0].value = value play(midi.song_2_midi(noteplayer))
def export_to_string(self, song): return midi.song_2_midi(song, rich_midi_tablature = 1)
def export_to_string(self, song): return midi.song_2_midi(song)