Right, so as a long time analogue musician I've only been getting into Ableton etc for a couple of months. Been starting to think about how to perform it all live as I remembered you can just map scene controls to MIDI notes. But how would I hack a custom sceneswitcher with the odd CC control for filters etc? Turns out 30 secs of googling brought me here and this is the *perfect* video. To the point but clear on the details where it mattered. Fantastic and thanks very much x
Thanks so much for this! I have an iPhone with the USB-C port: do you happen to know if I still need the camera connect kit for this to work on my phone?
On my iPad with USB-C it doesn't require the camera connect kit, but you do need power going to the Arduino/MIDI Controller. I have a USB power bank that I plug my MIDI Controllers into, and I plug the power bank into my iPad's USB-C port. There might be a way to plug it in directly, but I'm not certain.
GREAT! Just what I wanted. I am going to have to watch this video many times to see all components and connection needed. On thing I wonder is how you change instrument sounds.
hi bro, great channel, does this tutorial can be used for M1 macbook cos my device is not detecting the arduino leonardo midi controller what i used on ableton in my windows pc. thanks ...
It should work. I'm using an M1 Mac. If you open GarageBand, go to Settings > Audio/MIDI you should see if the MIDI input is detected. I guess make sure both libraries are added in the Arduino IDE, Make sure you have the correct board and port selected in the IDE. It looks like my port is set to /dev/cu.usbmodemMIDI1 (Arduino Leopnardo) and Programmer is set to AVRISP mkII. I'm not sure I took any additional steps to have the device detected as MIDI vs just a usb device. Also try restarting your computer, that sometimes solves seemingly unrelated issues. This tutorial might be a good one to cross reference: www.instructables.com/Building-an-Arduino-MIDI-Controller/ Good luck and let me know how it goes!
@@mobypixel thanks a lot bro, I was doing exactly the same, it works. I used an arduino pro micro, to test it and 3 potentiometers using GarageBand and also Logic Pro is running fine, but it’s Xmas and my wife will kill me if I’m continues in the computer xd, Merry Xmas for u too and thanks for replay my questions. Regards of a Cuban from Poland
Thanks for the video! I'm trying to build a velocity sensitive MIDI marimba with 32 piezo inputs, I'm gonna need all the info I can get. Do I need a different arduino for that or can you connect several Leonardos to get the desired amount of inputs?
@@mobypixel Judging by the cigar box controller you made (very cool btw), putting 32 keys on the Mega with a few multiplexers shouldn't be an issue, can't wait for the parts to arrive so I can start building it
Nice video man! Idk how I get here, I was playing epic orchestra and asking me, who made this beautiful game? But after a few clicks I am here! Thanks for making epic orchestra and the other beautiful games!
@@artinthecity3508 No, unfortunately I have not worked with MIDI on Android. It looks like it would be similar only you would need a powered usb hub to provide power to the microcontroller.
I'm using Apple's camera connect kit that has an external lightning power line. That is what is powering the Arduino while keeping the iPhone charged. On newer iPads with USB-C you can use a USB power bank to send multiple USB devices to the iPad while powering them. So yes, you will need some external power supply for the Arduino. The iPhone's connecter won't send that voltage to your board.
@@eross21 That is correct. The Arduino is sending MIDI and getting power from the same Micro USB cable. The USB cable from the Arduino goes into the camera connect kit along with power from a lightning cable, and that plugs into the iPhone.
Awesome! For multiple buttons you would just duplicate that method, change the name to button2, and change the PIN number to the one you are using. I did another tutorial that kind of goes over the next steps for making it into a midi controller. ua-cam.com/video/K0cbeFYHCZ8/v-deo.html good luck with your project!
Here are a few things to try: 1) Make sure the usb type is MIDI or Serial+MIDI. 2) Open the Audio MIDI setup app on your Mac to see if it is connected but disabled. 3) If you are getting compiler errors you might need to install the MIDIUSB library linked in the description. 4) Restart your Mac. I've had MIDI input mysteriously stop working and work again after a restart. Good luck and let me know how it goes!
Thanks for the heads up! I'll add a note in the description. There are steps for getting it installed and imported in the Control Surface page. tttapa.github.io/Control-Surface-doc/Doxygen/d8/da8/md_pages_Installation.html
For multiple buttons you would just duplicate that method, change the name to button2, and change the PIN number to the one you are using. I did another tutorial that kind of goes over the next steps for making it into a midi controller. ua-cam.com/video/K0cbeFYHCZ8/v-deo.html good luck with your project!
@@cristi6257 If you are creating an application that generates sound, you could wire in an audio jack and ran a cable to an amp, headphones, or audio interface. If you are making a MIDI controller it won't produce sound. It just controls the virtual instruments of the application you are using it with. Depending on the micro controller you use some of them also support audio over USB.
@@mobypixel I want to make a laser harp, I use arduino leonardo, the idea behind it is that I have a laser diode and a photoresistor and the moment the laser wave no longer reaches the photoresistor I want it to make a sound and I would like to use some speakers to make the sound
Hi .. Brother plz help me out ....with simple arduino Uno usb midi project. ...... im. Not getting any Signal on ipad Basically i want to use arduino usb midi with ipad Any Suggestion ???? Waiting for ur rply
The Uno has some additional configuration steps using the ATmega16U2: tttapa.github.io/Control-Surface-doc/Doxygen/d8/d4a/md_pages_MIDI-over-USB.html In the conclusion section, they mention that the Teensy or Arduino Leonardo/Micro might be a better fit.
Hi Great simple tutorial. HOw much would be inolved to take this to piezo trigger to get midi velocity? I want to make a crude midi foot pedal that controls my bass drum note (#40 in my case on Ch 10). I was hoping to use my existing UNO board based on this video - ua-cam.com/video/CYx8DgdKl64/v-deo.html Thank you !
I think Arduino has some code examples for reading a piezo like that. You would just need to play the MIDI note from the Update loop and account for the bounce in values to keep the trigger from reading multiple hits simultaneously. Good luck with your project!
Right, so as a long time analogue musician I've only been getting into Ableton etc for a couple of months. Been starting to think about how to perform it all live as I remembered you can just map scene controls to MIDI notes. But how would I hack a custom sceneswitcher with the odd CC control for filters etc?
Turns out 30 secs of googling brought me here and this is the *perfect* video. To the point but clear on the details where it mattered. Fantastic and thanks very much x
Awesome! I'm glad it helped!
Very clearly explained and helped me get unstuck. Thanks!
Thanks, Tom! Good luck with your projects.
Easy Clear and Complette. THX (from France)
Thanks, @cani77!
Thanks so much for this! I have an iPhone with the USB-C port: do you happen to know if I still need the camera connect kit for this to work on my phone?
On my iPad with USB-C it doesn't require the camera connect kit, but you do need power going to the Arduino/MIDI Controller. I have a USB power bank that I plug my MIDI Controllers into, and I plug the power bank into my iPad's USB-C port. There might be a way to plug it in directly, but I'm not certain.
GREAT! Just what I wanted. I am going to have to watch this video many times to see all components and connection needed. On thing I wonder is how you change instrument sounds.
Thanks for checking out the video! To change instruments I use the iOS app's UI but I think other controllers may use a MIDI Program Change message.
hi bro, great channel, does this tutorial can be used for M1 macbook cos my device is not detecting the arduino leonardo midi controller what i used on ableton in my windows pc. thanks ...
It should work. I'm using an M1 Mac. If you open GarageBand, go to Settings > Audio/MIDI you should see if the MIDI input is detected. I guess make sure both libraries are added in the Arduino IDE, Make sure you have the correct board and port selected in the IDE. It looks like my port is set to /dev/cu.usbmodemMIDI1 (Arduino Leopnardo) and Programmer is set to AVRISP mkII. I'm not sure I took any additional steps to have the device detected as MIDI vs just a usb device. Also try restarting your computer, that sometimes solves seemingly unrelated issues. This tutorial might be a good one to cross reference: www.instructables.com/Building-an-Arduino-MIDI-Controller/ Good luck and let me know how it goes!
@@mobypixel thanks a lot bro, I was doing exactly the same, it works. I used an arduino pro micro, to test it and 3 potentiometers using GarageBand and also Logic Pro is running fine, but it’s Xmas and my wife will kill me if I’m continues in the computer xd, Merry Xmas for u too and thanks for replay my questions. Regards of a Cuban from Poland
Thanks for the video! I'm trying to build a velocity sensitive MIDI marimba with 32 piezo inputs, I'm gonna need all the info I can get. Do I need a different arduino for that or can you connect several Leonardos to get the desired amount of inputs?
I think you might be able to use one Arduino, but you'll need to look into multiplexers for expanding your analog inputs.
The Teensy boards might be a good option too. I think the Teensy 4.1 has 18 analog inputs.
@@mobypixel Judging by the cigar box controller you made (very cool btw), putting 32 keys on the Mega with a few multiplexers shouldn't be an issue, can't wait for the parts to arrive so I can start building it
Awesome! Thank you so much, Imma build one
Sweet! Good luck with your project.
Nice video man! Idk how I get here, I was playing epic orchestra and asking me, who made this beautiful game? But after a few clicks I am here! Thanks for making epic orchestra and the other beautiful games!
That's awesome! Thanks for checking out the games and videos!
Thanks always. BTW do you have this for Android?
@@artinthecity3508 No, unfortunately I have not worked with MIDI on Android. It looks like it would be similar only you would need a powered usb hub to provide power to the microcontroller.
can this be powered by the usb iphone connector? or do you always need to run power supply to the leonardo board?
I'm using Apple's camera connect kit that has an external lightning power line. That is what is powering the Arduino while keeping the iPhone charged. On newer iPads with USB-C you can use a USB power bank to send multiple USB devices to the iPad while powering them. So yes, you will need some external power supply for the Arduino. The iPhone's connecter won't send that voltage to your board.
@@mobypixel oh, so it gets power from the usb adapter? you don’t have to plug a do power supply into the onboard power jack?
@@eross21 That is correct. The Arduino is sending MIDI and getting power from the same Micro USB cable. The USB cable from the Arduino goes into the camera connect kit along with power from a lightning cable, and that plugs into the iPhone.
@@mobypixel oh perfect ! thanks so much
great video. It's definitely got me working towards my goal. My question is: How do I add multiple buttons in the code? thanks
Awesome! For multiple buttons you would just duplicate that method, change the name to button2, and change the PIN number to the one you are using. I did another tutorial that kind of goes over the next steps for making it into a midi controller. ua-cam.com/video/K0cbeFYHCZ8/v-deo.html good luck with your project!
My Mac doesn't recognize my Leonardo as a MIDI device? I've tried serial to midi but all of the apps that support Mac OS are outdated.
Here are a few things to try: 1) Make sure the usb type is MIDI or Serial+MIDI. 2) Open the Audio MIDI setup app on your Mac to see if it is connected but disabled. 3) If you are getting compiler errors you might need to install the MIDIUSB library linked in the description. 4) Restart your Mac. I've had MIDI input mysteriously stop working and work again after a restart. Good luck and let me know how it goes!
Thanks for sharing :)
great project bro 💯 i made for virtual dj and work perfectly
Awesome! I'm glad it worked out!
Good, but you dont explain how to get to the midi library from the arduino app
Thanks for the heads up! I'll add a note in the description. There are steps for getting it installed and imported in the Control Surface page. tttapa.github.io/Control-Surface-doc/Doxygen/d8/da8/md_pages_Installation.html
how can i add additional buttons with different tunes ?
For multiple buttons you would just duplicate that method, change the name to button2, and change the PIN number to the one you are using. I did another tutorial that kind of goes over the next steps for making it into a midi controller. ua-cam.com/video/K0cbeFYHCZ8/v-deo.html good luck with your project!
where does the sound come frome? do you use a buzzer or a speaker?
i want to make a laser harp and i have problems with making the sound
The sound is coming from the iPhone. I made a screen recording on the device and used that audio for the video.
@@cristi6257 If you are creating an application that generates sound, you could wire in an audio jack and ran a cable to an amp, headphones, or audio interface. If you are making a MIDI controller it won't produce sound. It just controls the virtual instruments of the application you are using it with. Depending on the micro controller you use some of them also support audio over USB.
@@mobypixel do u have any idea how i con do this with some speakers?(jack plug)
@@mobypixel I want to make a laser harp, I use arduino leonardo, the idea behind it is that I have a laser diode and a photoresistor and the moment the laser wave no longer reaches the photoresistor I want it to make a sound and I would like to use some speakers to make the sound
😁 splendid tutorial thanks
Awesome! Thanks for watching, Joel!
Hi .. Brother plz help me out ....with simple arduino Uno usb midi project. ...... im. Not getting any Signal on ipad Basically i want to use arduino usb midi with ipad
Any Suggestion ???? Waiting for ur rply
The Uno has some additional configuration steps using the ATmega16U2: tttapa.github.io/Control-Surface-doc/Doxygen/d8/d4a/md_pages_MIDI-over-USB.html In the conclusion section, they mention that the Teensy or Arduino Leonardo/Micro might be a better fit.
Wow!
Does this work with the arduino nano ?
I've not used the Nano, but it is listed on Control Surface's supported boards. I think it would work!
Getting error:
Compilation error: 'cs::USBMIDI_Interface midi' redeclared as different kind of symbol
Change the variable name from "midi" to anything else that is not reserved.
@@ShivrajKarkera91 Did that solve it? It sounded like maybe the library was included twice.
@@mobypixel Yes that instantly solved the problem. Thanks for the awesome video. Your explanations are very interesting.
its work on windows pc?
Sorry for the delay. Yes, it should work on PC but you can check the Control Surface GitHub to make sure.
@@mobypixel no problem, thx for answer
So I can control my ac of my car by wiring and connect it to my iPad or iPhone ?
Hi Great simple tutorial. HOw much would be inolved to take this to piezo trigger to get midi velocity? I want to make a crude midi foot pedal that controls my bass drum note (#40 in my case on Ch 10). I was hoping to use my existing UNO board based on this video - ua-cam.com/video/CYx8DgdKl64/v-deo.html Thank you !
I think Arduino has some code examples for reading a piezo like that. You would just need to play the MIDI note from the Update loop and account for the bounce in values to keep the trigger from reading multiple hits simultaneously. Good luck with your project!
@@mobypixel Cheers.