Arduino MIDI Controller: Part 2 - Buttons

Поделиться
HTML-код
  • Опубликовано: 30 сен 2024
  • Build a MIDI Controller with your Arduino. In this video we will focus on Push Buttons.
    Visit Notes and Volts for full Parts List and Software Download www.notesandvol...
    Like my videos? Please consider supporting Notes and Volts on Patreon / notesandvolts

Комментарии • 273

  • @daddydanny5588
    @daddydanny5588 4 года назад +1

    great vid .. but i don't get the need of using midi 5 pins jack ... theres already usb port in the arduino itself ... Can we make midi controller using the usb port ..

  • @Arclocki
    @Arclocki 4 года назад +3

    Hello, thanks for these tutorials!
    I've come so far, but this doesn't work for me. So, I tried Hairless MIDI, and every time I pressed a button, it said:
    "Warning: got a status byte when we were expecting 1 more data bytes, sending possibly incomplete MIDI message 0xc0"
    Any ideas?

  • @ctpctp
    @ctpctp 4 месяца назад +1

    OMG FINALLY!!!!! I knew it had to be this easy, but I keep running into vids and tutorials that pile on the complexity. This is EXACTLY what I need to build a set of bass pedals for my Hammond XK-3. I love that I can just set the pin number, command, note, channel, and debounce IN ONE PLACE :-O I owe you a beer...or a coffee...or even a steak...whatever you want :-)

  • @yetonlock2596
    @yetonlock2596 7 лет назад +2

    Hello, very interesting video. Thx for share. I've a question. If I want to send a group of midi note.
    For exemple, if i press button1 and i want to send a C3maj chord, composed of a those 3 notes : C3 - E3 -G3.
    How could i programme it ?

  • @carlospat6420
    @carlospat6420 4 года назад +3

    Thanks a million for your work. Thanks you, Now I have my own homemade Arduino foot pedal keyboard!

  • @johnnymg893
    @johnnymg893 7 лет назад +3

    Please a tutorial about midi-usb and capacitive sensors instead of buttons, with midi. Sería de mucha ayuda! And thanks so much for all your tutorials, they're great and well explained!

  • @azmanahmad2820
    @azmanahmad2820 6 лет назад +4

    Hi Dave if out there...love to ask if you could include coding for LED indicators for each buttons push On and push again Off...i tried to hack it but i failed...Thanks in advance

    • @slaamri
      @slaamri Год назад +1

      Hello Azman Ahmad. Did you managed to add coding for LED indicators, as you wanted?

    • @azmanahmad2820
      @azmanahmad2820 Год назад

      @@slaamri yes i did get it... Do you want a copy of it?

    • @slaamri
      @slaamri Год назад

      @@azmanahmad2820 Great! I'd like to have it! Thanks!

    • @azmanahmad2820
      @azmanahmad2820 Год назад +1

      @@slaamri #include
      MIDI_CREATE_DEFAULT_INSTANCE();
      const int relay_1 = 12;
      const int relay_2 = 11;
      const int relay_3 = 10;
      const int mswitch_1 = 8;
      const int mswitch_2 = 7;
      const int mswitch_3 = 6;
      int toggleState_1 = 0;
      int toggleState_2 = 0;
      int toggleState_3 = 0;
      void setup() {
      MIDI.begin(MIDI_CHANNEL_OFF);
      Serial.begin(31250);
      pinMode(relay_1, OUTPUT);
      pinMode(relay_2, OUTPUT);
      pinMode(relay_3, OUTPUT);

      pinMode(mswitch_1, INPUT_PULLUP);
      pinMode(mswitch_2, INPUT_PULLUP);
      pinMode(mswitch_3, INPUT_PULLUP);
      }
      void relayOnOff(int relay){
      switch(relay){
      case 1:
      if(toggleState_1 == 0){
      MIDI.sendControlChange(16, 127, 1);
      digitalWrite(relay_1, HIGH); // turn on relay 1
      toggleState_1 = 1;
      }
      else{
      MIDI.sendControlChange(16, 0, 1);
      digitalWrite(relay_1, LOW);// turn off relay 1
      toggleState_1 = 0;
      }
      delay(100);
      break;
      case 2:
      if(toggleState_2 == 0){
      MIDI.sendControlChange(15, 127, 1);
      digitalWrite(relay_2, HIGH); // turn on relay 2
      toggleState_2 = 1;
      }
      else{
      MIDI.sendControlChange(15, 0, 1);
      digitalWrite(relay_2, LOW); // turn off relay 2
      toggleState_2 = 0;
      }
      delay(100);
      break;
      case 3:
      if(toggleState_3 == 0){
      MIDI.sendControlChange(10, 127, 1);
      digitalWrite(relay_3, HIGH); // turn on relay 3
      toggleState_3 = 1;
      }
      else{
      MIDI.sendControlChange(10, 0, 1);
      digitalWrite(relay_3, LOW); // turn off relay 3
      toggleState_3 = 0;
      }
      delay(100);
      break;
      default : break;
      }
      }
      void loop() {
      if (digitalRead(mswitch_1) == LOW){
      MIDI.sendControlChange(16, 127, 1);
      delay(200);
      relayOnOff(1);
      }
      else if (digitalRead(mswitch_2) == LOW){
      MIDI.sendControlChange(15, 127, 1);
      delay(200);
      relayOnOff(2);
      }
      else if (digitalRead(mswitch_3) == LOW){
      MIDI.sendControlChange(14, 127, 1);
      delay(200);
      relayOnOff(3);
      }
      }

    • @slaamri
      @slaamri Год назад +1

      @Azman Ahmad thank you ! I try this. I'll let you know.

  • @mikigeorgiev5257
    @mikigeorgiev5257 6 лет назад +2

    Everything works perfectly on my Arduino Mega. Thanks for the useful and simple tutorial!

  • @ollelindberg406
    @ollelindberg406 8 лет назад +16

    Super tutorial! Do you know how I can make my Arduino to be recognized as a controller by the computer and send MIDI CC through the USB (same as for powering) instead of a MIDI port?

    • @JonathanFisherS
      @JonathanFisherS 7 лет назад +1

      www.arduino.cc/en/Reference/MIDIUSB maybe?

    • @jasonchristopheruy80
      @jasonchristopheruy80 6 лет назад

      connect the tx port to a usb i think..

    • @bcinsteadof3
      @bcinsteadof3 6 лет назад

      I connected mine to a raspberry pi 3 by connecting the signal on arduino pin 1 (tx) directly to pin 8 on the pi3 (rx), and I would imagine you could do that with any midi interface, although per the standard, it really should be separated with an optocoupler. To connect it as a USB MIDI device, depending on your Arduino model, you can use the HIDUINO firmware found here: github.com/ddiakopoulos/hiduino. Otherwise you will need to build a cable with a separate controller. This might help: axe4live.wordpress.com/2012/02/04/diy-midi-interface-for-ipad-version-2/.

    • @jabransiddique2084
      @jabransiddique2084 6 лет назад +1

      Use some Softwares Like " LOOPMIDI " and " HAIRLESS MIDI ". It's a very Basic and Amazing Way to control Midi via USB.

    • @Sandarpan
      @Sandarpan 5 лет назад

      I use an Arduino Leonardo for that

  • @2bonk22
    @2bonk22 3 года назад +2

    This is the exact software I've been searching for. I trying to convert a savaged organ pedalboard to a midi pedal keyboard. This will get it done with the minimum screwing around. Your explanation of how the code works is excellent and now I understand the code well enough to make the few simple tweaks needed for my use. Thank you

    • @ctpctp
      @ctpctp 4 месяца назад

      That's exactly what I am doing! I first tested a couple 25 key midi controllers to try converting them to a set of organ bass pedals for a Hammond XK-3, but they all clear ALL USER SETTINGS every time you power them down!!! I'm just baffled by that. So now it's time to roll my own.

  • @iskanderboulila4453
    @iskanderboulila4453 5 лет назад +1

    Is it possible to replace the Midi output port with a Bluetooth module like the HM 10 ? what would change in the arduino sketch? thanks!

  • @rendellpeh
    @rendellpeh 8 лет назад +6

    Once again a very clear and simple to follow videos. Appreciate your effort!

  • @DallasKruse
    @DallasKruse 7 лет назад +1

    Is there a way to adjust this code to work with a Leonardo board? So that the board itself sends Midi over USB?

  • @luc71160
    @luc71160 7 месяцев назад

    hello I came across an old RUclips video "arduino midi controller: part2 buttons" I'm trying to understand your file because I need 13 buttons (I want to connect a foot piano and I need 13 notes: C-C# -D-D#-E-F-F#-G-G#-A-A#-B-C).Is this already possible?.If so can you help me.

  • @444whoislex
    @444whoislex 5 лет назад +1

    As I watch this video there is 777 likes and 7 dislike! Hope all the guys that watch this video on December 31 2018 will be lucky for 2019

  • @lalamparo
    @lalamparo 4 года назад

    Hi, thanks for sharing your project, I tell you I have a BOSS GT 1000 and I would like to make a 6-switch MIDI footswitch, with Arduino but I don't know how to program it, could you help me with that. Thank you

  • @fernando-inf
    @fernando-inf 4 года назад

    The code works but, I connect it to the PC by loopmidi and Hairlessmidi and, the programs recognize that there is MIDI activity but, do not play the note on the instruments (Drums- Addictive Drums 2 or GTR3 Guitars)

  • @ALMkrtchyan
    @ALMkrtchyan 6 лет назад +1

    Hi , thank you for your amazing tut :) . Could you tell please how to put programChange and not Notes or ControlChange in buttons ? As I understund 0 is Note , 1 is controlChange and 2 is ControlChange toggle ... Thanks :)

    • @marcobenigni2610
      @marcobenigni2610 5 лет назад

      Did u solve? I m trying to send program change too

  • @RoamingWanders
    @RoamingWanders Год назад

    This is great, thanks for making this. I have tried making a 6 button controller but when I try and upload to the uno i get an error saying undefined reference to 'Button::Button (unsighned char, unsigned char...etc, I doubt you will see this after many years of this vidoe being online but any ideas how to fix that? I'm very new to this

  • @marcobenigni2738
    @marcobenigni2738 3 года назад

    Hi, how can I send same CC message but with different Value? " EXAMPLE CC69 Value 4 . thanks

  • @wtfpercussion
    @wtfpercussion 6 лет назад +1

    My midi controller started switching super fast between CCs when I did this project, what did I do wrong?

  • @nanotrax
    @nanotrax 2 года назад +1

    works fine, thx much.

  • @thxcuz
    @thxcuz 4 года назад

    I have a question, I have the Drumkit AI from spikenzie labs. I would like to replace the piezo transducer with push buttons. is a new script needed? Sorry for the noob question, but this was the first place I found that made things a little clearer for me.

  • @ScheliJR
    @ScheliJR Год назад

    Hi there! Is it possible to add a "long Press Function" to this? E.g. when its pressed >3 sec, toggle another command then

  • @LukeGeaney
    @LukeGeaney 7 лет назад +2

    This video is amazing. I have got through this and everything works! Absolutely, hands-down the best MIDI arduino controller video. 11/10.

  • @zerorusher
    @zerorusher 4 года назад +5

    Man, arduino is indeed amazing but what is truly amazing is people like you sharing knowledge like these for free!
    Thanks a lot man! I'm planning to build a midi mixer to my Mox6 to help with live performances!

  • @txilibrist
    @txilibrist Год назад

    Good job!
    I would like to use a 4 button footswitch.
    But I am not able to assign a led to each button.
    Some help?
    Thanks

  • @jaredoth1572
    @jaredoth1572 18 дней назад

    Can this be done with a USB port instead of MIDI?

  • @MorningView
    @MorningView 10 месяцев назад

    excellent info and code is great. thank you. i am trying to modify the code to sends a string of notes on button bush. i tried changing notes from single notes like 60 to for example 60-64. But it doesn't change though as i think i need to add note off between each note. How do i add this note off between each note (for single button push)? thanks

  • @tedysamsi8488
    @tedysamsi8488 2 месяца назад

    How to make button solo/mute Channel CC massages for GM sound module please?

  • @callumlloydwilliams
    @callumlloydwilliams 3 года назад

    The sketch works for me and the controller i've built works, but once i power off the ardunio it does remember the code. Just for this sketch, holds other sketches. what am i doing wrong? thanks

  • @fibranijevidra
    @fibranijevidra 3 года назад

    And, how would you map buttons to Program Change MIDI message?

  • @mohdashifkhan2858
    @mohdashifkhan2858 3 года назад

    I have a sensor and I want use it as a switch with your code it's gave analog value from 0 to 1023 I want when analog100 send note of please reply

  • @pex1981
    @pex1981 Год назад

    Hi thank you for share this tutorial, one question, in your code is not possible to send CC message with value?

  • @roccanto86
    @roccanto86 3 года назад

    Somebody knows if this project stands for PC midi messages?

  • @256k_
    @256k_ 4 года назад

    is it possible to use the script with the teensy2++? i compiled the script and it works fine and it is detected as a midi device but when i test the connection by wiring ground to the pin number defined in the script it does not register anything. i have defined the button & added it to the directly connected array and declared the number of buttons to 1. i dont know if i'm missing something or if it;s because of lack of compatibility with teensy.

  • @Fedor_Tkachev_Music
    @Fedor_Tkachev_Music 3 года назад

    is it possible to skip midi din connector part alltogether and just use usb-midi? Thanks!

  • @prototype9000
    @prototype9000 4 года назад

    Could just use a usb connector dont have to use a midi jack

  • @nazrlol8102
    @nazrlol8102 7 лет назад +3

    how can I put 16 buttons on it? it only has 11 ports to connect buttons?

  • @manamsetty2664
    @manamsetty2664 Год назад

    Hey can I send MIDI data through the serial usb cable itself

  • @elektrodenio
    @elektrodenio 8 лет назад +2

    Hi,Dave!
    Love your tutorials and your channel content!
    About the buttons:your method of connecting them right up to digital pins is simple and effective,but if there are more buttons to be read I would suggest using parallel in-serial out shift registers.They are great because you can cascade them together and read maybe hundreds of switches.
    P.S. The idea about using a multiplexer was pretty clever.Going to keep it in mind when building my projects. :)
    Keep them videos coming!
    Cheers!

    • @NotesAndVolts
      @NotesAndVolts  8 лет назад +1

      Thanks for the tip elektro! I will check it out.

  • @bonbierso9648
    @bonbierso9648 Год назад

    what if I put a 7 segment LED to that? how to do wiring and programming?

  • @AuraPopDuo
    @AuraPopDuo Год назад

    Hey! YOU ARE AMAZING! Is there a simple way to add a "bank selection buton" on the code? I am new to the Midi/arduino world and your videos are making it sooo much easier!

  • @MegaDjgreg
    @MegaDjgreg 5 лет назад

    I am new to Arduino and Midi. is it possible to send sysex messages instead of CC messages?

  • @uomonordico1313
    @uomonordico1313 5 лет назад

    what if i have a 5x6 matrix 25key keyboard (from a Yamaha electronic piano) directly connected so that i can get a number (midi note number) for each button press? how do i manage it with this lib? thanks

  • @johncarlsencio9788
    @johncarlsencio9788 9 месяцев назад

    Can I use this to control my nux mg30?

  • @chapelierfouTV
    @chapelierfouTV 3 года назад

    This is great, easy and flexible. Can you simple add more Pots if, for instance, using an Arduino Mega ?

  • @admguitar4855
    @admguitar4855 3 года назад

    Hello! Great this video. How can I add a LED that it turn on when I press a button? Thanks for an eventual your answer

  • @captain6198
    @captain6198 Год назад

    Is this possible to run this sketch on a Leonardo ?

  • @tarkkaanalemdag
    @tarkkaanalemdag 3 года назад

    Can ı use like footswitch in bias fx 2 ??

  • @vientosderutaToti
    @vientosderutaToti 4 года назад

    Could someone help me to add a rotary encoder to the sketch?

  • @CrappyDude
    @CrappyDude 3 года назад

    Can i make a midi fighter with thissss please reply

  • @slaamri
    @slaamri 2 года назад

    Hello,
    First of all, thank you very much for your youtube channel!
    It allowed me to make a bass pedalboard (like the PK-5 from Roland).
    This midi controller allows my guitarist to trigger sounds from a synthesizer (Access Virus).
    I want to add a function to my controller: I want to play one note at a time.
    So I think that it's necessary to use the monophonic mode, what do you think? But I didn't found the right midi CC message.
    Could you help me please?
    Any information will be welcome.

  • @tonyojala4159
    @tonyojala4159 6 лет назад

    I have this problem where this piece of code, is almost perfectly suitable for my guitar pedal project.
    In this project you would need to assign also the value of the CC command after the pin number, command and note number.
    If anyone could help me how to edit this code to be suitable for this extra add-on.
    I'm building this for Line6 DT25 amp: line6.com/media/dt50/DT_MIDIGuide_v2_0_RevA_English.pdf
    With this code I can set the pin number, command toggle, and the cc number. But after these I'd need to add another value
    so that the amp regonizes what you'd like it to do. (You can check it from the link )
    So if there's anyone who would be willing to lend a hand, it would be greatly appreciated!

  • @rybos007
    @rybos007 4 года назад

    Great video. I'm trying to make single foot keyboard. How could i change octaves ? it's probably not possible with control change. Is it possible to use pins A1 A2 without multiplexer ?

  • @CodeAsm
    @CodeAsm 2 года назад

    Awesome, took me a while to figure out what i was doing wrong, turned out, I dint used the right Linux commands.
    I can now send midi stuff from my arduino over plain serial to my Linux machine and play midi music :D Your videos are clear and helpfull.
    ttyMIDI and aconnect helped me alott. it might not have guis but way less trouble once i understand how they work. I might create a nice gui for myself as I see myself way more often connect and change serial connections. A true MIDI port might be ok, but ill add that once i hacked my keyboard. Now I need an awesome sounding external synth :P (for DosBox and Qemu use)

  • @user-bz9iz6ho6f
    @user-bz9iz6ho6f 4 года назад

    Hi, I'm currently an undergraduate mechatronics engineering student who about to make an final thesis for graduation. I have a passion for music making so I'm really interested in developing this project and build my own MIDI controller for my graduation. Do you think it would be an appropriate topic for a thesis and if yes, could you help me with it? :D

  • @DokterRyConn
    @DokterRyConn 4 года назад

    How would you be able to use this simple setup without the MIDI jack? Using only the USB to send the MIDI commands? I would love to hear about this.

  • @patrickbear6727
    @patrickbear6727 3 года назад

    I built a foot controller using this video and it works with just one caveat and I was wondering if others have the same issue. I use 8 switches to control my Line6 HX Stomp--adds switches for all 8 blocks which is just awesome! The problem that I have is that the first switch press typically is not picked up by the Stomp. I hit a switch once and nothing happens then I hit it again and it will work fine from then on. Do I need to add pull up resistors or something??

  • @bennydaniel6906
    @bennydaniel6906 4 года назад

    can we use usb output from ardunio?

  • @Dig3DaL
    @Dig3DaL 5 лет назад

    Is there a way to have the MIDI info communicate through the usb port on the Arduino directly into the Digital Audio Workstation? Im looking to not use a MIDI jack but accomplish what you are doing in these tutorials.

  • @jucaferreira5310
    @jucaferreira5310 6 лет назад

    This project worked perfectly in kontakt but I am having difficulties in triggering the buttons because the vsts of kontakt are not recognizing the same, I must change the function in the code or I am configuring wrong, help me please, thank you.

  • @djrobwilliam1673
    @djrobwilliam1673 4 года назад

    I know this is old but will this controller function the same via the USB Tx/Rx data lines? @Notes and Volts

  • @basrikaragulle2933
    @basrikaragulle2933 2 года назад

    thank you for this beautiful video. Can I use this for chord control with my foot while playing the keyboard?

  • @maximilianomunoz808
    @maximilianomunoz808 5 лет назад

    Hi ! thanks for the tutorial ! is it great !
    Hi ! thanks for the tutorial ! is it great ! i´m trying to use your code with 6 buttons, two for CC function and 4 for toggle CC but i need to press two time for the toggle works, if i push just once the toggle doesn't work, and if i want use the midicontroller whit an aplication like Bias FX like a footcontroller the Bias only works with the note 62 whit any other do nothing, please help me !
    How can i make the buttons for toggle works with only one push, and you have any idea for the note than i can use ? thanks !!

  • @dariuszpiotrowicz
    @dariuszpiotrowicz 3 года назад

    Hi. Great job! I just made the first midi controller in my life, which will make the control of my midi devices a lot easier for me: D Thanks a lot!
    However, I feel a little unsatisfied - is it possible to enter the values ​​for Control Change messages somewhere in the code? I do not see such an option in the base code, unless I should use multiplexers? Maybe some user has already worked on the topic and could help?
    Best regards.

  • @guitako
    @guitako 7 лет назад

    Could you build a Foot Pedal adaptable to Guitar Rig 5 or another program, maybe something similar to FCB 1010 Behringer ??
    Excellent channel, I learned a lot, thank you

  • @abhikori5707
    @abhikori5707 4 года назад

    sorry for the noob question, but i have a few doubts, i want a responding led for each switch, so do i require different pins for each led or just connect the led to pin 13 with connecting the other to 5V. also if i wanna use a usb type b female jack rather than a midi jack, do i have to use another jack and cable or the program can read the interface of arduino as midi directly by the usb we connected it from?

  • @guga.brandao
    @guga.brandao 6 лет назад

    Assuming that:
    A0 = PIN 14
    A1 = PIN 15
    A2 = PIN 16
    A3 = PIN 17
    A4 = PIN 18
    A5 = PIN 19
    Would work on the code with switchers?

  • @alby1001fly
    @alby1001fly 6 лет назад

    please sir how can I program a light detecting resistor (cadmium cell) to act like a switch when laser hitting it is interrupted ?? what I am trying to do is make a laser harp so to say with 8 inputs. can I just alter the code for the midi switch project ???/

  • @tinbasher5951
    @tinbasher5951 3 года назад

    I built a 13 note "midi bass pedals" with the help of these well produced tutorials.
    How hard would It be to add oct +/- in the sketch?

    • @tinbasher5951
      @tinbasher5951 3 года назад

      So much fun. Definitely my new favorite channel.

  • @tjp1432
    @tjp1432 4 года назад

    How do I put led for each button

  • @ScheliJR
    @ScheliJR 3 года назад

    Hi! Has anyone tried this using an Arduino Pro Mini? Will it work the same way, or what to do to make this work on an Arduino Pro Mini? Thanks!!!

    • @ScheliJR
      @ScheliJR 3 года назад

      Just tested it - Working also with Arduino Pro Mini :)

  • @bitrich0981
    @bitrich0981 8 лет назад

    Dear Brother,
    I watched your video on you tube, its really inspiring and very helpful for the person like me.
    I need your help.
    I am not a person from software background, my work is to produce music. my educational background is computer hardware and electronics.
    Now, when performing music live, i am facing the problem to change the sounds from my keyboard in MainStage on the fly. as i am playing indian Bollywood songs i have to be very quick in program change which is quit difficult with normal keyboard.
    So, i am planning to make a switch array of 127, which can change sound directly. i mean when i press 0 button ardiuno send midi program change message to channel 1 and transmit through midi out to my keyboard or MainStage.
    but this is like travelling on space shuttle for me because of the programming code. i am zero in it. i need your help to get me the code for this. please this is a humble request to help me out if this issue.
    I have Arduino MEGA2560 with lcd keypad shield.
    One more thing, can i use lcd for information? i mean, for example, when i press button 12 on my keys array, so it reflects on lcd “ Program 12”.
    Here i am sending you the picture of on of the device made by some one, i don’t know who have designed and manufactured it, but its really good for me.please find the attached file for the same. but unfortunately its not available easily in india.
    apart from that it has some different hardware in it. its consist of one pre programmed EPROM and one display driver IC.
    but i think that making this thing with Arduino is more easy, except writing the code for it, which is impossible for me to do.
    Awaiting for your reply. Thanks for reading my long mail. but this was the only way to describe the problem i am facing.
    Thanking you again.
    Regards,
    Richardson.

  • @davidecarollo70
    @davidecarollo70 Год назад

    Great! It's the best video on the tube to explain how to start to midify a key. Wonderful 👍

  • @gulintepebas5168
    @gulintepebas5168 2 года назад

    Thanks for the good content. I use it to play button chords, but only Major chords are played because it sends a single note. For minor chords, how can I get the button to send two notes when I press it once?

  • @marksantos3394
    @marksantos3394 4 года назад

    Can i use that to control bias fx 2

  • @digimbyte
    @digimbyte 4 года назад

    the wire setup confuses me, you are connecting the buttons to inputs, but these are linked to ground not the 5v
    you are also not including any pullup or pulldown resistors - it can't work this way can it?

    • @NotesAndVolts
      @NotesAndVolts  4 года назад

      Hi Digi Byte. I'm using the Arduinos internal pull-up resistors. The input is pulled high through the built in 20K pull ups in the Atmega chip when the button is not pressed and connected to ground when the button is pressed.

  • @letsmakeown5744
    @letsmakeown5744 7 лет назад +1

    please tell me the source code helps as buttons to change the program code

  • @snowkingcro
    @snowkingcro 4 года назад

    Excellent tutorial, have some questions...
    1. What if i want two CC comands on one button?
    2. If i use midiusb library, can i use the usb output for midi?

    • @nolambda6486
      @nolambda6486 4 года назад

      hi !
      i'm curently trying this option, you should be able to do it only with a USB HID enabled board (see the MIDIUSB library info it tells it all)

  • @danmarshall3089
    @danmarshall3089 3 года назад

    really love it if you could add leds to the buttons in this code that can be turned on and off using the comments i'm trying to build a 5 button midi controller but want to add LEDS to my buttons to let me know when toggles are on

    • @slaamri
      @slaamri Год назад

      Hello Dan, did you managed to add leds to your buttons? I'd like to do the same.

  • @lusotch
    @lusotch 4 года назад

    Hi , Love the videos. can i use your stock midi controller sketch to do program change. All i see is CC.

  • @dachimp4879
    @dachimp4879 3 года назад

    Is there a way to program this to be polyphonic or is it just monophonic by default?

    • @NotesAndVolts
      @NotesAndVolts  3 года назад

      Hi Sebastian. It can be either. The instrument being controlled will determine that.

  • @rensrutten9919
    @rensrutten9919 6 лет назад

    Hey, I was wondering if you could also achieve sending midi signals using the usb port of the arduino itself without using a seperate midi jack (like most midi-controllers would do)? Nice video btw! I'm planning on building one myself.

    • @conix2355
      @conix2355 6 лет назад

      www.arduino.cc/en/Reference/MIDIUSB

  • @holmmusic
    @holmmusic 4 года назад

    Thanks for this nice video. I would like to use momentary buttons, programmed in latch mode (for sustain on different midi ch) but i would like to use illuminated buttons (with build in led) to get a visual feedback when sustain is on of off. How is this possible ?

  • @paoloacero7732
    @paoloacero7732 5 лет назад

    hello sir i would like to ask if how to use 3 button where the first 2 button is the choices then the 3rd button is like the activation or something but the first 2 button is in toggle

  • @shayshay399
    @shayshay399 5 лет назад

    Hi! Great video. Quick question. I want to use as a guitar pedal and use stronger switches that I can attach to the enclosure. All I see are two button versions of this. How would I connect and program the two pin instead of the 4 pin? Thanks!

  • @bishoy95
    @bishoy95 3 года назад

    You are a life saver, best code ever.
    Worked great with Arduino Mega 2560 and could also use it on Serial2 instead of default Serial.
    Thank you so much for your effort in helping all of us.
    Please continue developing the project as it is the best Midi Implementation for arduino I have ever seen.

  • @TheBreakSpeed
    @TheBreakSpeed 3 года назад

    Fantastic tutorial, thanks very much, great source code too

  • @ihaveriffs8261
    @ihaveriffs8261 6 лет назад

    What sort of buttons will work for velocity-sensitive applications? I’m working on my own project right now where I’m building a controller(just buttons for a diy keytar) that will plug into the wiring clip inside an existing midi keyboard.
    So I’m wondering if there is a certain type of button that has multiple connectors to make them velocity-sensitive. People on here probably already know the inner workings of keyboards, but the way it works is: one lead selects a note range and two leads will trigger a note when connected to the first. The speed at which the two trigger leads connect to each other determines the velocity. Extracting the buttons from under the keybed and mounting them in another device doesn’t seem like an option because these are usually based on pc boards rather than something that can be easily re-wired. I’m already lucky enough that the Keystudio25 has actual wires that clip into the main circuit board.
    Any help would be appreciated!

  • @peterdevriesguitar
    @peterdevriesguitar 5 лет назад

    Can I use the "footswitch button" like guitar pedals? And how to connect it with the arduino?

  • @ahmedozklc5070
    @ahmedozklc5070 6 лет назад

    I made the midi drum kit with analog inputs. Can I use digital inputs with this code?

  • @7091pm
    @7091pm 8 лет назад

    Combination of buttons, how is done please..I would like to press 2 or more buttons at the same time to send a single midi command.

  • @Dally_Sparkles
    @Dally_Sparkles 4 года назад

    i have been searching for this i want to make a midi foot controller sweeet..

  • @pabloandresparisi
    @pabloandresparisi 3 года назад

    great!, work fine!

  • @GabrieleOrlandoLuthier
    @GabrieleOrlandoLuthier 5 лет назад

    Does anyone can help me to do this with Arduino pro micro?

  • @myperspective5091
    @myperspective5091 7 лет назад

    What is the maximum number of buttons that you can hook up to one Arduino?

  • @micwalt
    @micwalt 5 лет назад

    I keep getting error message: "Arduino: 1.8.8 (Mac OS X), Board: "Arduino/Genuino Uno"
    error: no matching function for call to 'midi::MidiInterface::sendProgramChange(byte&, int, byte&)'
    MIDI.sendProgramChange(BUTTONS[i]->Bvalue, 127, BUTTONS[i]->Bchannel);
    ^

  • @budicahyono4124
    @budicahyono4124 5 лет назад

    How to use led for button?.so send midi and led work same...

  • @fk24leaker
    @fk24leaker 6 лет назад

    Hi ! this tutorial awesome...i have 1 Question ........Can I make arduino midi piano with this method ?.....please reply quickly sir.....

    • @Virusboy
      @Virusboy 6 лет назад

      Sinhala PC Tech you can,but you need to use a midi Port on the breadboard