Questions tagged [midi]

MIDI (Musical Instrument Digital Interface) is a protocol used to allow music hardware, software and other equipment to communicate with each other.

MIDI is a widely-used protocol which can transmit note, controller, program, timing and vendor/hardware musical instrument specific (so called system exclusive/SysEx) information. The MIDI protocol can be used to allow your software to communicate with other MIDI-compatible software or hardware.

Some useful resources on the MIDI protocol:

507 questions
12
votes
4 answers

Why is MIDI gain based on a factor of 40?

Many documents state that the MIDI standard gain is 40 * log10(CC7/127). I've found only one person asking why, with no replies. This document says that voltage (amplitude) gain is a factor of 20, not 40. So why a factor of 40? What is the theory…
Anonymous
  • 365
  • 2
  • 12
10
votes
2 answers

Difference between MIDI tracks and channels

I am confused about midi channels and tracks. What is exactly the difference, and what is the use of a track at all? I can send my midi messages to the channels with the first 4 bits of a status byte, so why would I need a track?
Student
  • 419
  • 2
  • 12
10
votes
1 answer

What is the difference between [144,*,0] and [128,*,64] to end a midi note?

I've noticed that sometimes Logic or my midi devices send [144,*,0] (where * is the note) when a note is complete, and other times sends [128,*,64]. What's the difference?
jlarson
  • 341
  • 1
  • 9
9
votes
1 answer

Where am I going wrong in interpreting this MIDI string?

I have been making some basic MIDI files (based on one created by an app) and they are not behaving exactly as I expected. Take the following string: 00 90 36 50 00 39 50 00 3B 50 00 3E 50 9F 7F B0 7B 00 I understand this as follows: 00 90 - at…
Dark Ages
  • 93
  • 3
8
votes
3 answers

Two consecutive midi note-on of the same pitch misbehaving

I am currently writing a haskell program that imitates the play of a human Guitar player and spits out Midi events. As a Guitar I am using a sampled Telecaster on Fluidsynth/Qsynth. To mimick a slide-up I use pitch-bend, but I also wanted to add a…
6
votes
4 answers

Black MIDI: Add 1/256 note in midi file?

I'm working on creating some black MIDI music. Is there any way that I can add a note that is shorter than a 1/128 note in midi? Like 1/256 or 1/1024 (if I am crazy). I have tried rosegarden and musescore but both of them say no. Is there any…
Page David
  • 171
  • 4
5
votes
6 answers

how do I compute midi stop time

I'm trying to write a program to convert music notation to midi How do I choose the stop time for a midi note? Naively I might expect stop_time := start_time + note_duration but for many instruments the note decays far more quickly than the…
ja.
  • 281
  • 1
  • 3
4
votes
2 answers

Any MIDI files specifically representing music theory rules?

I am a computer science student working on my senior project. My project is to train an artificial neural network to generate music. I have a minimal knowledge of music theory (I took a music theory course in high school, and played a couple…
McAllister
  • 43
  • 3
4
votes
1 answer

Understanding MIDI text files fields and form

I am trying to understand the midi text files. I did two conversions using the site midi to txt converter, converting a drums only sample and a full midi song. The site gives you two possible formats, raw and delta. What is the difference between…
thahgr
  • 289
  • 1
  • 3
  • 9
4
votes
3 answers

Understanding MIDI Files

Inverse of this question: Transcribing a Standard MIDI File to sheet music How does one actually make an MIDI file work, as in, what determines the octave and the length of each note? How does the notation form a note correctly? My main software to…
Nefer007
  • 179
  • 1
  • 1
  • 6
4
votes
3 answers

What is a good MIDI voice to approximate vocals?

When using a program like TuxGuitar to write/transcribe songs, what instrument or instruments make a decent approximation of a vocal track for playback on a computer with an embedded soundcard?
4
votes
4 answers

Will recording as MIDI lose the quality of a WAV?

I've played a couple of tunes of my electric piano, and have recorded them as MIDI files. I would like to convert them to a WAV format, but I'm worried for the following reasons: By first recording my music to a MIDI file, does this mean I have…
Insatiable
  • 67
  • 5
4
votes
1 answer

1-byte MIDI messages through USB-MIDI converter

I have a "Fore" USB-MIDI converter and I suspect it is not properly handling the 1-byte MIDI messages that my Windows PC-based sequencer is sending. The codes are 0xf8 (timing code), 0xfa (MIDI start), and 0xfc (MIDI stop). The converter seems to…
4
votes
2 answers

Does the velocity need to be 0 for a note to be played again?

I am working with the V3.0.0 Maestro Dataset. One of the midi files in particular, /2017/MIDI-Unprocessed_043_PIANO043_MID--AUDIO-split_07-06-17_Piano-e_1-03_wav--4.midi had a track that has something like the following 15185 note_on channel=0…
QiLin Xue
  • 143
  • 5
3
votes
3 answers

How to know tonallity of midi song (Am, C, Fm ...)

Is there way to do it with programming? In theory, or may be is there some programming library written in java (perfect variant)?
Boris
  • 31
  • 1
1
2 3 4