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
2 answers

WAV-MIDI matching

let's consider a variation of the "WAV to MIDI" conversion problem. I'm aware of the complexity of such a problem and I know that a vast literature about the more general Music Information Retrieval (MIR) subject exists. But let's suppose here that…
5
votes
0 answers

audioread.exceptions.NoBackendError Midi file

I am trying to load a file which is a midi file. A simple loading is giving me the following error. My librosa version is 0.6.3 and Python is 3.6.8. I have ffmpeg already in my Ubuntu. I saw a similar issue for windows where they asked to check and…
Teja8484
  • 69
  • 2
  • 10
5
votes
1 answer

AKMIDICallbackInstrument implementation issue

Updating to the latest version of AudioKit left me changing several AKCallbackInstrument instances over to the new AKMIDICallbackInstrument class which now incorporates the former as legacy behavior. When doing so however, I ran into this weird…
caxix
  • 1,085
  • 1
  • 13
  • 25
5
votes
1 answer

Issues with extra MIDI track being created in AKsequencer, using audiokit

I've been trying to solve a mystery sinewave issue with little success. I'm starting a new question here as I think I have dug into the specifics of this problem. When setting up an AKSequencer, and feeding it a MIDI file, I'm seeing some strange…
Mr_P
  • 523
  • 2
  • 16
5
votes
1 answer

Cropping MIDI file using AudioKit

I am trying to crop and loop a certain part of a MIDI file using AudioKit. I am using a sequencer and found a couple of things that are close to what I need, but not exactly. I found a method in AKSequencer called clearRange. With this method I am…
5
votes
1 answer

Extracting drum notes from midi using python midi

I am trying to read a midi file and generate another midi with the drum notes only using python midi. The code is the following: pattern = midi.read_midifile(IN_PATH+file) out_p = midi.Pattern() out_t = midi.Track() out_p.append(out_t) for…
firion
  • 296
  • 3
  • 12
5
votes
1 answer

Music21: Get all Notes per Instrument from a MIDI File

I am parsing a MIDI file as instructed here. My code looks like this: from music21 import converter,instrument # or import * file = converter.parse('sample.mid') components = [] for element in file.recurse(): components.append(element) The…
sri
  • 744
  • 7
  • 20
5
votes
1 answer

Playing drum sounds in Python Music21 library

It's been a couple of weeks since I started reading the book "Making music with computers: creative programming in Python" and now i'm stucked while trying to play drum sounds with this library. I'm using Mit's music21 library, as the one proposed…
Julian
  • 51
  • 1
  • 4
5
votes
1 answer

AttributeError in python-rtmidi sample code

I installed rtmidi for python and was able to import it. But when I tried to run the whole usage example given here: https://pypi.python.org/pypi/python-rtmidi, I got this error: AttributeError: 'rtmidi_python.MidiOut' object has no attribute…
Felicia Agatha
  • 359
  • 5
  • 11
5
votes
1 answer

How to create a MIDI file with Swift?

I'm currently learning how use MIDI with swift. I sought how to create a MIDI file, but that sound like not so easy. I checked frameworks like AudioKit, but i don't find too. Which's informations i need to learn doing it? (for example to know MIDI…
Kyz
  • 141
  • 9
5
votes
2 answers

MIDI OUT transmitter not available

I've been banging my head on this all day, read everything I can find, followed the JDK source around, no luck in finding out the gory details about HOW or WHERE java looks to obtain data on a midi device and determines what's what. I'm trying to…
5
votes
1 answer

Printing midi note numbers in juce audio application

I am trying to print midi note numbers in to a label in a Juce audio application as they are pressed. Here is the code I currently have: in the MainComponent header file: class MainComponent : public Component, public…
willfo
  • 241
  • 1
  • 2
  • 12
5
votes
3 answers

iOS9 Beta and MusicTrackLoopInfo

Has anyone been able to loop a MIDI file without problems on IOS9 Beta? As soon as I try to loop by setting numberOfLoops to 0 in MusicTrackLoopInfo, it locks up the app by sending random MIDI to the player. I've reported it, but am wondering if…
Aron Nelson
  • 838
  • 1
  • 9
  • 17
5
votes
2 answers

MIDI support for HTML5 audio tag?

Can we play a MIDI using HTML5 audio tag? I see a lot of javascript midi player/editors etc. but I haven't found a very basic player (play, stop, pause...) that supports easily a midi player. Any thoughts?
Ulrira
  • 229
  • 4
  • 12
5
votes
1 answer

Implement sub millisecond processing in python without busywait

How would i implement processing of an array with millisecond precision using python under linux (running on a single core Raspberry Pi). I am trying to parse information from a MIDI file, which has been preprocessed to an array where each…
x29a
  • 1,761
  • 1
  • 24
  • 43