Hi
i'm a novice i'm trying to learn and set up an old keypad 4x4
as midi controller using arduino mega 2560
loading adafruit keypad text example keypad works perfectly (serial monitor)
digital pin 2 3 4 5 - 8 9 10 11
how can i convert signal into midi note ?
could someone help me?
many thanks.
K8.ino (988 Bytes)
K8.ino (988 Bytes)
Welcome to the Forum. Please read these two posts:
General Guidance and How to use the Forum and
Read this before posting a programming question ...
You may also find useful information that would answer your question here:
Useful links - check here for reference posts / tutorials
It is important to provide as much of the information that is needed to solve your problem as you can, in your first posts. The forum link above has guidelines for posting in a standard way that makes it easiest for people to provide you with useful answers. Making an effort to do this will greatly increase the number and quality of helpful responses that you get.
In this case, the problem is that you have added your sketch as an attachment. Unless the sketch is too large, it's better if you post your code (using code tags!), rather than attach it. When it's attached, we have to download it, create a folder then open your code in our IDE. And afterwards, the folder remains unless we navigate to the "Temp" folder and manually remove it. It's much easier to just view the code in your post.
Please edit your post and insert your code inside it, using code tags. The code tags make the code look
like this
when posting source code files. It makes it easier to read, and can be copied with a single mouse click. Also, if you don't do it, some of the character sequences in the code can be misinterpred by the forum code as italics or funny emoticons. The "Code: [Select]" feature allows someone to select the entire sketch so it can be easily copied and pasted into the IDE for testing.
Do you already have the necessary MIDI in/out hardware? Or are you thinking of MIDI over USB, in which case you probably have the wrong Arduino. There is a lot of code which shows how to send MIDI e.g. the examples with the MIDI.h library. Basic_IO will give you most of what you need.
You can already get a different character for each key and you know when it is pressed and released. Translating the character into a MIDI note number is trivial and key pressed = MIDI Note ON, key released = MIDI Note Off. Give it a try.
Steve
my idea was midi over usb
I've tried to upload this code
keypad works but not completely because of 4x3 keypad and other advanced options
in use for the midinator project
You could try this example: NoteButtonMatrix.ino
Pieter