1

I'm trying to play back a midi file, but the playback doesn't have any sharps or flats. How can I fix this?

I added the key signature to the midi block and the staves, but there was no difference. Is there no way to play back accidentals?

7
  • 5
    Please give some example of what you are doing. Are you perhaps just adding a key signature, but not entering the notes with alteration? E.g. \key c\minor e instead of \key c\minor ees?
    – Lazy
    Commented Sep 19 at 22:20
  • I'm entering \key cis \minor in the midi { } block, upon compiling, the audio playback doesn't play with any sharps.
    – t_t
    Commented Sep 19 at 22:48
  • 3
    I think a minimal reproducible example is in order here. See stackoverflow.com/help/minimal-reproducible-example
    – phoog
    Commented Sep 19 at 23:59
  • 3
    @t_t But \key should not matter for the midi block. It is only relevant for visuals, which is why I’m asking for some example code. So are you entering say { c d e f g } or {cis dis e fis gis}? The latter one would be correct.
    – Lazy
    Commented Sep 21 at 20:12
  • 1
    We need a minimal example. \key is aesthetitcs only and there's very little point in putting it into the \midi block -- it simply doesn't do anything w.r.t. what the midi will play. The pitch of the notes doesn't care about the key signature!
    – yo'
    Commented Sep 27 at 11:08

0

Browse other questions tagged or ask your own question.