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
1 answer

WinError 2: The system cannot find the file specified with FluidSynth in Python?

Trying to make a part of a program where a MIDI file is converted to a different file type. Here's an example of code that doesn't work: from midi2audio import FluidSynth midfile = "F:\\ai nea\\Actual Project\\"+input() output = "F:\\ai nea\\Actual…
Will
  • 25
  • 6
0
votes
0 answers

C++ MIDI not working after deploy to window shop

include include int flag; flag = midiOutOpen(&device, midiport, 0, 0, CALLBACK_NULL); flag = midiOutShortMsg(device, message.word); These code work when I am developing But after deploy to Window Shop, there is no…
0
votes
1 answer

MIDI: Several Program Change Event with the same data

I'm trying to understand the structure of MIDI files. While reading some files with the Python library python-midi I've found that two Program Change events with the same data and a difference of 190 ticks. I understand that Program Change event is…
Zaka Elab
  • 576
  • 5
  • 14
0
votes
1 answer

Is midipolyaftertouch broken in csound?

I'm not having much luck with the midipolyaftertouch opcode. Basically kPea init 0.1 midipolyaftertouch kPea, 1, 0.1, 0.9 printk2 kPea does not actually respond to polyphonic aftertouch messages. On the other hand, a manually coded rough…
Fizz
  • 4,782
  • 1
  • 24
  • 51
0
votes
1 answer

react-transition-group and react-abc (abcjs) Midi will not work at the same time (depends on Key of parent component)?

I have a small React project where the user can add notes to a Row, and then play MIDI audio of the notes that have been added (using react-abc / abcjs). The selected Notes should also animate in, using react-transition-group. My problem is that…
damon
  • 2,687
  • 8
  • 25
  • 35
0
votes
1 answer

Controlling Synthesia VJ program with RTmidi python

I've been struggling to obtain full control of Synesthesia (VJ program) with rtmidi (or any other midi scripting package) in python. My main goal is to develop a midi controller in python which can turn potmeters in the VJ program on and off (I can…
0
votes
1 answer

How do I use a markov chain matrix to generate music?

I have a matrix (square - nxn) <--Depends on how many chords there are. ------------------------------------------ Transition Matrix: (FROM) ------------------------------------------ A Bm C#m D E F#m G# …
LightninBolt74
  • 211
  • 4
  • 11
0
votes
2 answers

How to emulate a piano key in Python?

I wrote a Python script that sends MIDI data to a another program on my laptop if the a key is pressed on the keyboard which triggers a piano sound. My problem is the following: On a real piano if I press a key and I keep it pressed, a single note…
0
votes
1 answer

How to merge all Midi Events from tracks?

Some midi files have more than 1 track. How do I merge the events from these tracks (in order of StartTime) into a single array/list, using the NAudio library? I want to capture all NoteOn, NoteOff, and DamperPedal events in ascending order…
T1000
  • 423
  • 9
  • 17
0
votes
1 answer

MIDI messages are multiplying

I keep running into a strange issue when running AKMIDI on IOS. I also think it may be an IOS problem and not necessarily from Audiokit. I can connect a MIDI controller to IPad and receive messages as expected using the MIDI listener protocol after…
0
votes
3 answers

Fatal Python error: (pygame parachute) Segmentation Fault using pygame.midi

I have been working on playing midi files within pygame and keep getting faced with this error. Fatal Python error: (pygame parachute) Segmentation Fault Python runtime state: initialized This is my code: import…
CodingForFun
  • 11
  • 1
  • 3
0
votes
2 answers

Determine the key signature of a MIDI file

I'm having trouble parsing the key signature of a MIDI file. the time signature should be in the form ff 59 02 sf mi. The official MIDI documentation says that sf should be a value between 7 and -7, while mi is either 0 or 1. I am assuming when sf…
3ddavies
  • 546
  • 2
  • 19
0
votes
1 answer

Java MIDI sequencer never ends

I'm running some MIDI code from a tutorial, but the program never terminates. It seems the MIDI sequencer never stops running, even though it reports that the length is 0.625s. Do I need to do something else to make the sequencer stop? import…
jbrown
  • 7,518
  • 16
  • 69
  • 117
0
votes
1 answer

Enumerate UWP MIDI API devices from C# console application?

I want to get a list of installed MIDI Devices in Windows 10, using the Windows 10 UWP MIDI API. This article shows example code to get a list of MIDI devices and their IDs, using C#: using Windows.Devices.Midi; using…
tim11g
  • 1,935
  • 5
  • 27
  • 41
0
votes
1 answer

Determining time division of a MIDI file in Frames per second

Yesterday I asked a question about How to read the bytes that store the time signature data, but now what I'm having trouble with is time signatures displayed in frames per second. for example, I have a MIDI file with the header 4d54 6864 0000 0006…
3ddavies
  • 546
  • 2
  • 19
1 2 3
99
100