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

Convert .mid file to any audio format as .wav or .mp3 file in android?

Can anyone help me how to convert .mid files into any audio format as .wav or .mp3 format by programmatically.
sandeep
  • 481
  • 1
  • 6
  • 14
6
votes
3 answers

MIDI on Python / PyGame, Ubuntu 12.04

Trying to get a MIDI interface to work with pygame on Ubuntu 12.04. I know the keyboard works because it can control vkeybd and works with PyGame on OSX, so the issue with with MIDI in python. $ python -m pygame.examples.midi --list Traceback (most…
Rich Jones
  • 1,422
  • 1
  • 15
  • 17
6
votes
2 answers

How do I read a midi file, change its instrument, and write it back?

I want to parse an already existing .mid file, change its instrument, from 'acoustic grand piano' to 'violin' for example, and save it back or as another .mid file. From what I saw in the documentation, the instrument gets altered with a…
John Kornick
  • 301
  • 1
  • 6
  • 14
6
votes
1 answer

Calculate accurate BPM from MIDI clock in ObjC with CoreMIDI

I'm having some trouble calculating an accurate BPM from a receiving MIDI Clock (using Ableton Live in my tests for sending the MIDI clock). I'm using CoreMIDI and PGMidi from Pete Goodliffe. In PGMidi lib there is a method called while MIDI…
Yaniv De Ridder
  • 773
  • 1
  • 7
  • 13
6
votes
2 answers

Java midi volume control won't work

I've been trying to get midi volume control to work in a MidiPlayer class for a very long time now. I've searched for examples for accomplishing this here on stackoverflow and all over the Internet, but nothing I try ever seems to work. The volume…
Cazra
  • 143
  • 10
6
votes
3 answers

C Linux Device Programming - Reading Straight from /Dev

I have been playing with creating sounds using mathematical wave functions in C. The next step in my project is getting user input from a MIDI keyboard controller in order to modulate the waves to different pitches. My first notion was that this…
Kokopelli
  • 371
  • 2
  • 8
5
votes
2 answers

Send midi signal from c# to ableton

I'm trying to send a midi signal from my c# app to a track in Ableton Live. I've tried both the Bass.net and midi-dot-net both with the same effect: No events arriving in Ableton. (I've got loopMidi installed and thats where I send my signals…
AyKarsi
  • 9,435
  • 10
  • 54
  • 92
5
votes
2 answers

Java Midi in Mac OSX Broken?

I'm trying to play midi within a browser, and have been using a Java Applet that works just fine on PCs. Its extremely unreliable on OSX, so I wrote a simple test case that exhibits the same problem: import javax.sound.midi.*; import…
Ben
  • 1,292
  • 9
  • 17
5
votes
4 answers

How to loop a Midi sequence Java

I am fairly new to Java programming, and would like to know how to properly loop a MIDI sequence whilst a game is playing. I have some code and I know that I should use setLoopCount() in order to do it but am unsure how to implement it. Here is the…
Wnt2bsleepin
  • 67
  • 1
  • 7
5
votes
1 answer

MIDI to MP3 automated conversion with randomly generated synths

I have 400,000 MIDIs that I need to automatically convert to MP3s. I know that MIDIs don't define waveforms. I also know that I can import MIDIs into a DAW and map synths to individual tracks so obviously it's possible to do this automatically. I've…
Charlie
  • 55
  • 6
5
votes
6 answers

XG MIDI File Format

I have a Yamaha MIDI guitar, that, when I play a MIDI file encoded using the XG MIDI standard, causes certain lights on the guitar to turn on and off. I am trying to determine the MIDI event that causes this so that I can programmatically send the…
Elie
  • 13,693
  • 23
  • 74
  • 128
5
votes
3 answers

How do I send Midi events to Software Synth in C++

Hi looking for some advice. I am writing some music composition software. I have cobbled together tools to read write and send midi data, they work fine. However I stumped on the following: I'm trying to send midi events to a SW synthesizer on the…
VMan
  • 61
  • 1
  • 5
5
votes
1 answer

MIDI Outputs for VST Plugin

I remember this vaguely from the Hypersonic 2 VST instrument. Basically, it's a normal VST instrument, but if you had it in your project, you can assign its MIDI output (which was equal to the input, except if you had transposition or so active) to…
dialer
  • 4,348
  • 6
  • 33
  • 56
5
votes
1 answer

Separate MIDI song events from initial setup events

I am playing a MIDI song using a Java Sequencer. The song is designed to be looped continuously, which I can do easily with sequencer.setLoopCount(Sequencer.LOOP_CONTINUOUSLY) When played through the internal (soundcard) synthesizer this works fine…
finnw
  • 47,861
  • 24
  • 143
  • 221
5
votes
2 answers

Create a virtual MIDI port

I want to create a virtual MIDI loopback cable program that creates virtual MIDI ports to interconnect applications on Windows that want to open hardware-MIDI-ports for communication. SOrry if I am not clear in my requirements, here is an example…
ashwnacharya
  • 14,601
  • 23
  • 89
  • 112