#5 How to code Encoders - MIDI Programming for the Arduino

Sdílet
Vložit
  • čas přidán 20. 08. 2024

Komentáře • 29

  • @philplayzz4697
    @philplayzz4697 Před 4 měsíci +1

    Thank you so much Gustavo! this was an amazing tutorial and I enjoyed it so much!

  • @Ted655687653
    @Ted655687653 Před 4 měsíci

    Happy Birthday. You look very young for 37. You are a great teacher and great presenter. And let's not forget, a very likable person. You Rock!!!

    • @NerdMusician
      @NerdMusician  Před 4 měsíci

      Thank you! And trying to stay young! haha

  • @A6de
    @A6de Před 4 měsíci

    Thanks for all your videos. You're the one who made me want to start my first ARDUINO project.
    Unfortunately, I didn't start with the easy part.
    I took an ARDUINO Uno R3 that I have to flash to do my tests ^^. It's a bit slow but it works.
    Thank you once again.

  • @alejandromurillo1205
    @alejandromurillo1205 Před 4 měsíci

    Esto es oro para mi, very Ty

  • @oflittleconsequence
    @oflittleconsequence Před 2 měsíci

    I just discovered your page a few days ago, and my mind is on fire with ideas. I can never find exactly what I'm looking for in a MIDI controller, so I can just BUILD exactly what I'm looking for, thanks to YOU!! Amazing content, and you have a real knack for teaching.
    If I want to build a visual feedback display on the controller (like the LED ring, or a scribble strip display, or whatever) is there a command to query the MIDI device it's controlling for the current value of that CC? If not, how could I get that feedback?

  • @damonbostrom6857
    @damonbostrom6857 Před 4 měsíci

    Thanks for the great video!

  • @DuanesMind
    @DuanesMind Před 3 měsíci

    Music keeps us young😉 By the way every turn of my encoder goes up by 4 counts for some weird reason?

    • @NerdMusician
      @NerdMusician  Před 3 měsíci

      That's because of the quadrature thing I explain in the video. So, at every "click" your encoder does it reads 4 changes in the state of its pins, two for each. So, that's normal. However, you can adjust this in the code. I teach how to do that inside my course Making Music with Arduino.

  • @sanghoonpark
    @sanghoonpark Před 2 měsíci

    Thanks for the video. It works well on my Mac, but it doesn't work on Windows. It seems to work in the serial monitor on Windows, but it doesn't get recognized as a MIDI device. Do you know why that might be?

  • @studioalley
    @studioalley Před 28 dny

    Hi Gustavo, your channel is amazing! Thanks for your sharing. It helps a lot. I have a question about the rotary encoder, your program sends the rotary encoder value to DAW, if the DAW corresponding pot is already set at max, but the oldPosition value is 0, whenever the encoder is active, the DAW corresponding pot will suddenly move to min first. Can it be possible that when the encoder is rotated, the DAW corresponding pot only decreases/increases from its value? Does that mean DAW needs to send its status to Arduino? Also, some MIDI controllers can show LED audio level meters, how can it be done?

    • @NerdMusician
      @NerdMusician  Před 27 dny

      To achieve this, you need to "listen" to the DAW using the MIDI in function. This is a bit more complex, but I explain it step-by-step in the Making Music with Arduino course:
      go.musiconerd.com/making-music-with-arduino

  • @AGARO17
    @AGARO17 Před 3 měsíci +1

    can i use this code for jog wheels in traktor?

    • @NerdMusician
      @NerdMusician  Před 3 měsíci

      Kind of, because Traktor expects 127 if the encoder is turned clockwise, and 0 if it is turned CCW, instead of a range of 0 to 127, so there are some minor adjustments in the code you need to do.

  • @hemersonallan
    @hemersonallan Před 4 měsíci

    Can you create a interrupt function to read each encoder data read in realtime ?

  • @andreibanezsasia6788
    @andreibanezsasia6788 Před 3 měsíci

    how can i add an extra encoder to this code???

  • @ochre6887
    @ochre6887 Před 4 měsíci

    The code shown in this video is different to the code in the GitHub file which relates to the first video, i'm confused

  • @purokacacia3962
    @purokacacia3962 Před 29 dny

    Hello Good day! I copy your Code the rotary encoder has bounce when rotate, how to solve this?

    • @NerdMusician
      @NerdMusician  Před 27 dny

      This lib should take care of this, but you can add a debounce algorhithm to your code. I recommend you to paste your code in Chat GTP and explain what you want.

    • @purokacacia3962
      @purokacacia3962 Před 27 dny

      @@NerdMusician Okay Thank You

  • @soundbeatproductions5732
    @soundbeatproductions5732 Před 3 měsíci

    Does this actually make your rotary encoder endless?

    • @NerdMusician
      @NerdMusician  Před 3 měsíci

      Any rotary encoder is endless!

    • @soundbeatproductions5732
      @soundbeatproductions5732 Před 3 měsíci

      Ahh! I think my concept of endless was incorrect. ​ The encoder still has to be programmed from 0 to 127 to use with midi. @NerdMusician

  • @manuelgonzales6483
    @manuelgonzales6483 Před 4 měsíci

    🎉❤