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

Can't communicate midi through USB (python)

My goal: I want to write a script on my Raspberry Pi Zero W, that sends MIDI to my computer whenever I make a specific connection on the GPIO board. The problem: The hardware stuff is already taken care of, it can recognize unique button presses.…
qawes
  • 3
  • 6
0
votes
1 answer

Sending keycodes instead of midi, looking for simple ways to send that info with a rythm pattern on arduino usb cable

Do you know if it is possible to have a device in between the keyboard and the computer , you press a recording key on the arduino, then press the letter P, the arduino keeps that P in memory and and the letter can be assigned to a rythm pattern and…
user768954
  • 11
  • 4
0
votes
0 answers

Running an UNIX program with swift /cocoa?

I have a problem starting a UNIX Programm (Csvmidi) from an cocoa app. It should convert a csv file to a midi file which actually works when i run it through the Terminal. In Terminal it works fine by putting the URL of the UNIX file, the .csv file…
0
votes
1 answer

What is the name of Ubuntu's MIDI device

I am trying to do some MIDI programming using py-midi using the documentation here: https://pypi.org/project/py-midi/ The first step is to create a connection to the MIDI device: (from the docs) >>> from midi import MidiConnector >>> conn =…
Craeft
  • 227
  • 1
  • 11
0
votes
1 answer

adding MIDI chords at specific MetaMessage time

I have a MIDI file with marker as meta-messages. fname = "avm.mid" mid = MidiFile(fname) # input file of type 0 metas = [m for m in mid.tracks[0] if m.is_meta] I have stored the meta marker times in the list "chordTimes". The first maker ( chord…
chikitin
  • 762
  • 6
  • 28
0
votes
0 answers

MIKMIDI: writing events on a track produces a warning

I'm trying to write a program to shift the key of a midi file. Basically, I just need to shift every note event by a given amount and live the rest unchanged. I found it easy to use MIKMIDI to read, parse, modify and write back the stream.…
FranceD
  • 9
  • 2
0
votes
1 answer

Extracting tempo from MIDI file in java using MetaMessage getData() and/or MetaMessage value?

Using this thread I have figured out how to use getData(), but instead of getting anything with 0x51, I am getting random values such as [B@37d78d93, [B@29d74462 and [B@1c5ca652 Outputting the meta message itself also results in similar values such…
0
votes
0 answers

How to use pretty_midi with UTF-8 encoding?

I'm going to use pretty_midi to make a midi file with lyrics(Chinese). But it hints: UnicodeEncodeError: 'latin-1' codec can't encode character '\u6211' in position 0: ordinal not in range(256) How can I solve this problem? Can I change the…
initch
  • 1
0
votes
0 answers

AVAudioUnitMidiInstrument can change program in simulator, but not on device?

TL;DR: I can change MIDI instruments in my iOS app when running in the Xcode simulator, but not when running on-device. I've been following a few of Gene De Lisa's posts, to learn how to use MIDI in an iOS app. I've gotten the furthest by following…
Bryan
  • 198
  • 1
  • 4
0
votes
0 answers

unable to reduce bytes of a midi file

I am trying to do some operations on MIDI tracks, such as increasing/decreasing the playback speed. For those who want more detail: To change playback speed, I need to divide 'delta times' of each track by the multiplier. Eg. If I want to speed up…
user12758366
0
votes
1 answer

Android Mediastore does not list MID & AAC files

When using mediastore to list audio files from internal/external storage, AMR, OGG and MP3 are listed but MID and AAC are not. If I use Android file system API to list all the files, I can list the MID and AAC but can't play them, even though…
0
votes
2 answers

Arduino MIDI controller library

I am trying to make a MIDI controller with three buttons (play, pause, and rec), a potentiometer and a fader. I am using this library: https://github.com/tttapa/MIDI_controller I can't manage to make the buttons do what I want (trigger the play…
George S.
  • 11
  • 3
0
votes
1 answer

Write Note at specific time in Midi via Python

I want to convert a sequence of notes (defined by time, duration, pitch) to a audio-file. For doing so, I thought creating a midi first and then compile it to wav is the way to go. I'm quite new to audio processing and MIDI-Files, so even though I…
physicus
  • 361
  • 4
  • 12
0
votes
0 answers

Mac OS 10.4 app on Later Mac OS with Later Python version

I'm trying to run app that uses an older version of python on a newer Mac version. The app says it works on 10.4 Tiger and I think it would be using an older version of of python on 10.4 mjb2lite.app The windows version works fine on Win10 as it…
LuaStart
  • 397
  • 2
  • 11
0
votes
1 answer

How do I calculate the number of ticks per measure from a MIDI file

I am trying to calculate the number of ticks per measure (bar) from a MIDI file, but I am a bit stuck. I have a MIDI file from which I can extract the following information (provided in meta messages): @0: Time signature: 4/4, Metronome pulse: 24…
Ch Ryder
  • 360
  • 3
  • 10