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

How to change the bit rate of audio while converting from midi file to mp3 using ffmpeg/fluidsynth

I am trying to convert midi file to mp3 using fluidsynth and ffmpeg on Windows 10 OS. fluidsynth -a alsa -T raw -F - "FluidR3Mono_GM.sf3" simple.mid | ffmpeg -ab 192k -f s32le -i simple.mp3 The audio bit rate specification : -ab 192k or -b:a…
Vinod
  • 4,138
  • 11
  • 49
  • 65
0
votes
1 answer

pygame.midi.Input.read can't being a string

i'm on Ubuntu 20, and I use Python 3.9. I can't put the list of pygame.midi.Input.read to a string, because else, my programm is closed with the output: pygame 1.9.6 Hello from the pygame community. https://www.pygame.org/contribute.html [[[248, 0,…
MeblIkea
  • 11
  • 2
0
votes
1 answer

suppress the end of a midi file

I want to remove the end of a midi file in order to have a file of 30 seconds for example. I tried to compute on each track the total time value and to delete messages each time it is over 30 seconds. However, when I listen to it, it is still the…
soyann
  • 1
0
votes
0 answers

How to generate a MIDI file from an MP3/WAV file?

Disclaimer: I am NOT trying to perfectly convert a MP3 to a MIDI, as in replicate / identify instruments being used, just stick with one instrument. I have stumbled across a site that somehow disects an audio file and converts it to a MIDI file, but…
Meh.
  • 234
  • 2
  • 12
0
votes
1 answer

How to create MIDI file using hexadecimal information in C++

I'm trying to create a MIDI file from scratch in C++. I'm using this website as a resource: https://intuitive-theory.com/midi-from-scratch/ . Since MIDI requires it to be encoded in Hex, i've written a program that creates a MIDI file and pastes HEX…
cooldecola
  • 118
  • 7
0
votes
0 answers

How to translate Declared "winm.dll" Functions from VB into C#

I have a script in VB with a specific part that I would like to convert into C#, that part is inside the comments HOW TO CODE IN C# as following: Imports System.Threading Imports System.Runtime.InteropServices Public Class Form1 …
Rui Monteiro
  • 181
  • 1
  • 7
0
votes
0 answers

Trying to route audio from Musescore to Ableton Live 10 via JACK audio connection?

My goal is to be able to write sheet music in Musescore and then have the audio output of the playback routed to Ableton Live. I've tried using loopMIDI audio and LoopBe1 as virtual midi cables. I have the Jack audio driver set in Ableton's audio…
0
votes
1 answer

MIDI format1 -> format0 converter in MFC

Thank you for visiting my question. I am writing a program to convert from MIDI format1 to format0 using MFC. Reads MIDI file data in units of 1BYTE, declares TRACK CHUNK as a structure, and saves it in a vector. (To sort by SMPTE order) If I debug…
Jungwon
  • 1,038
  • 7
  • 20
0
votes
1 answer

Changing USB configurations/interfaces on the fly; initiated by the device

I'm working on a USB MIDI device that will function as the receiver for a wireless system. This device will communicate bi-directionally though a radio module with the transmitter, a separate piece of hardware that runs in USB host mode. The…
ned3000
  • 31
  • 2
0
votes
0 answers

Problem with midi setup on Raspberry Pi with midi board for RPi

I bought this one from osa electronics: https://www.osaelectronics.com/product/midi-board-for-raspberry-pi/ I followed the instructions here on how to set it up: https://www.osaelectronics.com/learn/setting-up-raspberry-pi-for-midi/ After following…
acroscene
  • 845
  • 4
  • 16
  • 45
0
votes
1 answer

Not sure how to declare a variable (in MIDIPortConnectSource) for use with other methods in a class

I am trying to use this in a class. OSStatus MIDIPortConnectSource( MIDIPortRef port, MIDIEndpointRef source, void* …
Loren Zimmer
  • 482
  • 1
  • 6
  • 29
0
votes
0 answers

I want to use a midi input shortcut instead of a keyboard shortcut for QPushButton in PyQt5

I have a QPushButton named C3: self.C3 = QtWidgets.QPushButton(self.centralwidget) A keyboard shortcut for this button for the key 'X' for example would be: self.C3.setShortcut(_translate("MainWindow", "X")) But I want to trigger the button when I…
Glooring
  • 21
  • 3
0
votes
0 answers

I am trying to build a music visualizer but I am completely inexperienced

Where should I begin? I am trying to build a real-time stem-split music visualizer for VJing and the like. What sets this apart is that I would like to split the input audio stream into its stems (either algorithmically or using something like…
NobelJ
  • 1
0
votes
2 answers

Arduino - Measuring the time interval between one button press and release - Add Velocity to MIDI Keyboard

I hope you are doing all really well, I am trying to make a MIDI Piano Keyboard, Pretty basic I press a key the MIDI signal is send and the sounds comes. But I want to add the velocity to the my keys, there are one contacts per key (the keyboard I…
0
votes
1 answer

music21: get the voice/program/instrument of midi voice from a flat score?

I have a simple script that uses music21 to process the notes in a midi file: import music21 score = music21.converter.parse('www.vgmusic.com/music/console/nintendo/nes/zanac1a.mid') for i in score.flat.notes: print(i.offset, i.quarterLength,…
duhaime
  • 25,611
  • 17
  • 169
  • 224