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

Impossible to process MIDI IN events in GRAALVM native image

I wrote a simple program that capture MIDI In events and print received message. Configuration is Windows10 + Graalvm 17 + Eclipse + standard MIDI keyboard. The program is a simple self-content file. All works properly using JVM. MIDI out events are…
java71
  • 1
  • 1
0
votes
1 answer

type javax.sound.midi.Sequence cannot be resolved

I am trying to use the open-source music programming API JFugue in my android 3.0 application, and am getting this error tag on the line player.play(pattern);: The type javax.sound.midi.Sequence cannot be resolved. It is indirectly referenced from…
MarioAran
  • 41
  • 1
  • 10
0
votes
0 answers

Javascript Midi change track for individual notes one after another

So I want to change every individual midi note into a different midi track one after the other. Here is a jsfiddle of what I have so far: https://jsfiddle.net/alexybaddie/5ca7r9g0/84/ But the general code I want some help with lies in this section…
Alexandra
  • 5
  • 4
0
votes
0 answers

How to "open" a large midi file into memory?

import mido # This file has 2.2 billion notes, and 16 GB big. midi = mido.MidiFile("") # This is a new file, but will write 16 GB big data. outputmidi = mido.MidiFile("") for tk in midi.tracks: for i in range(0,…
0
votes
1 answer

Is the Web MIDI API Port ID unique to each device or the device in general?

Referring to https://webaudio.github.io/web-midi-api/#dom-midiport-id. As an example, let's say we're talking about Synth X. The name and manufacturer parameters of the MIDIPort would be the same across any instance of Synth X that connects. My…
kue
  • 341
  • 1
  • 4
  • 11
0
votes
2 answers

How to decode Midi data Android

I'm writing an Android application. A MIDI piano keyboard is connected physically by a cable to an Android device. I have been following the official Android Midi documentation here…
TomV
  • 1,157
  • 1
  • 13
  • 25
0
votes
0 answers

Convert audio wav to midi using Melodia

Firstly I apologize that I'm not experienced in asking questions here so it might be a little messy. using the following repo in GitHub: https://github.com/gcunhase/wav2midi2wav Melodia keeps showing the following error: Loading audio... Extracting…
Saad Malhas
  • 19
  • 1
  • 10
0
votes
1 answer

MIDI and Android: can you achieve individual "note bending" only by assigning a separate channel to every note being played?

I'm in the process of devising my idea for some music-related Android app. It will probably feature playback using the internal MIDI sound bank (I thought of using free soundfonts but then I'm not sure how easy it is to achieve any pitch shifting at…
TLSO
  • 322
  • 3
  • 17
0
votes
2 answers

Hexadecimal byte array from a Midi event to int

I'm trying to retrieve the tempo of a midi file through the javax.midi library. MidiMessage message = event.getMessage(); if(message instanceof MetaMessage) MetaMessage mm = (MetaMessage) message; …
0
votes
0 answers

Javascript - trying to add a property in a loop

I'm trying to write a midi file by adding notes using a loop. This works fine when adding the first note from an array of notes: trk1.smfSeqName('Music') .ch(0) // all subsequent messahes will go to channel 0 .program(0x1)…
TCP2000
  • 1
  • 1
0
votes
1 answer

MIDI Files in Hex Value

I am a beginner in programming Is there a way to read a midi file in its hex numbers? I searched the internet that midi files are composed of headers and their contents are in hex numbers like 4D 54 68 64 0A .... So, what is the best way to extract…
Felixx
  • 13
  • 2
0
votes
0 answers

Android - can I direct midi output of MediaPlayer to Bluetooth

I am new to Android development, and would like to know if it is possible to send a midi file data out of Bluetooth? I am using the following to load and start a midi file.. MediaPlayer mediaPlayer; String music =…
peterc
  • 6,921
  • 9
  • 65
  • 131
0
votes
2 answers

How does one uniquely identify a MIDI device with Windows Multimedia?

I've been exploring the MIDI APIs available on macOS and Windows recently (Core MIDI and Windows Multimedia, respectively) and noticed: On MacOS, after querying for the number of available sources, each source can be uniquely identified by checking…
Ethan McTague
  • 2,236
  • 3
  • 21
  • 53
0
votes
1 answer

MIDI in Java - Trying to get continuous controller data from multiple CCs but only able to get 1

I have a Moog Theremini that outputs two sets of continuous controller data. The "pitch" antenna outputs on CC 20 and the "volume" antenna outputs on CC2. I have no problem pulling up the track data for CC20, but after a day of reading MIDI docs and…
0
votes
1 answer

Can't parse midi file (time signature error)

I am trying to parse some midi files, but I get the following error: