Go Down

Topic: Trigger Multiple Sounds With Midi (Read 170 times) previous topic - next topic

aajr95

Hello,

I was wondering if it would be possible to use arduino to decode midi inputs and have it play audio files on an SD card like a sampler for example.

My concern is multiple samples playing at once.

Could I use RAM for this?

PieterP

#1
Apr 21, 2017, 02:58 pm Last Edit: Apr 21, 2017, 02:58 pm by PieterP
The Arduino microcontrollers were never designed to do these kinds of things.
A Teensy board could probably do it, using an I²S DAC.
But something like a real 'computer' like a Raspberry Pi is going to be easier.
You could use the JUCE libraries for easy audio processing and MIDI I/O. (Not sure if it works on ARM, though.)

Pieter

Grumpy_Mike

Yes you can easily do this but not the bit about multiple samples at the same time. That takes more power than an Arduino has.

I have just done something with the Pi although MIDI is not its strong point because without hacking the kernel it won't do the MIDI baud rate.

Also on the Pi you have to scale the sample's amplitude if you want to play them together so that their is no clipping, which can sound very bad.

Their is a mixing demo on the Teensy for two channels but not sure how many it will stretch to. But MIDI is a lot simpler on the Teensy.

Go Up