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

Use easymidi for Node.js from React Native

I have a React Native application and in the backend I use Node.js. Actually I have this in node.js const easymidi = require('easymidi'); const output = new easymidi.Output('Mindy', true); function playSound(req, res) { console.log('play sound…
0
votes
0 answers

Implement a virtual Instrument (MIDI OUT) on STM32, Note-On not works

I'm implementing a virtual instrument on STM32 (STM32F103x). Like a normal "hello world", I tried to start with the simplest MIDI message, sending NOTE-ON MIDI message in a loop to see if it works. I send MIDI NOTE-ON message for every 500ms, only…
Hao
  • 51
  • 1
  • 5
0
votes
1 answer

Is it possible to load a midi file using createjs?

I am working on a createjs app that needs to load midi files as part of its function. I then plan to use midiplayer.js to play the file. However, I cannot find any examples of loading a midi file using createjs. It seems that I would want to load it…
0
votes
1 answer

How to click pushbutton twice while function is still running?

I have something like this : self.pushButton.clicked.connect(self.clicked) I click my button and it calls the function clicked(), all good so far. The Clicked() function plays a midi note and then does time.sleep() however instead of actually using…
Greg James
  • 15
  • 4
0
votes
1 answer

Return Type Format of Python pygame.midi.Input.read()

I've searched a lot to find out what does the pygame.midi.Input.read() returns. In every documentation I found they say it's [[status,data1,data2,data3],timestamp],...] But what the hell is data1, data2, data3? Someone, please explain what each…
ABHi
  • 404
  • 4
  • 8
0
votes
0 answers

How to interrupt pygame.time.delay()? (similar to time.sleep)

I'm using Pygame midi to create a piano. Example: player.note_on(60, 127) pygame.time.delay(1000) player.note_off(60, 127) To be able to actually hear the note pygame.time.delay() is necessary. The problem is that sometimes I want to be able to tap…
Greg James
  • 15
  • 4
0
votes
0 answers

question about Arduino library

I'm making a MIDI controller with a 4*4 push button pad by following the example from , here's the code: #include USBMIDI_Interface midi; using namespace MIDI_Notes; const AddressMatrix<4, 4> addresses = {{ …
Nickie
  • 1
  • 1
0
votes
1 answer

Can I use a Arduino Mega 2560 as a multiplexer?

I have a 4*4 push button pad with RGB LEDs (brought from sparkfun) connected to a Arduino Mega 2560. At first I wanna use the button pad as a MIDI controller, but now I discovered that Mega 2560 cannot use as a MIDI devices. I have a Teensy 3.2 with…
Nickie
  • 1
  • 1
0
votes
1 answer

Can MIDI variable-length quantities be forced to four bytes' length?

In this terabyte era, I find variable-length quantities tiresome. And with my novice abilities I'm struggling to write a C program to write MIDI. I don't want to use an existing library because I don't want to credit anyone. I had the idea to force…
user240254
  • 11
  • 6
0
votes
1 answer

Get current MIDI timecode from stopped device

Is there a way to ask a MIDI device for its current timecode value while it is stopped? Specifically, I want to poll Pro Tools for its current MTC value (via the macOS Audio MIDI Setup Utility, IAC bus). The only way I've been able to come up with…
slondike
  • 3
  • 3
0
votes
1 answer

ALSA input from MIDI keyboard

I'm writing a software synth in Linux using libasound. I want to control it with a MIDI keyboard. I have some working code using snd_seq_open() and snd_seq_event_input() but it only creates a virtual MIDI port. I have to go to the commandline and…
Adam Pierce
  • 33,531
  • 22
  • 69
  • 89
0
votes
1 answer

MP3 to midi converting by python (TypeError: Failed to load plugin: mtg-melodia:melodia)

I am trying to write some codes to convert MP3 files to midi in the main colab page. so i remember that creating midi file form mp3 is a big project, and I probably have trouble importing a personal song or audio file into this project. (Audio…
Soheil Paper
  • 1
  • 2
  • 8
  • 25
0
votes
2 answers

return values in next line in file on every invocation of script. MIDI Command line sequencer

So i have a file "scenes.txt", containing a 2-column set of numbers, about 500 lines in total: 0 01 6 22 5 03 4 97 7 05 3 98 2 99 9 00 etc... First column range is 0-9, second column range is 0-99. The 2 fields are tab-separated. On each invocation…
shivahoj
  • 1
  • 2
0
votes
1 answer

Audio Unit (AUv3) in macOS only works in selected track in DAW

When I build an Audio Unit extension (instrument/aumu) using the template in XCode (New project → App, then New target → Audio Unit Extension) and then build and run it with either Logic Pro X or Garage Band, the plugin only functions when the track…
arghhh
  • 13
  • 1
  • 3
0
votes
1 answer

Synchronising animation with midi data

I’m working on a small program that generates animations and, for most parts, it’s working as expected. The only place where I’m facing a problem is when the midi onset’s are of incredibly small duration and my animation then goes extremely out of…