Questions tagged [midi]
Musical Instrument Digital Interface.
79
questions
-2
votes
0
answers
66
views
Looking for best methods of remaking the code without changing its functionality, but reducing the code amount by ~10 times [closed]
Can anybody help me with examples of code with matrix? or:
How is the approach to optimize code relative to my example with using "switch case" to "arrays"? Without changing its ...
1
vote
0
answers
52
views
Arduino Nano not receiving MIDI messages
so I am currently creating a MIDI to CV module and am still having trouble with my MIDI input circuit. I am following this circuit as my guideline and am sending MIDI messages via MIDI interface with ...
1
vote
0
answers
29
views
Arduino Nano not recieving MIDI Message
I'm building an MIDI to CV converter using an Arduino nano along with a MIDI input circuit, however, when uploading the code and connecting the MIDI to a laptop via USB, the Arduino doesn't recognize ...
0
votes
1
answer
301
views
Arduino Zero not recognised as MIDI device via native USB port
I'm currently trying to get an Arduino Zero to show up as a native USB MIDI device in my DAW (ableton). No matter what I try, I cannot get it to show up as a device in Ableton. I have previously used ...
2
votes
1
answer
142
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 ...
1
vote
0
answers
84
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 ...
2
votes
2
answers
326
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 ...
1
vote
0
answers
62
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
0
answers
1k
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 ...
0
votes
1
answer
2k
views
ESP32 USB HID/MIDI library (not the BLE one)
I couldn't find any library to use an "old" ESP32 (not the new ESP32-S2) as an HID connected physicaly to the Usb port (not over BLE pairing) to send keystrokes to the PC ...
Is there any solution? ...
2
votes
1
answer
124
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.
...
0
votes
1
answer
99
views
Teensy 2.0 MIDI: Number of notes in a chord limited to 6?
I am using the Teensy 2.0 with USBMidi in a project that allows musicians to use retro computers as "instruments" (https://github.com/fredlcore/midijoy). So far, all these computers had no more than ...
0
votes
1
answer
259
views
C3 not declared in this scope when running MIDI example code
I'm trying to run the MIDI example from Arduino.CC in Arduino Studio.
I am using an Arduino Leonardo, which has USB HID capabilities. I have installed the library as mentioned:
When I press the ...
0
votes
1
answer
720
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 ...
0
votes
1
answer
903
views
Sending MIDI CC to multiple midi Channel
Hi so i would like to send CC messages to different MIDI Channel (volume control). The CC messages are coming from one knob.
The solution i found kind of work but i'm pretty sure is not ideal and ...
1
vote
2
answers
196
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
1
answer
144
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
votes
1
answer
122
views
Dotstar strip goes nuts when connected to MIDI piano
I've got a Dotstar strip, a piano, and an UNO(w a usb host shield).
I can get and properly translate data from the piano to the UNO, so I'm definitely getting the right information to the board. When ...
-1
votes
1
answer
324
views
Using the MIDI library in my own library
Error message :
"error: invalid declarator before 'MIDI'
MIDI_CREATE_INSTANCE(HardwareSerial, Serial1, MIDI);
^
Plusieurs bibliothèque ...
0
votes
0
answers
350
views
How to read from multiple multiplexers (CD74HC4067) with a library
I need to read alot of buttons and analog inputs for my project (60 buttons 15 faders) and there fore need to use multiplexers. But most mux libraries seems to only support one mux, am i wrong?
-1
votes
1
answer
287
views
Does DmxSerial stops interrupts?
I am trying to build a setup with an Arduino Mega, having a DMX output (using DMXSimple library), and a MIDI library (to be done).
I was wondering, if I get into problems. According to This question, ...
1
vote
1
answer
2k
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
0
answers
199
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;
} ...
0
votes
2
answers
134
views
How to get more than the 16 Analog INs on a Arduino Mega for using like 24 piezo sensors
i bought an Arduino Mega2560 and flashed it with usbmidi. So now it comes up as a midi device.
I need more than those 16 analog ins to be able to put all my 24 piezo sensors into it to receive midi ...
-1
votes
1
answer
638
views
How to upload and store settings/variables from computer on the arduino? [closed]
I'm literally as green of a noob as I can be at this moment. Been watching a ton of tuts as I plan my project, but can't seem to find anything about settings being uploaded from an external source, ...
-1
votes
1
answer
1k
views
MIDI keyboard controlled LED strip
My objective is to light a led on a strip corresponding to a keyboard note.
I have Arduino Uno with MIDI in module hooked up to a serial port. Piano is hooked with a standart midi cable, Led Strip is ...
0
votes
1
answer
3k
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:
#...
-1
votes
1
answer
695
views
Arduino Nano Midi to cv convertor interesting issue
I created the circuit in this schematic on protoboard,
and the code,
https://github.com/elkayem/midi2cv
I use a dual opamp and a single dac, because i only need note and velocity.
The opto i use is, ...
-1
votes
1
answer
120
views
State change detection with a colour sensor
I have added static variables to this code and instead of getting repeated notes whilst dwelling on green, I get a single note instead. This is what I wanted. However, my loop isn't allowing for a new ...
2
votes
4
answers
6k
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.
=...
1
vote
1
answer
700
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 ...
0
votes
2
answers
898
views
Using Teensy 3.5 (Arduino) to produce USB and Hardware MIDI messages simultaneously. Help?
Currently trying to get a teensy 3.5 to spam a series of notes in a loop over USB and hardware serial, which I am pretty sure it can do.
I have a MIDI circuit set up as per the specifications here:
...
1
vote
1
answer
476
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
2
answers
825
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
1
answer
203
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 ...
2
votes
1
answer
230
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 ...
0
votes
1
answer
368
views
Unexpected value change of 2nd Potentiometer
I'm trying to connect 2 potentiometer (10k) and pass their value to Hairless Midi software (For Serial to Midi Bridge) the first pot is working fine but the second pot's value keep on changing and ...
1
vote
1
answer
909
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
1
answer
2k
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 ...
0
votes
1
answer
230
views
Atmega328p screen + midi, possible?
I'm trying to build this Midi2CV (control voltage for analog synths) using a Arduino Nano:
https://photos.app.goo.gl/3IhhFL3PrLELLODB3
I was hoping to use this Nokia screen too for settings and ...
1
vote
2
answers
920
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 ...
0
votes
2
answers
274
views
Midi Timecode Fails to Send
I have an ATMEGA 2560 platform running HIDUINO and a sketch based on the stock MIDI library. I'm intending to use it to convert Linear Timecode (LTC) to MTC. Got a long way through the project - LTC ...
1
vote
2
answers
67
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
votes
1
answer
939
views
How to store/get MIDI SystemExclusive data?
In the MIDI library from the Arduino (FourtySeven MIDI library), there exist a function to get the length and bytes of a System Exclusive message:
Functions
getSysExArray()
template<class ...
0
votes
1
answer
749
views
MIDIUSB - Why is the command put twice?
Consider this function:
void noteOn(uint8_t pitch) {
midiEventPacket_t noteOn = {0x09, 0x90 | 9, pitch, 127};
MidiUSB.sendMIDI(noteOn);
}
midiEventPacket_t is defined as:
typedef struct
{
...
1
vote
1
answer
688
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
votes
1
answer
151
views
Which connection should I use (preferably wireless)?
For a (for now MIDI only) project I was planning to use multiple Arduinos and send messages around.
However, for the latency, I can have max 10ms (to prevent audible delay).
I hoped to use WIFI ...
4
votes
1
answer
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 ...
2
votes
1
answer
653
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 ...
1
vote
2
answers
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 ...