Questions tagged [midi]

Musical Instrument Digital Interface.

Filter by
Sorted by
Tagged with
7
votes
1answer
2k views

Sending MIDI messages using PING ultrasonic sensor

I am working on a project that uses a potentiometer and an ultrasonic sensor to create MIDI signals. This is my first time working with an arduino. I took a class in C++, but am teaching myself some C ...
4
votes
1answer
771 views

Teensy MIDI Show Control

I'd like to use my Teensy 3.1 to send MIDI Show Control messages using USB MIDI in order to control an ETC Nomad system. These are different from standard NoteOn, NoteOff, ProgramChange, etc. commands,...
4
votes
1answer
3k views

SoftwareSerial too slow for MIDI?

I tried to use the SoftwareSerial library for MIDI (by 47 effects), but it seems I get regularly corrupted/unexpected messages. The circuit I'm using works perfectly when I connect it with the ...
3
votes
1answer
4k views

Arduino clone CH340G (ATmega328P), MIDI over USB

I just bought my first Arduino compatible device, and I am greatly enjoying it. I finally could not resist the urge after going to an Arduino meetup, where someone showed me their Teensy connected to ...
3
votes
1answer
409 views

Way to use other baud rates in console or different input/output rates

I want to send some test codes to a MIDI synthesizer, so I wrote a program that lets me just type in hex codes on the serial monitor and send it over serial as the byte value. For example typing "90 ...
3
votes
0answers
843 views

Hiduino as a Serial-USB midi coverter

I have an Arduino Mega2560 configured to Hiduino, which makes the Arduino a driverless class-compliant MIDI interface. I am currently converting RS232 serial I/O data to midi data using the 'hairless ...
2
votes
3answers
3k views

How do I properly receive MIDI with Arduino, with 6n138?

UPDATE : I still can't receive MIDI as of 2019/07/01. Here goes so far : I'm trying to follow this schematics from instructables, using 6N138. To make it easier, I'm going to copy his schematics. =...
2
votes
1answer
5k views

USB MIDI HID with the ATmega32u4?

There are existing projects that allow the Uno and other devices using the ATmega8u2 to operate as a USB MIDI HID, such as MocoLUFA. Unfortunately, as far as I am aware, these require uploading new ...
2
votes
2answers
544 views

MIDI and DMX together

