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:

1972 questions
11
votes
9 answers

Software to convert audio to MIDI

Does any one know if there is good software to perform conversion from (wave or mp3 or other known format) to MIDI? I understand that conversion from audio file to MIDI is a very complex process. I'm currently developing a course project for my…
aumanets
  • 3,703
  • 8
  • 39
  • 59
11
votes
5 answers

Does the html5 audio tag encompass .mid (MIDI) unofficially?

It seems clear that officially the html5 audio tag is intended for use with the ogg format. Does the html5 audio tag encompass .mid (MIDI) unofficially?
hawkeye
  • 34,745
  • 30
  • 150
  • 304
11
votes
5 answers

How to play a midi file in html

how can I play a midi file in my html/php page Right now I surf the net and got lots of simple embed code like the one I given below But my firefox says to install plugin…
Rahul TS
  • 1,208
  • 7
  • 26
  • 53
11
votes
6 answers

Why Does MIDI Offer 127 Notes

Is the 127 note values in MIDI musically significant (certain number of octaves or something)? or was it set at 127 due to the binary file format, IE for the purposes of computing?
Matt
  • 1,996
  • 5
  • 18
  • 24
11
votes
4 answers

Simple embeddable MidiSynth for iOS?

I have a guitar diagram app for Android that I am porting to iOS. Android has a embedded midi synthesizer (sonivox), so I can generate midi files and let Android handle the playback. Is there a way to do this on iOS? Or are there very lightweight…
Peterdk
  • 15,625
  • 20
  • 101
  • 140
11
votes
6 answers

Getting signals from a MIDI port in C#

I bought a MIDI keyboard for my birthday. I found a program (MidiPiano) that gets signals from the MIDI input and translates it into music, but I'd rather like to write one myself. Where can I find documentation for doing such a task? The MIDI…
gideonrv
  • 167
  • 1
  • 2
  • 8
11
votes
4 answers

Playing note with pygame.midi

I'm trying to play a sound with the pygame.midi module. Here is the code I use : #!/usr/bin/env python import pygame.midi import time pygame.midi.init() print pygame.midi.get_default_output_id() print pygame.midi.get_device_info(0) player =…
cym13
  • 111
  • 1
  • 1
  • 4
10
votes
4 answers

Precision timing in .NET

I've just seen this question, where one of the answers indicates that System.Diagnostics.Stopwatch should only be used for diagnosing performance and not in production code. In that case, what would be the best way to get precision timing in .NET?…
geofftnz
  • 9,954
  • 2
  • 42
  • 50
10
votes
5 answers

Reading Midi files on IOS

I'm looking for some information on how to play a midi file on IOS. I dont need any midi in or out messages. I simply would like to read the midi file and play the track back to the user substituting each note for a piano sound sample. Being able to…
user346443
  • 4,672
  • 15
  • 57
  • 80
10
votes
8 answers

Interfacing a midi keyboard or other real-time midi input with javascript?

I want to create a simple visualization tool that would allow to represent my playing a midi keyboard on the screen. I play a relatively novel instrument type, called the harmonic…
Jon Biz
  • 1,003
  • 2
  • 8
  • 23
10
votes
4 answers

Python: midi to audio stream

I need convert/synthesize MIDI data to audio stream PCM data. What would be an easy way to do so?
Albert
  • 65,406
  • 61
  • 242
  • 386
10
votes
4 answers

Simple Java MIDI example not producing any sound

This simple code is not producing any sound on a couple of machines that I've used to test it. I'm running the code from within Eclipse, but I've also tried using the command line to no avail. public static void main(String[] args) { try { …
David Koelle
  • 20,726
  • 23
  • 93
  • 130
10
votes
3 answers

Get note data from MIDI file

Is there a way to get the note data from a MIDI file? That is, I want to break down the MIDI file into its constituent parts so they are in the form of a unique word (or any other data type). What I want to do in the end is take in a MIDI file and…
Bill
  • 141
  • 1
  • 2
  • 4
10
votes
3 answers

How to save output in music21 as a MIDI file?

How do I save audio output in Python using the music21 module? I have read the entire [user's guide](http://music21.readthedocs.org/en/latest/usersGuide/index.html] of said module, but I couldn't find any information about saving output as an audio…
Err403
  • 123
  • 3
  • 10
10
votes
3 answers

Dynamic Midi generation and playback on Android: Possible?

Strangely I find no support for Midi in Android. The only thing that comes close is the Jetplayer, but this only takes a existing .jet file. I want to dynamically generate a midi file with some intervals and play it. I even thought about just…
Peterdk
  • 15,625
  • 20
  • 101
  • 140