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

How do you retain uniqueness of virtual MIDI source from MIDISourceCreate()?

I'm working on a little hack sending MIDI messages from an app using RtMidi as a wrapper for CoreMIDI on OS X. I use RtMidiOut::openVirtualPort("MyAwesomePort") so I can select my app as an input source in a DAW. However, if my program closes and I…
michael.bartnett
  • 787
  • 7
  • 20
6
votes
3 answers

How do I play .MDS (MIDI Stream) music files?

Several games from which I extracted some data use MIDI for the in-game music. However, this music is stored in an .MDS file which doesn't seem to have similarities to .MID or other MIDI formats. The header says "RIFF" and "MIDSfmt". I searched the…
Ray
  • 7,940
  • 7
  • 58
  • 90
6
votes
1 answer

VST instrument multiple in and out

I want to create a VST instrument that has 16 MIDI inputs and at least 16 audio outputs. Similar to how kontakt or halion do this. Any ideas?
6
votes
1 answer

Clearing MIDI output buffer

Using the Web MIDI API, I can send some messages: // Note on output.send([0x90, 0x20, 0x50]); I can also schedule some messages to be well-timed and sent in the future: // Note off, 1 second later output.send([0x80, 0x20, 0x40], performance.now() +…
Brad
  • 159,648
  • 54
  • 349
  • 530
6
votes
1 answer

realtime midi input and synchronisation with audio

I have built a standalone app version of a project that until now was just a VST/audiounit. I am providing audio support via rtaudio. I would like to add MIDI support using rtmidi but it's not clear to me how to synchronise the audio and MIDI…
olilarkin
  • 460
  • 6
  • 17
6
votes
1 answer

Virtual synthesizer in Android (based on jar) - native jni?

I am trying to load & use virtual (soft) synthesizer of java in Android. I read Gervill jar is to be used for this. Other building block is javax-sound present in my project as an aar file (as is it not present in trimmed Java package of…
6
votes
1 answer

How to play MIDI with AudioKit's new AKSequencer

I'm on AudioKit 4.9.1 and can't manage to play a MIDI file with the new AKSequencer (replacing AKAppleSequencer). No sound playing. Assume that MIDI file AND samples are loaded correctly since they previously worked with AKAppleSequencer. Background…
Frankie Simon
  • 721
  • 1
  • 7
  • 14
6
votes
5 answers

SDL_Mixer MIDI Volume issues on Windows Vista/7

I'm not actually well versed in C++ or SDL_Mixer, but I'm asking this question anyway on behalf on the Doom community. Put simply, nobody writing Doom source ports can seem to figure out how to control normal sound volume and MIDI sound volume…
AlexMax
  • 1,204
  • 14
  • 36
6
votes
1 answer

Programming a music sequencer

I would like to build an audio multitrack sequencer similar to a drum machine. What do you think is the best way to implement this? At the moment I have 2 tracks represented by 2 arrays: 2 x [tick, samplePointer]. I merge these 2 tracks in a main…
Brice
  • 535
  • 6
  • 11
6
votes
1 answer

How to convert midi timeline into the actual timeline that should be played

I have researched the subject for some time now and still haven't figure it out. I use midas3 library (Midi-actionscript3) to import midi to flash. I get each note-item on a timeline. I get the divisions value (192) and all of the "GET-TEMPO"…
alon
  • 61
  • 1
  • 2
6
votes
2 answers

How to add "Arabian" or "Microtone" or "Quarter-tone" support to jMusic?

I have been working lately on a program that transcribes WAV files having a single and monophonic instrument, more likely this instrument is Vocal. This program converts the given WAV file into Sheet Music or "SCORE". The thing is: I want to draw…
Xtremeaiy
  • 149
  • 1
  • 2
6
votes
1 answer

How to load custom DLS or SoundFonts to Android MIDI

I have an application that plays MIDI files through the SONiVOX EAS library. Is it possible to load my own DLS or SoundFont wavetables into the player and have the library use these sounds for MIDI playback?
Eli Konky
  • 2,697
  • 1
  • 20
  • 17
6
votes
2 answers

Cross Platform MIDI library supporting iOS CoreMIDI

I'm looking for a cross-platform C or C++ MIDI library. Just to send/receive MIDI note events, control codes and timing, not to generate sound. The main target is iOS/iPad so it has to support CoreMIDI on iOS, which I know is fairly recent. I can…
joeld
  • 31,046
  • 3
  • 27
  • 22
6
votes
2 answers

MIDI Output in Unity

I'm trying to build simple software to connect to a MIDI Output device on Windows in Unity and send MIDI data. As to avoid re-inventing the wheel, I started with the use of the C# Midi Toolkit on CodeProject built with support for .NET 2.0. The…
Naxin
  • 376
  • 2
  • 18
6
votes
3 answers

MIDIPacketList, numPackets is always 1

I'm processing Midi on the iPad and everything is working fine and I can log everything that comes in and all works as expected. However, in trying to recieve long messages (ie Sysex), I can only get one packet with a maximum of 256 bytes and…
Domestic Cat
  • 1,434
  • 11
  • 18