I am fully new to Arduino (even don't have one ... yet), however, I'm looking into possibilities to use both MIDI in/out and DMX together. If I understand correctly the MIDI library (re)uses the UART/...
2
votes
1answer
83 views

Question regarding using Arduino and MIDI

I'm using an Arduino Leonardo for sending MIDI In and Out messages to Ableton Live. Components include a Potentiometer, a Capacitive Touch Sensor, and a DC Motor, which I'm powering with a L298N Motor ...
2
votes
2answers
86 views

Assistance with PID DC Motor Acceleration

I'm working on a project that uses an Arduino UNO and a motorized fader to send and receive MIDI data from my computer/musical keyboard. I'm trying to set up my motor with PID to control the position ...
2
votes
1answer
72 views

how to convert the following code into one using direct port manipulation

Following is the program for scanning a keyboard for MIDI transfer. At present the code works fine, but it could be faster. I need to know how to use direct port manipulation inside the for loop. ...
2
votes
1answer
214 views

How to control a DSP-G1 programmatically/electronically?

I want to generate music/sounds for a video game I am making with my son (using an Arduino Mega and a 240x320 LCD graphical display). I have a basic understanding of the MIDI protocol. I've been a ...
2
votes
1answer
579 views

Using a MIDI connector both as MIDI In and Out (not simultaneously)

I asked this question also in Electrical Engineering (stack exchange), however on question is more appropriate on this board (question 5). For completeness, I kept all questions intact, but made ...
2
votes
1answer
178 views

Arduino Simon Says with Midi Controller

I altered code for the Simple Simon says to work with a Midi controller instead of push buttons. i am having trouble with the input of the song sequence with the Midi Controller. during the time where ...
2
votes
1answer
289 views

Is there a good Arduino enclosure for that works with the Olimex MIDI shield

I have a MIDI project I put together using an Arduino UNO R3 and the Olimex Shield-MIDI. I want to install the project permanently in my Guitar rack so I want a decent enclosure, but there doesn't ...
2
votes
1answer
789 views

MIDI controlled analog RGB LED strip (code problem)

I have a an Arduino Uno doing PWM on an RGB analog LED strip ala the Adafruit guide: https://learn.adafruit.com/rgb-led-strips?view=all. I've written a sketch that accepts MIDI data over USB and uses ...
2
votes
1answer
3k views

How to send a pitch bend MIDI message using arcore?

I'm new to MIDI and started playing with an Arduino Leonardo and arcore. Based on the example code, I can easily send noteOn/noteOff/controlChange messages, but I can't seem to send a pitch bend ...
2
votes
1answer
79 views

Converting live vocals to discrete signals

I would like to augment a live music performance by displaying an specific LED for any given musical note. For vocals: Rather than attempt to process the audio using the Arduino board, I'd like to ...
2
votes
0answers
238 views

How to pass input from a Midi controller to a function?

I am trying to pass the input[], data1(pitch) from a Midi controller to the waitForButton function. When a key is pressed it sends data1(pitch) into the array input[], and when the key is up the array ...
2
votes
0answers
71 views

Changing function to work with Midi controller instead of buttons

I am trying to change up this function to work with a midi controller instead of buttons most of the code for the function i will be using as is. it just the parts of the code the deal with button ...
2
votes
1answer
141 views

Matching the blink of an LED to midi music

I have a function that plays a song and lights an LED corresponding to the note that is being played. when the same note is played consecutively(i.e E in bar 6) instead of the LED turning on and off ...
2
votes
0answers
291 views

sending midi to software using arduino [closed]

Friends Here is what i want to ask. I have a midi keyboard that is casio cps7. Its an old model so its not a USB midi keyboard. I use it with a cheap midi to usb cable. I just wanted to use my ...
1
vote
2answers
669 views

Writing "theremin" outputs to a MIDI file on an SD card

I am making a musical instrument (theremin simulator). I want there to be a "record" capability which stores the volume and note the user is playing, into a MIDI file. Note this doesn't actually ...
1
vote
3answers
2k views

Interfacing an ATtiny85 with MIDI via Software Serial

In order to finish a synth project that I'm working on I built a MIDI interface. To test it, I drew up some code which (is supposed to) light up an LED when any key is pressed. The light turns off ...
1
vote
2answers
3k views

How to simulate delay() to debounce mechanical button using millis()?

Im trying to use the millis() function as a replacement for the delay() function in order to debounce a mechanical button. This is for an electric drum kit I am building. Im using a teensy Arduino to ...
1
vote
2answers
68 views

How do i get stored Midi to Play back without the notes sounding sustained?

How can i get my stored midi notes to play back without sounding sustained like in this video : https://youtu.be/zc1zbwheyE0?t=2m30s. Here is some of my code: // Callback function to for recording ...
1
vote
1answer
635 views

Midi controlled LED by USB [closed]

I am trying to create something that will allow me to control an individually adressable LED strip using an electric piano using its midi output. Some things to note: The piano can output midi ...
1
vote
1answer
760 views

ATtiny85 MIDI IN with less than 3V -can it be done? [closed]

I've been trying to add a MIDI INput to an ATtiny-based synthesizer, powered by a CR2032 battery (3v) and running softwareSerial. Currently I'm using an H11L1 optocoupler, which works fine at 5v, but ...
1
vote
1answer
498 views

Recording and storing Midi data with arduino and midi shield

i need help getting started on writing a sketch that would let me record and store midi data from a midi controller connected to a arduino mega through a midi shield. are there any functions in the ...
1
vote
1answer
471 views

Arduino MIDI Program Change to Voodoo Labs GCX Converter

To define the problem, the L6 Helix can generate 6 immediate MIDI messages. These messages are pretty flexible as to what you want, but the Voodoo Labs GCX needs at least 8 CC messages to properly ...
1
vote
1answer
118 views

PC not recognizing Arduino when working with a class and MIDIUSB library

I've recently bought an Arduo Due to create some sort of a Midi controller together with the MIDIUSB library. I have create a simple a test program with 1 potentiometer (without the use of a class) ...
1
vote
1answer
1k views

How do I send MIDI properly with ESP8266?

So, I've finally able to send and receive MIDI using Arduino. My next thing to do was sending 5 pin MIDI to rtpMIDI, and vice versa, using ESP8266, but so far I can't even send MIDI correctly. So ...
1
vote
1answer
1k views

ATtiny85 MIDI IN using SoftwareSerial - Is it possible?

I'm trying to read MIDI notes using an ATtiny85 via SoftwareSerial; so far, I've got no success at all. The ATtiny is using the internal clock, 8Mhz, 5V. The MIDI keyboard sends clean note on/off ...
1
vote
2answers
566 views

Building mocoLUFA under OSX & Linux

I am attempting to build mocoLUFA under OS X el Capitan 10.11.6. [Editor: mocoLUFA (MIDI firmware for Arduino Uno)] I am using the specified LUFA version (LUFA101122) and I have tried building with ...
1
vote
2answers
55 views

Midi Program not sending notes

I'm working on a midi device with a pro micro, it's reading as a midi device, but not outputting any notes, here's my program: const int button1 = 2; const int button2 = 3; const int ...
1
vote
1answer
584 views

MIDI output circuit behaving incorrectly when not connecting with USB

I recreated this circuit to send MIDI notes to my MIDI-USB adapter to my computer. It works fine when the Arduino is powered via USB. When I power the Arduino Nano with 9v on Vin however, the output ...
1
vote
2answers
1k views

Arduino Uno: Receive MIDI data from DAW

I basically want to have my Arduino accept MIDI data from my digital audio workstation, my choice is Ableton Live. I would then like it to check the received data and change the state of a digital pin ...
1
vote
1answer
502 views

47Effects MIDI Library and serial debugging

I noticed that since I use the MIDI library from 47effects, I cannot use the print(ln) for the serial port for debugging purposes, neither I can find it in the documentation. It states that the MIDI ...
1
vote
1answer
208 views

Easy way to upload sketches using MIDI (without RX pin removed)

I noticed when I use sketches with MIDI (using RX/TX), before uploading I have to remove every time the RX wire ... is there an easy way to prevent this? (I'm thinking about making a push button/...
1
vote
0answers
38 views

Question about MIDI library

I'm trying to replace this code with something that uses the Arduino MIDI library: #include <SoftwareSerial.h> #define rxPin 2 #define txPin 1 SoftwareSerial midiSerial (rxPin,txPin); void ...
1
vote
0answers
44 views

Motor response is lagging

I've got a DC motor connected to an Arduino Nano, L298N H-Bridge and a 12v Power supply. I'm trying to make it respond to incoming MIDI data a bit quicker. Right now, it seems awfully slow, and lags ...
1
vote
0answers
483 views

How to get the esp32s2 recognized as USB device?

I have an esp32-S2 saola and I am trying to use it as a MIDI usb device. I am trying to use this github repository: https://github.com/chegewara/EspTinyUSB. I am able to run the code on the esp32s2 ...
1
vote
2answers
156 views

MIDI Keyboard control

I am relatively new to Arduino and I am looking to implement a simple system that uses a MIDI keyboard to (i) detect key presses (via MIDI messages) from the keyboard (ii) store the information of ...
1
vote
0answers
174 views

Problem Writing/Reading EEPROM on MEGA

I want to make a program that writes on the EEPROM some structs, the final device will take structs of RGB LED data: typedef struct{ unsigned char r; unsigned char g; unsigned char b; } ...
1
vote
1answer
388 views

Arduino Mega Pins for SoftwareSerial (vs. AltSoftSerial)

I am currently looking at using an Arduino Mega to build a MIDI Receive box that will then pump the data over USB, but am having design issues/uncertainties with the Arduino's receiving end. I am ...
1
vote
1answer
895 views

Unable to add multiple potentiometer in Midi controller

I am building a simple arduino based midi controller to send cc midi messages. However I am able to send messages only through A0 (analog input).. Any help on this will be appreciated,.. #include ...
1
vote
2answers
183 views

Is an atmega 2560 board compatible with the Adafruit Trellis?

I want to build a custom midi controller for my computer, and yes, Adafruit has a mini Untz project. For my purposes, I need more analog inputs than the Leonardo, and the only other option I can find ...
0
votes
1answer
2k views

exit status 1 - expected primary-expression before '(' token

When I try to compile the following sketch, the compiler returns the error "exit status 1 - expected primary-expression before '(' token", and highlights "midi();" in my code. Here is my sketch: #...
0
votes
1answer
358 views

How to debug MIDI input?

I'm trying to receive MIDI messages on a Leonardo. To do that I used the circuit in the diagram below (only the top half for receiving). The only thing I did differently was using an 1N4148 diode ...