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

preview_player
Показать описание

In this video, I'll show you the complete guide to how you can use an encoder with MIDI. I'll show everything you need to understand how to encoder works, how to wire it, how to connect to the Arduino properly using interrupts, and how to use the MIDIUSB library to send MIDI with an Arduino Pro Micro, as a true MIDI class-compliant device.

0:00 Intro
0:53 Why use an Encoder?
4:28 How the Encoder Works
9:08 Interrupts
12:31 Wiring
13:06 Coding an Encoder
15:36 Sending MIDI
22:42 Nerd Musician Pro

Translated titles:
如何编码编码器-Arduino 的 MIDI 编程

Cómo codificar codificadores: programación MIDI para Arduino

So codieren Sie Encoder-MIDI-Programmierung für den Arduino

Comment coder les encodeurs-Programmation MIDI pour l'Arduino

Como codificar codificadores-Programação MIDI para Arduino

एन्कोडर्स को कैसे कोड करें-Arduino के लिए MIDI
Рекомендации по теме
Комментарии
Автор

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!!!

Ted
Автор

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

philplayzz
Автор

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.

Ade
Автор

Hi Gustavo thanks for amazing stuff just a quick question I use relative encoders to send a value 63 and 65 is there a option to adapt this code thank you very much

robertkwela
Автор

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

ochre
Автор

Subscribed to see the led rings. See you soon :P

trentoncarr
Автор

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?

oflittleconsequence
Автор

Thanks
but the mouse-controller version doesn't match this video.
Could you upload this version with just MIDI encoder?

txilibrist
Автор

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

hemersonallan
Автор

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?

sanghoonpark
Автор

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

andreibanezsasia
Автор

can i use this code for jog wheels in traktor?

AGARO
Автор

u CAN use all pins on your arduino! its more compllcated but u can! you dont need interrupt pins.

hatray
Автор

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?

studioalley
Автор

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

DuanesMind
Автор

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

purokacacia
Автор

Does this actually make your rotary encoder endless?

soundbeatproductions
join shbcf.ru