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
10
votes
3 answers

How to play MIDI on the iPhone?

As far as I know, there is not native or third party library available to play MIDI on the iPhone. But there seem to be quite a few apps that do exactly that. What are they using? Any clues?
Plumenator
  • 1,682
  • 3
  • 20
  • 49
10
votes
5 answers

wav-to-midi conversion

I'm new to this field - but I need to perform a WAV-to-MIDI conversion in java. Is there a way to know what exactly are the steps involved in WAV-to-MIDI conversion? I have a very rough idea as in you need to; sample the wav file, filter it, use FFT…
Dolphin
  • 375
  • 2
  • 8
  • 16
10
votes
2 answers

Java MIDI - getting data from piano?

I've inherited a Java project that used an old C++ dll to receive MIDI data from a piano connected to the computer. Now that Java has built-in support for MIDI devices, I want to get rid of the legacy C++ dll and just use pure Java. Does Java…
Judah Gabriel Himango
  • 58,906
  • 38
  • 158
  • 212
10
votes
3 answers

CoreMIDI/PGMidi Virtual midi error in iOS6

Faced with two errors. This code worked in iOS 4 and 5, but after update to 6, it is not working ( I found following, but don't know how to fix it in the code. Beginning in iOS 6, apps need to have the audio key in their UIBackgroundModes in order…
user1195202
  • 1,423
  • 1
  • 16
  • 20
9
votes
2 answers

MIDI instrument listing?

I have recently implemented a MIDI Beatbox from the code in Head First Java and would really like to do more with Java's MIDI capabilities. I thought that I might start by adding more, non-percussive instruments to the existing code, but I cannot…
cornbread ninja
  • 417
  • 1
  • 6
  • 17
9
votes
4 answers

Error: subprocess-exited-with -error. --python

Error: subprocess-exited-with -error, python setup.py egg_info did not run successfully. I know that there are some similar questions. But the error still exist after trying those solution. I want to install a model called midi-ddsp and it shows an…
Megan
  • 541
  • 1
  • 3
  • 14
9
votes
2 answers

Android - Play SoundFont with MIDI file

I have one midi file and I have played that midi file using MediaPlayer in android using the following code: val mMediaPlayer = MediaPlayer.create(context, R.raw.test_ring_1) mMediaPlayer?.start() It default play with one instrument like piano,…
9
votes
5 answers

generating MIDI in javascript

I'd like to generate a sequence of MIDI notes in javascript and then play it. Many plugins support MIDI, but I'm not aware of any supporting "data:" URL. Generating MIDI content is not a big deal - but feeding this content into player is. Anyone…
9
votes
1 answer

Swift UnsafeMutablePointer?> allocation and print

I'm new to swift and I have some difficulties to deal with pointers of unmanaged CFString (or NSString). I'm working on a CoreMIDI project that implies usage of UnsafeMutablePointer?> as you can see in this function : func…
SamT
  • 528
  • 4
  • 14
9
votes
1 answer

Play multi-instrument MIDI file IOS

I'm trying to write a simple midi player with a quality sound bank but I'm faced with the problem of playing midi files. The problem is that all midi tracks (drums, pads, bass, synth, etc.) played, but they play a single instrument. I found a…
John
  • 151
  • 6
9
votes
2 answers

Converting MIDI file to raw audio using a software synth

I'm trying to dynamically generate a small MP4 audio+video file directly from my Android app. My original plan of attack: The user enters some basic song data (a chord progression, etc) and the app builds a MIDI file. The system builds chord…
RjK
  • 91
  • 1
  • 3
9
votes
1 answer

Javascript: How to Export a MIDI File?

I am new to working with MIDI in my javascript code, and I would like to create an application that simply generates a MIDI file based on the user's input. I have looked at using MIDI.js, but I'm not sure if I need any of the library. Ideally, I…
user1429980
  • 6,872
  • 2
  • 43
  • 53
9
votes
1 answer

Reading piano notes on Python

I'd like to listen to the port having my midi output device (a piano) with my RPi, running on Debian. I've looked into pygame.midi, I managed to listen to the port, but somehow can not extract all midi information. Please find code below [edited…
YanisM
  • 101
  • 1
  • 4
9
votes
2 answers

How to fetch MIDI input-data in C++?

I've already googled the **** out of the web in search of a simple way to get data from a connected midi device. I'm using I Visual Studio 2010 on a Win7 64bit PC. I've already tried libaries like Improv, JDKSmidi, Portmidi All their example…
user1511417
  • 1,880
  • 3
  • 20
  • 41
9
votes
1 answer

Change time signature in MusicSequence

I'm trying to change the time signature (default to 4/4) in a MusicSequence but I don't seem to understand how to do this. I have 2 MusicTracks inside the sequence and a MusicPlayer also to reproduce the music. How can I change this value? EDIT: I…
fdiaz
  • 2,600
  • 21
  • 27