Old Yesterday, 09:46 PM   #1
Robbie Hogg
Human being with feelings
 
Join Date: Jan 2017
Location: Australia
Posts: 31
Default DIY MIDI device

G'day all.
So i have an idea and seen as i can't find anything that suits what i am after i have had the thought of making my own MIDI device.

Currently i am using the Nektar Panorama T6 and love it but there is a few things it can't do (probably can i just haven't figured out how to do it)
Toggling track arm is one thing i need and a foot switch for running a custom action for toggling record at the next marker.

What i am thinking of doing is having 8 buttons for toggling track arm for 8 separate tracks at a time.
Two button for cycling through 8 tracks at a time. Example tracks 1 to 8, press a button and now able to select tracks 9 to 16, press button again and go up to the next bank of tracks or press the other button and go back a bank of 8 tracks.
Above each button would be a 3 digit led with the track number on it and an led showing if the track is armed or not.
Also have a jack on it so i can plug in a foot switch.

Thinking of using the Arduino Teensy for doing this.

Has anyone else done their own MIDI controller or think that what i am thinking of is possible?
Robbie Hogg is offline   Reply With Quote
Old Yesterday, 10:09 PM   #2
mschnell
Human being with feelings
 
mschnell's Avatar
 
Join Date: Jun 2013
Location: Krefeld, Germany
Posts: 7,705
Default

I suppose you don't want to use plain old 5-pin Midi, but Midi over USB.

I have a decent background engineering embedded devices with USB interface, but I did not do a Midi over USB device yet, just did some research on that.

In this forums, there has been a discussion on the Teensy, so this supposedly is a viable way to go.

I mostly used PIC32 chips for designing USB gadgets. This definitively is a good way to design Midi over USB gadgets. There are lots of development boards by Microchip with these chips. This is a more "professional" world then Arduino, providing appropriate pros and cons.

For doing a low count of devices or for providing a much more advanced performance using Linux enabled hardware such as one of the BeagleBone or RaspberryPi variants provides a very advanced and "standard" (i.e. not delicately "deeply embedded") software infrastructure.

-Michael
mschnell is offline   Reply With Quote
Old Yesterday, 10:37 PM   #3
Robbie Hogg
Human being with feelings
 
Join Date: Jan 2017
Location: Australia
Posts: 31
Default

I should have probably said that it will be MIDI over usb.

I have been thinking about it for a while, did some searches and there seems to be a fair bit of info available in the Teensy board and have seen a few Youtube videos of MIDI devices being built with it.
Also saw one of the most insane sequencers built around the Teensy, just today on Youtube by someone on this forum.
https://www.youtube.com/watch?v=IH-grgRmClY

Will have a look into the boards you have suggested.

Also have a Raspberry Pi so i will look into a MIDI device using that as well, though from memory people were suggesting that the Arduino was a better option then the Pi.

Also have my Pi setup as a retro gaming unit at the moment. Don't think i'm ready to give that up at the moment.

Thanks Michael
Robbie Hogg is offline   Reply With Quote
Old Yesterday, 11:04 PM   #4
karbomusic
Human being with feelings
 
karbomusic's Avatar
 
Join Date: May 2009
Posts: 24,571
Default

It's possible with Teensy, I did it with Arduino...



__________________
If it requires a null test to find it, it is by definition minuscule.
karbomusic is online now   Reply With Quote
Old Today, 01:09 AM   #5
mschnell
Human being with feelings
 
mschnell's Avatar
 
Join Date: Jun 2013
Location: Krefeld, Germany
Posts: 7,705
Default

Quote:
Originally Posted by Robbie Hogg View Post
Also have a Raspberry Pi ...
The advantage of a Linux system is that you can use a lot of different programming languages (e.g. Python) instead of just C, and that you can use a standard native IDE by simply connecting Monitor Mouse and Keyboard for the development.

And in the end you even can run Reaper on the device ...

-Michael
mschnell is offline   Reply With Quote
Old Today, 04:02 AM   #6
Robbie Hogg
Human being with feelings
 
Join Date: Jan 2017
Location: Australia
Posts: 31
Default

@karbomusic:
Nice work man. Was it pretty easy to do all the coding and setup for use with Reaper?

@Michael:
I will have a bit more of a look into it, been doing some more reading and it looks like the Pi Zero can be setup as a native MIDI device.

Would love to see any pics or videos of home made MIDI devices if anyone else feels like sharing.
Robbie Hogg is offline   Reply With Quote
Old Today, 04:13 AM   #7
karbomusic
Human being with feelings
 
karbomusic's Avatar
 
Join Date: May 2009
Posts: 24,571
Default

Quote:
Originally Posted by Robbie Hogg View Post
@karbomusic:
Nice work man. Was it pretty easy to do all the coding and setup for use with Reaper?
Not really other than dealing with getting the code working well for endless encoders. I ended up posting on GitHub..

https://github.com/karbomusic/ThreeKnobMIDI
__________________
If it requires a null test to find it, it is by definition minuscule.
karbomusic is online now   Reply With Quote
Old Today, 04:19 AM   #8
Robbie Hogg
Human being with feelings
 
Join Date: Jan 2017
Location: Australia
Posts: 31
Default

Will have a look at the code and see how much is involved.
Thanks for sharing.
Robbie Hogg is offline   Reply With Quote
Old Today, 04:53 AM   #9
mschnell
Human being with feelings
 
mschnell's Avatar
 
Join Date: Jun 2013
Location: Krefeld, Germany
Posts: 7,705
Default

Quote:
Originally Posted by Robbie Hogg View Post
looks like the Pi Zero can be setup as a native MIDI device..
I am pretty sure that all PIs do feature USB "OTG" hardware that allows for being configured as well as host as as device.

I am pretty sure that Debian Linux provides Midi drivers as well as host as as device.

-Michael
mschnell is offline   Reply With Quote
Old Today, 12:25 PM   #10
cyrano
Human being with feelings
 
cyrano's Avatar
 
Join Date: Jun 2011
Location: Belgium
Posts: 4,440
Default

MIDI latency:

Mac: 5 ms
iPhone: 9.8 ms
Arduino: 11 ms
Arduino to Raspberry: 19.8 ms
Bela: 0.5 ms

What's Bela?

Bela is a Beaglebone Black clone, developed by Queen Mary University of London, UK. See:

https://bela.io/

I've just found this late thursday night, but it looks very promising. Open source, 2 audio in, 2 out, 16 digital IO, 8 analog IO, support for Pure Data, SuperCollider, FAUST, and Csound. And more.
__________________
“It has become appallingly obvious that our technology has exceeded our humanity” Albert Einstein
cyrano is online now   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 12:40 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.