What's the deal with Deno? We talk with a major contributor to find out. Listen now.

Questions tagged [midi]

Musical Instrument Digital Interface.

Filter by
Sorted by
Tagged with
1
vote
1answer
45 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
1answer
33 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
1answer
29 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
1answer
78 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
1answer
124 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
2answers
87 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
1answer
77 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) ...
0
votes
0answers
39 views

Leonardo doesn't have enough memory to run a TFT and handle MIDI messages

So, I got a Leonardo because I plan to build a device to draw MIDI CC curves on a touchscreen TFT to be sent over MIDI to a DAW. I'm in the initial testing stage, and got a basic Paint application to ...
-1
votes
1answer
72 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 ...
0
votes
1answer
69 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
0answers
122 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
1answer
123 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
1answer
790 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
0answers
109 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
2answers
75 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
1answer
282 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, ...
0
votes
1answer
568 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
1answer
681 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
1answer
370 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
1answer
100 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
3answers
1k 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
1answer
470 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
2answers
513 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
1answer
249 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
2answers
480 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
2answers
150 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
1answer
192 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
1answer
238 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
1answer
523 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
844 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
1answer
182 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
2answers
457 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
2answers
163 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
2answers
47 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 ...
0
votes
1answer
642 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
1answer
438 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
1answer
493 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 ...
0
votes
1answer
86 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 ...
5
votes
1answer
2k 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
498 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
2answers
899 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 ...
0
votes
1answer
28 views

How to logically tell than an UNO is being, or about to be programmed

I have an MIDI application that uses the RX and TX serial interface. When I program the UNO there is a collision between the on board programmer and the MIDI application RX serial port. The MIDI ...
1
vote
0answers
203 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
1answer
166 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 ...
1
vote
0answers
69 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 ...
1
vote
2answers
63 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 ...
0
votes
0answers
39 views

Not hearing PlayBack from code that records and plays back MIDI

I have altered some code that i found online that records and playback midi data from a midi controller. from my testing i am pretty sure that notes are being recorded from my midi controller, i have ...
1
vote
1answer
426 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 ...
2
votes
1answer
121 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 ...
0
votes
0answers
408 views

How to play Midi from the Sparkfun Mp3 Player Shield?

in the video: https://www.youtube.com/watch?v=zc1zbwheyE0 I suspect they may be using the midi playback functionality of the chip (VS1053b) on the Mp3 shield. how do you playback Midi from the mp3 ...