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
7
votes
0 answers

Creating MIDI files on the fly using Audiokit

I'm currently using the following method to play stems in a song: Load stem_01.mp3 into AKAudioFile Add AKAudioFile to AKMIDISampler Add AKMIDISampler to AKMixer repeat 1-3 for number of stems Create AKSequencer using custom MIDI file: This MIDI…
Mr_P
  • 523
  • 2
  • 16
7
votes
1 answer

retrieving detailed usb midi device information on windows xp

The function midiOutGetDevCaps returns a structure MIDIOUTCAPS. I'd need more specific information when querying a usb midi device on windows xp, in particular I'd need the information displayed under "Location" when opening the respective device…
bwagner
  • 71
  • 3
7
votes
2 answers

iOS how to play midi notes?

I have searched and already have done an OS X app that can play MIDI notes, but when i tried in iOS, nothing happened. Here is the core code: AUGraph graph; AudioUnit synthUnit; AUNode synthNode,…
Smeegol
  • 2,014
  • 4
  • 29
  • 44
7
votes
6 answers

What is the best API in any language for Audio and MIDI music application development?

What is the best API to utilize in developing an application that handles both realtime MIDI and audio input and output? This would be for an application that is used in the process of making music as opposed to playing audio or MIDI files. I'm…
aoeu
  • 1,128
  • 2
  • 13
  • 22
7
votes
1 answer

CoreMIDI Callbacks in Swift

I am using the following code to receive MIDI events in a Swift Playground: import Cocoa import CoreMIDI import XCPlayground XCPSetExecutionShouldContinueIndefinitely(continueIndefinitely: true) func…
Tobias
  • 853
  • 8
  • 26
7
votes
3 answers

Playing midi on Pygame

Ok, this is what I got: import pygame import sys from pygame.locals import * bif="bg.jpg" mif="pkmn.png" sif="bubble.png" song_1="testaudio.mid" pygame.init() FPS = 30 # FPS FPSCLOCK = pygame.time.Clock() # FPS screen =…
Bob Lozano
  • 838
  • 2
  • 13
  • 38
7
votes
2 answers

Manipulating MIDI Files in Python

I'm looking for a way to change individual notes in a pre-existing MIDI file in Python. I've found a lot of packages that allow for the writing of MIDI files, but not altering existing ones. Is there a package that could help with this or a a way of…
Arger
  • 171
  • 1
  • 9
7
votes
1 answer

MidiSystem.getSequencer() very slow

I am creating a MIDI sequencer and to initialize the sequencer as far as I know, I need to use: Sequencer sequencer = MidiSystem.getSequencer(); But this causes my program to start very, very slow up to 2 mins for this one method call! Any ideas…
user1724416
  • 914
  • 2
  • 11
  • 24
7
votes
3 answers

Is there a new Midi API for Windows Vista/7/8?

I know the midiXxx API, but I saw it is currently listed under 'legacy' in msdn. http://msdn.microsoft.com/en-us/library/windows/desktop/dd743619(v=vs.85).aspx Is there some other API i should use to target the newer Windows versions? Will the old…
obiwanjacobi
  • 2,413
  • 17
  • 27
6
votes
1 answer

Improving MIDI Synthesizer Sound on Android / Loading Sound Fonts

I recently started to build an Android App that will make heavy use of MIDI sounds. Problem: The standard Android MIDI sound is just horrible. On Windows and Linux, I vastly improved the sound by applying a soundfont (.sf2) - that doesn't seem to be…
Luno
  • 61
  • 2
6
votes
1 answer

Accessing a MidiDevice in Java

I'm currently trying to connect my piano's midiport to my computer. I've read everything I could find about that, but somehow I'm missing something, so I hope someone here can help me. I'm trying to do this for a week now and its getting realy…
user1240362
  • 131
  • 1
  • 6
6
votes
0 answers

How to create a Java Soundbank programmatically

I want to create a small soundbank programmatically with my own samples and play them through the standard Sun JDK Midi Synthesizer. A already read they are in Beatnik format, but I can't find the spec. In addition, I don't really need the soundbank…
Daniel
  • 27,718
  • 20
  • 89
  • 133
6
votes
2 answers

java midi latency

I´m trying to make a java application that is able to play notes on the computer after detecting a midi device. Once I get the desired midi device I´m seting the receiver to which the device´s transmitter will deliver MIDI messages. …
Camilo Barraza
  • 195
  • 1
  • 9
6
votes
2 answers

Using Fluidsynth to play notes from SoundFonts on Android

Is there a way to allow android to play sounds using SoundFont files via using FluidSynth? I've been looking at jOrgan but the source code seems to be kind of... overwhelming to say the least. Problem is that java sound API is not supported in…
6
votes
3 answers

Reading lyrics information from a .kar file

I need to only read lyrics from a .kar file. The problem is that there is a lack of documentation about this in the MIDI standard and .kar documentation. I tried to open the file with a hexadecimal editor but I didn't understand a lot of things. So…
stighy
  • 7,260
  • 25
  • 97
  • 157