Skip to main content
5 votes
Accepted

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

The short answer would be "yes, it is possible". There are lots of gadgets around that record MIDI. They would have microprocessors in them, and they would have something like an SD card, ...
Nick Gammon's user avatar
  • 38.4k
3 votes

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

Yes, read the MIDI file format specification. Create a single track midi file and append just note press / release commands / pitch or volume changes and delta times (reverse conversion of delta times ...
gabonator's user avatar
  • 371
3 votes

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

Most start at the midi site at playground.arduino.cc. But there are numerous web sites across the Internet. It is important to understand that the MIDI interface uses a current loop to send and ...
st2000's user avatar
  • 7,340
3 votes

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

There are plenty of MIDI circuits and most of them are quite simple, mostly an optocoupler (6N137 or 6N138, although I had better luck with H11L1), some resistors and that's mostly it. I also added ...
Michel Keijzers's user avatar
3 votes

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

You have tried to define void midi() {...} inside the loop() function. But you cannot nest function definitions. Your definition (implementation) of midi() should be outside any other function. Like ...
jose can u c's user avatar
  • 6,974
3 votes

How to detect when a key is played on a musical keyboard

There is absolutely no way you can "detect a voltage change" in a USB signal to tell you whether or not a key is being pressed. The USB protocol is quite complex, see USB communications. ...
Nick Gammon's user avatar
  • 38.4k
2 votes
Accepted

Arduino MIDI Program Change to Voodoo Labs GCX Converter

To solve this problem I used an Arduino UNO and a Olimex MIDI shield. I also want to use MIDI PC messages and Bank Selects. For reference: A Channel 16 PC 77 with Bank select 0 converts to binary ...
Rich Maes's user avatar
  • 243
2 votes
Accepted

Using two MIDI inputs with Arduino UNO (with one serial)

Use a Mega. SoftwareSerial is shaky at best and cripples everything else while it runs, and there really is no substitute for real hardware UARTs. Alternatively look around and see if you can find a ...
Majenko's user avatar
  • 105k
2 votes

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

You need to store and send out the 'note off' messages in addition to the 'note on' messages.
Mazaryk's user avatar
  • 1,149
2 votes

Recording and storing Midi data with arduino and midi shield

The Arduino MIDI Library allows you to read and write MIDI messages, but only in real time. Storing MIDI data makes sense only with timestamps, so you have to call millis() or micros() when you ...
CL.'s user avatar
  • 401
2 votes
Accepted

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

Your proposed solution is the normal method. A GPIO pin which is an "Activate Device" signal. It's pulled in one direction, the "inactive" direction, and you actively drive it in the other "active" ...
Majenko's user avatar
  • 105k
2 votes
Accepted

SoftwareSerial too slow for MIDI?

The problem with SoftwareSerial is that while it is receiving a packet the Arduino is unable to do anything else - that includes reading bytes from the RX buffer, so it will easily overflow if you ...
Majenko's user avatar
  • 105k
2 votes
Accepted

MIDIUSB - Why is the command put twice?

From the specs: The first byte in each 32-bit USB-MIDI Event Packet is a Packet Header contains a Cable Number (4 bits) followed by a Code Index Number (4 bits). [...] [...] The Cable ...
Ignacio Vazquez-Abrams's user avatar
2 votes

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

The H11L1's minimum supply voltage is 3 V. There are low-power optocouplers like the TLP2361, but event those do not go below 2.7 V. (And those limits are actually designed for 3.3 V&...
CL.'s user avatar
  • 401
2 votes

Midi Timecode Fails to Send

If you clone my fork of the code, I have got this working. https://github.com/mwr9uk/mocolufa I have generated a pull request to merge it with mainline.
Matthew Rowe's user avatar
2 votes

Arduino clone CH340G (ATmega328P), MIDI over USB

V-USB bit bangs some GPIO pins so that they speak the low-speed USB protocol. This does not use the 'normal' USB connection through the CH340; you would have to solder a separate USB cable to those ...
CL.'s user avatar
  • 401
2 votes

Midi controlled LED by USB

I did some time ago something very similar, except not using USB, and on an STM32 (Arduino compatible STM32F103C8T6), but the principle is similar. Regarding another MIDI test I did on an Arduino, I ...
Michel Keijzers's user avatar
2 votes
Accepted

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

How to connect 6N138 to Arduino : Schematics : Basically the above schematics and installation is already okay, but instead of 1k, I used 10k on 6N138 PIN 7 to GND. VCC to 470 ohm is on PIN 6, also ...
Rinaldo Jonathan's user avatar
2 votes
Accepted

State change detection with a colour sensor

Because the MIDI library for Arduino does not keep track of which notes are on or off, you will have to do that yourself. Add a static variable called noteOn that will hold a 0 or a 1, keeping track ...
jose can u c's user avatar
  • 6,974
2 votes
Accepted

How to debug MIDI input?

The solution: On the image is stated plugs are solder-side. So swapping pin 2/3 does the trick
Codebreaker007's user avatar
2 votes

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

It is better to use interrupts instead of pooling pins. but this is related to your arduino controller. what is you arduino core controller? if you can select I prefer "Nano 33 IoT " which ...
Saeed Mirshams's user avatar
1 vote

Unexpected value change of 2nd Potentiometer

As I was having chat with @Maxmilian Gerhardt he suggested to check the voltage of pot 2 so when I checked I was getting 0 volt So he Suggested me there may be a loose connection or something with the ...
ronaldo's user avatar
  • 11
1 vote

Midi Program not sending notes

You are handling your buttons in completely the wrong way. You are basically saying: While I press this button send a constant stream of NOTE ON commands. Otherwise send a constant stream of NOTE ...
Majenko's user avatar
  • 105k
1 vote
Accepted

How to store/get MIDI SystemExclusive data?

This library tries to make its programming interface as simple as possible, which means that SysEx messages are put completely into a buffer in the internal memory, which means that larger messages ...
CL.'s user avatar
  • 401
1 vote

ATtiny85 MIDI IN using SoftwareSerial - Is it possible?

I have done tests with a normal Arduino with software serial and missed quite a bit of messages, so I would advice to use hardware serial's instead. For MIDI Out probably it works, but for MIDI In I ...
Michel Keijzers's user avatar
1 vote
Accepted

Atmega328p screen + midi, possible?

Of your three functions (DAC, screen and MIDI) only one (MIDI) actually uses UART. The other two devices are SPI devices which, while it is a serial protocol isn't UART (serial is a concept not a ...
Majenko's user avatar
  • 105k
1 vote

Building mocoLUFA under OSX & Linux

This is Franco, from Yaeltex, the guys who put up that site for custom MocoLUFA compiling. Our site works on an Ubuntu server, and the build environment can be seen at the bottom of the site, which ...
user2991509's user avatar
1 vote

MIDI output circuit behaving incorrectly when not connecting with USB

If you are connecting multiple devices then they have to share a common ground. I only know about British mains sockets, they all have an earth pin connecting to a common ground, so usually you are ...
Code Gorilla's user avatar
  • 5,637
1 vote
Accepted

Which connection should I use (preferably wireless)?

I would either use the ESP8266 as a standalone device and directly program it to work with UDP datagrams or a permanently established TCP socket, or the nRF24L01+. Of the two I would most likely use ...
Majenko's user avatar
  • 105k
1 vote
Accepted

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

I suggest you have a look at the 4051 or 4052 chip (datasheet). The 4051 is a 1:8 analog multiplexer while the 4052 contains two 4:1 multiplexers. So basically it allows you to switch one pin on your ...
travelboy's user avatar
  • 138

Only top scored, non community-wiki answers of a minimum length are eligible