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
5
votes
1 answer

Playing midi files with MusicPlayer & Music Sequence

I've successfully gotten iOS to play a .mid (midi) file with a soundfont sample using the following code: -(void) playMusic:(NSString*) name { NSString *presetURLPath = [[NSBundle mainBundle] pathForResource:@"GortsMiniPianoJ1" ofType:@"SF2"]; …
ilikejames
  • 121
  • 1
  • 8
5
votes
4 answers

Bi-directional sniffing/snooping on an ALSA MIDI SysEx exchange

Does anyone know of a good way to get a bi-directional dump of MIDI SysEx data on Linux? (between a Yamaha PSR-E413 MIDI keyboard and a copy of the Yamaha MusicSoft Downloader running in Wine) I'd like to reverse-engineer the protocol used to copy…
ssokolow
  • 14,938
  • 7
  • 52
  • 57
4
votes
2 answers

Writing Midi Files in Java

I have a project where I want to write midi files. Nothing too complicated as far as the notes go -- no pitch bends, no key signature, set tempo etc. Using just standard a,b,c notes. For example, I want to write 3 notes a,b,c as 16th notes. This may…
james
  • 2,595
  • 9
  • 43
  • 70
4
votes
1 answer

C# XNA generate MIDI

I wish to play MIDI like notes from the C# XNA program. I don't actually need to construct a MIDI file, just have the ability to start and stop notes or play them for a given time. play("flute", "D4", "start"); play("flute", "D4",…
alan2here
  • 3,223
  • 6
  • 37
  • 62
4
votes
2 answers

Porting a win32 MIDI SysEx application to MacOSX

What is the easiest way to port a win32 MIDI SysEx application (a configuration program), to MacOSX ? The application itself is written in Qt, but I have no experience in OSX MIDI APIs. Are there good enough drop-in replacements for calls…
qdot
  • 6,195
  • 5
  • 44
  • 95
4
votes
1 answer

java sequencer playlist

I currently have a very simple class: public class Music { private Sequence sequence; private Sequencer sequencer; public Music(String music) { try { this.sequence =…
Bv202
  • 3,924
  • 13
  • 46
  • 80
4
votes
1 answer

How to interface Java midi to other applications

Hi I am programming Java on Windows and am very new to working with MIDI interfaces. I have managed to get java to play midi sounds through Synthesizer objects, natively through the computers speaker however I wish to send midi messages on the fly…
Skip Adam
  • 43
  • 3
4
votes
6 answers

Making my own application for my USB MIDI device

I want to try and make my own application for my Novation Nocturn, which is a USB DJ controller surface. The application software interacts with it to send out MIDI messages to software like Traktor, Ableton and Cubase. I'm aware of libusb, but…
Harry
  • 2,429
  • 4
  • 21
  • 26
4
votes
2 answers

How to control the MIDI channel's volume

I have this code: Synthesizer synthesizer = MidiSystem.getSynthesizer(); synthesizer.open(); Instrument[] instrument = synthesizer.getDefaultSoundbank().getInstruments(); synthesizer.loadInstrument(instrument[29]); MidiChannel[] channels =…
victorio
  • 6,224
  • 24
  • 77
  • 113
4
votes
2 answers

How can I connect Mac OSX MIDI with node.js?

I tried this, but no dice. I want to be able to receive MIDI messages in a node.js server, nothing more, nothing less. Does anyone have an easy(ish) way to do this?
Raphie
  • 153
  • 1
  • 5
4
votes
2 answers

Why java midi synth on mac stop playing notes

I am trying to make a simple app that read from a midi port (hardware) and forward events to the software synth. It mostly work except that the soft synth stop playing from time to time. I can see midi messages being forwarded in the logs, I can…
Manuel Darveau
  • 4,585
  • 5
  • 26
  • 36
4
votes
3 answers

How can I generate musical notes on iOS and play them?

I am creating a musical app which generate some music. I already used MIDI functions on Mac to create a MIDI file with MIDI events (unfortunately, I don't remember names of those functions). I am looking for a way to create instrumental notes…
Aladin
  • 115
  • 2
  • 10
4
votes
1 answer

How to convert music file in ABC notation to midi or mp3 in Python

I have abc notation file and I want to convert it to midi or mp3 format. I did find music21 (docs) library to that says it can convert abc to midi but I could not figure out how. I also found a website mandolintab that can convert the file below to…
stha
  • 41
  • 1
  • 3
4
votes
4 answers

Korg Nanokey MIDI Controller for Arduino?

I have a Korg NanoKey which I'd like to use to control a simple synthesizer I've designed on the Arduino platform. (I have an Arduino Uno.) Basically, I don't care about MIDI, I just want to read what note the keyboard has pressed down, but if MIDI…
Nels Beckman
  • 20,508
  • 3
  • 24
  • 28
4
votes
1 answer

Create a Virtual MIDI device (Windows, c++)

I am trying to create a virtual MIDI device, so my app can generate midi events and another third party app can pick up these events and act based on them. Most answers (quite old ones) I’ve searched on SO suggest using third party kernel drivers…
O.W.Grant
  • 163
  • 11