4x4 Neotrellis arduino USB midi controller

General project help for Adafruit customers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
LydiaNeko
 
Posts: 2
Joined: Thu Nov 07, 2019 5:05 pm

4x4 Neotrellis arduino USB midi controller

Post by LydiaNeko »

I'm currently racking my brain over how to program a Neotrellis board to output midi to Ableton/Max for live. I'd like to use it as a small Monome but would be happy with basic USB over Midi output at the moment. I'm using an Arduino Uno which might not be ideal and following this guide:

https://www.instructables.com/id/Arduin ... ontroller/

The problem is nothing happens when I press the buttons. I believe this is because its designed for the older Trellis? I've run the basic program for Neotrellis and the buttons and lights all work fine.

Please help

User avatar
mikeysklar
 
Posts: 14165
Joined: Mon Aug 01, 2016 8:10 pm

Re: 4x4 Neotrellis arduino USB midi controller

Post by mikeysklar »

Hi LydiaNeko,

Maybe I should just start with what might be a stupid question for you.

Since you know you want a Trellis based USB midi controller would it make more sense to use the one of our Trellis options that was designed for this?

https://learn.adafruit.com/search?q=trellis%20midis

User avatar
LydiaNeko
 
Posts: 2
Joined: Thu Nov 07, 2019 5:05 pm

Re: 4x4 Neotrellis arduino USB midi controller

Post by LydiaNeko »

Thanks for your reply, my aim was to get a 16 button controller working with monome max software then build it into a custom controller. It might be a little bit easier to buy the M4 kit but also limited to button numbers and enclosure shape. I might have to step back and use a trellis instead it seems :(. BANNED that the neotrellis doesn't accept the same code.

User avatar
mikeysklar
 
Posts: 14165
Joined: Mon Aug 01, 2016 8:10 pm

Re: 4x4 Neotrellis arduino USB midi controller

Post by mikeysklar »

Does the UNTZtrument guide meet your needs? It is a 16 button MIDI / USB ready device based on the trellis.

https://learn.adafruit.com/mini-untztru ... controller

User avatar
johnpark
 
Posts: 985
Joined: Wed Mar 25, 2009 2:15 pm

Re: 4x4 Neotrellis arduino USB midi controller

Post by johnpark »

We have a few guides showing how to do USB MIDI on a NeoTrellis M4, I would definitely check these out:
https://learn.adafruit.com/neotrellis-arpeggiator-synth
https://learn.adafruit.com/trellis-m4-m ... controller
https://learn.adafruit.com/neotrellis-live-launcher

EDIT: I just re-read your post, you're talking about a 4x4 NeoTrellis driver board I think. Which microcontroller are you using?

User avatar
johnpark
 
Posts: 985
Joined: Wed Mar 25, 2009 2:15 pm

Re: 4x4 Neotrellis arduino USB midi controller

Post by johnpark »

Here's an example I made in Arduino using the NeoTrellis 4x4 driver board with a Feather M0 Express (nearly any board that supports TinyUSB should work with my example):
https://github.com/jedgarpark/neotrelli ... SBMIDI.ino

You can rearrange the notes/order of notes in the noteTable[] array to pick which pad calls which note. Hope this is helpful.

User avatar
marccobe
 
Posts: 8
Joined: Thu Dec 06, 2018 7:49 pm

Re: 4x4 Neotrellis arduino USB midi controller

Post by marccobe »

johnpark wrote:Here's an example I made in Arduino using the NeoTrellis 4x4 driver board with a Feather M0 Express (nearly any board that supports TinyUSB should work with my example):
https://github.com/jedgarpark/neotrelli ... SBMIDI.ino

You can rearrange the notes/order of notes in the noteTable[] array to pick which pad calls which note. Hope this is helpful.

Hi John, I have been using the miniuntz for a while (sending midi notes and program controls messages) and would like to update my setup with the NeoTrellis 4x4 so that it can be a more colourful approach. Will this code work for sending program control messages instead of notes?
Is there a way to use the miniuntz code + neopixel?
Thanks a lot for helping!

User avatar
johnpark
 
Posts: 985
Joined: Wed Mar 25, 2009 2:15 pm

Re: 4x4 Neotrellis arduino USB midi controller

Post by johnpark »

Hi, yes, you can send Program Change using the NeoTrellis (or pretty much anything that uses the MIDI library) and also do RGB colors with the NeoPixels.

You should be able to use the existing code as a starting point and then swap it over to the neotrellis library and functions.

User avatar
marccobe
 
Posts: 8
Joined: Thu Dec 06, 2018 7:49 pm

Re: 4x4 Neotrellis arduino USB midi controller

Post by marccobe »

Hi John, I have been using the Neotrellis 4x4 as a midi device, but so far there's a problem with simultaneous presses which I described here:
viewtopic.php?f=8&t=179577&p=873973#p873973
you could see the video here as well:
https://youtu.be/8xlwP9pF2gI

Is there a way I could use the M0 express to send midi notes without this multiple press problem? Maybe using circuitpython similar to this sketch of yours?
https://github.com/jedgarpark/JEP_NeoTr ... riggers.py

I tried to use it but it's doing nothing. I don't know if it's because it's not compatible with the Feather M0 or because something else.
Hope you can send me some light.
Thanks a lot!
Marc

User avatar
johnpark
 
Posts: 985
Joined: Wed Mar 25, 2009 2:15 pm

Re: 4x4 Neotrellis arduino USB midi controller

Post by johnpark »

Sorry, just seeing this now. That issue often happens when buttons are pressed at an angle. Does it happen if you press directly from the top? Some enclosure designs help prevent this better than others.

Locked
Please be positive and constructive with your questions and comments.

Return to “General Project help”