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

MacOS Software as Midi Device

I am writing C++ software in MacOS that can take input from MIDI devices and perform actions based on the input. Another piece of software, QLab, can send MIDI messages to MIDI devices on the system. However, QLab cannot send midi devices to my…
Steve
  • 3,957
  • 2
  • 26
  • 50
0
votes
1 answer

Is midiOutPrepareHeader a quick call?

Does midiOutPrepareHeader, midiInPrepareHeader just setup some data fields, or does it do something that is more time intensive? I am trying to decide whether to build and destroy the MIDIHDR's as needed, or to maintain a pool of them.
jyoung
  • 5,071
  • 4
  • 30
  • 47
0
votes
0 answers

How to Send Note Messages in AudioKit v5 without Triggering Internal Receive Note Messages?

I have a Swift class that extends AudioKit's MIDIListener to handle receiving MIDI messages from external and virtual devices. It receives noteOn and noteOff messages like so: func receivedMIDINoteOn(noteNumber: MIDINoteNumber, …
jonobr1
  • 1,013
  • 2
  • 11
  • 22
0
votes
2 answers

How to Change Tempo of a Notes Sequence in Magenta?

I tried changing qpm. But it doesn't change anything. I want to change the tempo of the notes sequence. I am working on Colab, my notebook can be found here. from note_seq.protobuf import music_pb2 from note_seq import sequences_lib …
0
votes
0 answers

How to catch events (string plucked) from a Guitar Tab?

I m writing to you to have advice on a methodology to achieve a specific musical purpose. I have a project where I would like to robotize and automatize the “right hand” of a guitarist, which means, plucking the strings not with the hand, but with…
DiXcipuli
  • 359
  • 3
  • 11
0
votes
0 answers

Sending midi message according to time sequence on Python

I am writing the script simply play the midi file import pretty_midi import mido port = mido.open_output(mido.get_output_names()[0]) # open port of software synthesizer. midi_file = '2021-01-02_101128_03.mid' midi_data =…
whitebear
  • 11,200
  • 24
  • 114
  • 237
0
votes
1 answer

Flutter mobile, playing midi files

I would like to know how can I play midi files on mobile app Ive found two midi libraries, but don't see how to implement function to play midi files https://pub.dev/packages/flutter_midi here Im using this package in my app to play sf2 audio,…
Jan
  • 247
  • 2
  • 15
0
votes
2 answers

PyGame change preset soundfont

How do I change the preset soundfonts for pygame or fluidsynth? Im using Python 3.7.3, pygame 2.0.1, fluidsynth 1.1.11 to play Midi files. When I call pygame.mixer.music.load(), I receive a few fluidsynth errors: fluidsynth: error:…
Aaron Elliot
  • 155
  • 9
0
votes
1 answer

controlling Python script with usb midi controller

I have a usb midi controller (uc-33e) and I have a working python script see below. I would like to be able to control the variables of the python script using my usb controller does anyone have an example of this? I would like to use the "midi…
Rick T
  • 3,349
  • 10
  • 54
  • 119
0
votes
0 answers

Reading USB-midi input live in python

I am looking for a way to read the USB-MIDI input live and have triggers, that run when a certain note is played. For example it should run function x, when an "e" is being played. This is Python 3 based either on windows 10 machine or a raspberry…
Tasmotanizer
  • 337
  • 1
  • 5
  • 15
0
votes
0 answers

MIDI Device not listed in /dev/tty*

My MIDI keyboard is not showing up running ls /dev/tty* In fact, there is no entry containing "usb" or anything. In Audio Midi Setup, the keyboard shows up and it works with my DAW. Also, running ioreg -p IOUSB -l gives me plenty information on my…
0
votes
1 answer

How to implement a MIDI keyboard into python

Looking to create a GUI based 25-key keyboard using PYQT5, which can support MIDI controller keyboards. However, I don’t know where to start (What libraries should I use and how do I go about finding a universal method to supporting all MIDI…
0
votes
2 answers

Using Midi Library To Parse Events And Store In Vector C++

I'm a PHP programmer whose decided to take the plunge into C++ by developing a simple alternative to MissWatson that would allow me to, via the command line with PHP, process a MIDI file through a VST. I started with the Steinberg VST SDK and I've…
grandcameo
  • 185
  • 2
  • 11
0
votes
1 answer

NAudio and Midi file reading

I'm posting my question here as it was suggested to do so on the NAudio page(http://naudio.codeplex.com/documentation). Given that I've loaded a .mid file with NAudio, I'd like to step through the events of a track in proper time. Upon reaching a…
viperld002
  • 329
  • 4
  • 17
0
votes
3 answers

Play a continuous theremin-like sound on MIDI

I am trying to create a theremin-like program, that plays continuous notes based on mouse cursor position. I am using Carl Franklin's MIDI Tools library to do this. This is the code snippet I am using to play the notes. byte pitch = 0; while (exit…
ashwnacharya
  • 14,601
  • 23
  • 89
  • 112