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

How to get audio from generator/instrument VST with VST.NET and NAudio?

I'm trying to write a simple VST host in C# using NAudio and VST.NET. I don't know how to get output audio buffers with generator/instrument VST and pass it to NAudio. Has someone did something like that and can share his/her experience with me?
0
votes
1 answer

I wonder how to get the timesignature event in DryWetMidi?

I want to parse out the beat count information, but I can't figure out how to do that from the API it provides.Anybody know?
0
votes
0 answers

How would I convert a midi file to a bin (audio) file?

So I am trying to convert a midi file to a bin file, so it can be played using motherboard beeps in a bootloader. Or can you directly play midi files in a bootloader? I tried using this python script, but it puts out completely empty files: (Usage:…
Davide_24
  • 67
  • 7
0
votes
1 answer

AudioKit - How to connect MIDI input to MIDISampler

My goal is to receive MIDI events from an external keyboard and trigger the appropriate notes on a sampler. I wasn't able to come up with a working solution so far and I haven't found an example covering that exact usecase. My code so far (macOS,…
DeerMichel
  • 51
  • 8
0
votes
1 answer

How to use running status with midiOutShortMsg?

As described here, it should be possible to omit the status byte and only send data bytes after I set the status byte by sending the first command. I'm testing with NoteOn command code (90 hex) and trying to play a chord, but it only works when the…
0
votes
1 answer

Is there a way to generate inputs like as a midi controller using python?

I have a code that represent numbers as notes, C1 is equal to 1 C_sharp1 is equal to 2 and so forth. Is there a way to take those numbers convert them into a midi output and send them live to a daw software like Ableton to play them? this is an…
0
votes
1 answer

Getting the wrong tempo when playing a MIDI file with MIDI.js

I am trying to play this midi song. But the tempo is all wrong. I am simply doing: MIDI.loadPlugin({ soundFontUrl: "./soundfont/", onsuccess: function(){ console.log('loaded'); …
João Abrantes
  • 4,772
  • 4
  • 35
  • 71
0
votes
1 answer

Kivy slowing down midi playback

I am working on an open-source midi synth and whenever I play back a song that hits multiple notes at the same time, the music is slowing down. I know I have a pretty wonky implementation (lines 140 and below in the code) because kivy hangs whenever…
0
votes
2 answers

JavaX MIDI, some tracks are missing program change

I'm working on a simple MIDI parser that converts MIDI files to a different format, and one issue I'm facing is that occasionally I'll get some tracks in the MIDI file that don't have any assigned instrument to them (no program change events) Here's…
Meric
  • 1
0
votes
0 answers

javascript midi sens chrome

I have to send a midi message with chrome to a plugin in Reaper: [0xB1, 11, 10] ctrl 11 sur canal 1 value=10 The port corresponds at home to my MidiThrough port 0. The plugin in Faust language is likely to receive and process this midi…
0
votes
0 answers

USB MIDI interface detected but not connected

Currently I am developing a USB MIDI interface. Recently I ran into a problem with this interface. Windows 10 is able to install all the correct drivers and MIDI in/out is detected correctly. But when I tried to communicate with the interface I…
0
votes
2 answers

XG MIDI messages

I am working on a Java program that uses javax.sound.midi for reading MIDI files. I have come across a MIDI file that is encoded in XG. When I play it on my Yamaha keyboard the drums sound fine. But in Java I do not know how to detect a track is…
Invariant
  • 185
  • 1
  • 11
0
votes
1 answer

MIDI Events Note ON, ON, OFF. How to interpret?

I found a MIDI file which I don't know how to interpret, it starts something like this: Tick: 384 NOTE ON Channel: 1 Velocity: 127 Pitch: 53 Tick: 672 NOTE ON Channel: 1 Velocity: 127 Pitch: 53 Tick: 768 NOTE OFF Channel: 1 Velocity: 85 Pitch:…
Invariant
  • 185
  • 1
  • 11
0
votes
1 answer

Why midiOutOpen returns 1 (=Unspecified error) in a UWP app?

As soon as I convert the app, the midiOutOpen function starts to return 1 on being called. I declare it as: VB Shared Function midiOutOpen(ByRef lphMidiOut As IntPtr, uDevID As IntPtr, cBack As IntPtr, dwinst As IntPtr, dwFlags As UInt32) As…
0
votes
3 answers

FluidSynth() output volume is too low

in my python script i am using fluidSynth to convert .mid files to .wav files fs = FluidSynth() fs.midi_to_audio('myfile.mid', 'myfile.wav') fluidSynth successfully converts myfile.mid to myfile.wav and saves the output, everything goes well. the…
mohamed mostapha
  • 161
  • 4
  • 16