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
726
votes
26 answers

Using a piano keyboard as a computer keyboard

I have RSI problems and have tried 30 different computer keyboards which all caused me pain. Playing piano does not cause me pain. I have played piano for around 20 years without any pain issues. I would like to know if there is a way to capture…
Alex Gordon
  • 57,446
  • 287
  • 670
  • 1,062
54
votes
4 answers

Midi Timing Issues with Delphi ASIO VST and MiniHost

I'm coming from a background of using MSC* MidiSequencer for a Delphi XE2 project and have been playing with DelphiASIOVST this weekend on the off chance the MIDI may be stable enough to use as my core MIDI engine while also allowing me to support…
Charles R. Thompson
  • 683
  • 1
  • 6
  • 10
34
votes
1 answer

Reading MIDI files in Java

I'm trying to read in .MID files to a Java program, and would like to separate each note/chord so as to display them on a UI of some sort. I didn't have much luck using the Sequencer API in Java, and trying to use MidiFileReader directly didn't work…
Hassan Khan
  • 766
  • 3
  • 9
  • 21
33
votes
0 answers

Android: Loading Custom Midi Instruments DLS files into Sonivox EAS

I'm creating an Android midi application using the popular billthefarmer driver package. With the help of Markus Kauppinen in this thread I was able to make my app generate and control midi events (note on, pause, etc) successfully. As some of you…
Cody
  • 1,801
  • 3
  • 28
  • 53
31
votes
6 answers

play MIDI files in python?

I'm looking for a method to play midi files in python. It seems python does not support MIDI in its standard library. After I searched, I found some python midi librarys such as pythonmidi. However, most of them can only create and read MIDI file…
YeJiabin
  • 1,038
  • 1
  • 9
  • 17
31
votes
3 answers

C/C++ library for reading MIDI signals from a USB MIDI device

I want to write C/C++ programs that take input from a MIDI device. The MIDI device connects to my PC using a USB connector. I'm looking for a (C/C++ implemented) library that I can use to read the MIDI signals from the MIDI device through the USB…
David
  • 14,047
  • 24
  • 80
  • 101
28
votes
7 answers

Simple, Cross Platform MIDI Library for Python

I want to do build a small app that creates MIDI sounds. I've never dealt with sound in programming so I'd like to start with something that's basic and has good documentation. I want to stick with Python since I'm the most comfortable with it and…
Cristian
  • 42,563
  • 25
  • 88
  • 99
24
votes
3 answers

Controlling Excel via Midi controller

I've got one of these (source: netdna-cdn.com) and wanted to use the sliders on it to control Excel, just like one of the Excel form control scroll bars. I've managed to modify this code for VBA, but it is extremely unstable. Can anyone help me…
user1938620
  • 341
  • 2
  • 5
23
votes
2 answers

MIDI music support in HTML5

Now playing midi in html is supported with javascript and windows media player/quicktime browser plugins. I'm wondering if there are any news about html5 is going to support playing midi with audio tag in the future ?
Finn
  • 233
  • 1
  • 2
  • 8
22
votes
2 answers

Synthesize musical notes (with piano sounds) in Python

I would like to have a python implementation of a musical instrument library (for instance, a piano object) that I can use to convert a list of notes and a duration into sound. For instance, something like: import Piano pn = Piano() pn.play([note,…
Pat B
  • 564
  • 1
  • 5
  • 15
22
votes
3 answers

Android 6.0 (Marshmallow): How to play midi notes?

I'm creating an app that generates live instrument sounds and I'm planning on using the new Midi API featured in Android Marshmallow (version 6.0). I've read the package overview document here…
Cody
  • 1,801
  • 3
  • 28
  • 53
22
votes
3 answers

What is the structure of a MIDI file?

I want to manually have a function that creates a MIDI file according to users demands, for example. User write 2 patches that contain 8 bars of 4 quarters of A4 (Concert A - 440hz) and C4 (each as a seperated channel) on 120 speed, at velocity 100,…
Shimmy Weitzhandler
  • 101,809
  • 122
  • 424
  • 632
21
votes
2 answers

Converting MIDI ticks to actual playback seconds

I want to know how to convert MIDI ticks to actual playback seconds. For example, if the MIDI PPQ (Pulses per quarter note) is 1120, how would I convert it into real world playback seconds?
Taha
  • 301
  • 1
  • 3
  • 11
20
votes
11 answers

Best way to play MIDI sounds using C#

I'm trying to rebuild an old metronome application that was originally written using MFC in C++ to be written in .NET using C#. One of the issues I'm running into is playing the midi files that are used to represent the metronome "clicks". I've…
jerhinesmith
  • 15,214
  • 17
  • 62
  • 89
20
votes
4 answers

Convert Midi Note Numbers To Name and Octave

Does anybody know of anything that exists in the Java world to map midi note numbers to specific note names and octave numbers. For example, see the reference table: http://www.harmony-central.com/MIDI/Doc/table2.html I want to map a midi note…
Jonathan Holloway
  • 62,090
  • 32
  • 125
  • 150
1
2 3
99 100