Hi guys a couple of years ago I started with a personal project of building a home made electronic drum kit but I didn't just wanted to do the kit, I wanted to build a trigger-to-midi device too. Because I had no experience with electronics I spent my summer vacations learning about electronics and a little about microcontrollers. Got my hand on some samples from atmel and played with the uCs.
Summer break was over and I didn't had my kit done and I wanted to play drums so I made the decision to buy an Alesis Trigger IO and it wall went perfectly.
Few months ago I sold my kit with the main purpose of building a new one (lol) but with the kit the Trigger Io was sold too so now I'm focused on get my hands on a diy drum module. There are many number of open-hardware/source projects around the internet but none satisfies me, I must be able to come up with something! Ultimately I want something that hasn't been done as an open project and that a full diy drum module with sound output. I know it sounds a lot, and it is but I have time and, at least for now, I'm motivated!
I've been doing some research and found a website that sells one IC (SAM3816) with the following characteristics:
Package LQFP144, pitch 0.5 (full datasheet here)
# on chip DSP 16
DSP type P24
max. Polyphony >128 with effects
Internal Memory 32kx24 RAM + 16x 2kx24 DSP RAM, 16k Flash
External Memory 2x 256MB Flash, SRAM, DDR/SDRAM
I/O Interfaces USB, serial MIDI, 8bit and 16bit parallel Host, SPI, GPIO
Audio I/O 16 IN / 16 OUT (digital)
AFAIK it would do the job but I can't find any freely available library, toolchain or programmer and given the fact that they sell evaluation boards and devboards with the SDK in a cdrom, they must only provide the programming tools if I buy them. Although they sell the chips as a solo unit.
Introduction done, what I want to know from you guys is that if I'm able to do something with the teensy and the external codec VS1053. The first brainstorm for the project is something like this: Drum samples go an sd-card or some other memory device, a microcontroller (the teensy or any other IC that you think better suits this project) to do the piezo readings, load the associated sample from the sd-card, do any needed mixing if more than one piezo are triggered at the same time and finally send it to the VS1053.
First problem I see here is that the mixing should be done by the codec or the unit that will output the signal for an external DAC, am I right? Or I can do the mixing directly on the unparsed, lets say, mp3 file, and send it for the codec?
I guess the main problem to solve here is, how can I play more than one sound at the "same time" as soon as one or more piezos are struck?
I guess that the sd-card isn't enough, I need a way to cache most of the samples because the speed rate from the sd-card might not be enough to stream the data for immediate playback.
And probably this type of project isn't suited for the teensyduino libraries.
Sorry for the big post, I understand if you don't want to read it all.
Regards, João Gonçalves
Summer break was over and I didn't had my kit done and I wanted to play drums so I made the decision to buy an Alesis Trigger IO and it wall went perfectly.
Few months ago I sold my kit with the main purpose of building a new one (lol) but with the kit the Trigger Io was sold too so now I'm focused on get my hands on a diy drum module. There are many number of open-hardware/source projects around the internet but none satisfies me, I must be able to come up with something! Ultimately I want something that hasn't been done as an open project and that a full diy drum module with sound output. I know it sounds a lot, and it is but I have time and, at least for now, I'm motivated!
I've been doing some research and found a website that sells one IC (SAM3816) with the following characteristics:
Package LQFP144, pitch 0.5 (full datasheet here)
# on chip DSP 16
DSP type P24
max. Polyphony >128 with effects
Internal Memory 32kx24 RAM + 16x 2kx24 DSP RAM, 16k Flash
External Memory 2x 256MB Flash, SRAM, DDR/SDRAM
I/O Interfaces USB, serial MIDI, 8bit and 16bit parallel Host, SPI, GPIO
Audio I/O 16 IN / 16 OUT (digital)
AFAIK it would do the job but I can't find any freely available library, toolchain or programmer and given the fact that they sell evaluation boards and devboards with the SDK in a cdrom, they must only provide the programming tools if I buy them. Although they sell the chips as a solo unit.
Introduction done, what I want to know from you guys is that if I'm able to do something with the teensy and the external codec VS1053. The first brainstorm for the project is something like this: Drum samples go an sd-card or some other memory device, a microcontroller (the teensy or any other IC that you think better suits this project) to do the piezo readings, load the associated sample from the sd-card, do any needed mixing if more than one piezo are triggered at the same time and finally send it to the VS1053.
First problem I see here is that the mixing should be done by the codec or the unit that will output the signal for an external DAC, am I right? Or I can do the mixing directly on the unparsed, lets say, mp3 file, and send it for the codec?
I guess the main problem to solve here is, how can I play more than one sound at the "same time" as soon as one or more piezos are struck?
I guess that the sd-card isn't enough, I need a way to cache most of the samples because the speed rate from the sd-card might not be enough to stream the data for immediate playback.
And probably this type of project isn't suited for the teensyduino libraries.
Sorry for the big post, I understand if you don't want to read it all.
Regards, João Gonçalves