You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After reading #14 I'm trying to write down isolated 16th notes in two bars of 6/8 time signature (I want to write down a simple drum rhythm). My understanding is that given the time and duration=0.25 of the notes (quarter of quarter note), the bar will be filled with 16th notes at the time onsets and rests to match the time signature.
However this is not what I see after conversion into a score musescore simple.mid -o simple.png: there are instead notes of different durations than 16th, some dotted, with staccato symbols. The resulting score is not "you play what you see". I've experimented with different time signatures like 12/16 without improvements. Is this due a general specifics of the musical score notation, or can this somehow be "fixed" by some MIDIUtil settings or a different midi to musical score conversion program?
from midiutil.MidiFile import MIDIFile
mf = MIDIFile(1)
track = 0
time = 0.0
mf.addTrackName(track, time, "6/8")
mf.addTempo(track, time, 120)
mf.addTimeSignature(track, time, 6, 3, 24)
channel = 0
volume = 100
pitch = 60
duration = 0.25
time = 0.0
mf.addNote(track, channel, pitch, time, duration, volume)
time = 0.5
mf.addNote(track, channel, pitch, time, duration, volume)
time = 0.75
mf.addNote(track, channel, pitch, time, duration, volume)
time = 3.0
mf.addNote(track, channel, pitch, time, duration, volume)
with open("simple.mid", 'wb') as outf:
mf.writeFile(outf)
The text was updated successfully, but these errors were encountered:
This is a question, not a MIDIUtil issue.
After reading #14 I'm trying to write down isolated 16th notes in two bars of 6/8 time signature (I want to write down a simple drum rhythm). My understanding is that given the time and duration=0.25 of the notes (quarter of quarter note), the bar will be filled with 16th notes at the time onsets and rests to match the time signature.
However this is not what I see after conversion into a score
musescore simple.mid -o simple.png
: there are instead notes of different durations than 16th, some dotted, with staccato symbols. The resulting score is not "you play what you see". I've experimented with different time signatures like 12/16 without improvements. Is this due a general specifics of the musical score notation, or can this somehow be "fixed" by some MIDIUtil settings or a different midi to musical score conversion program?The text was updated successfully, but these errors were encountered: