Me and my classmates are currently building a drumcomputer for a school project. We study electrical engineering in the first year. I was hoping if you could help me with this.
Our drumcomputer prototype consists of the following things:
- 4 samples: 2 digital, 2 analog (4 channels)
- 16-step sequencer
- 4 analog effects, one per channel
- Final mixer
- Power Supply
We use an Arduino Due for the controller, mainly the DUE because of the DAC outputs. It has the following functions: - Send out the 2 digital samples out of the 2 DAC's - Send pulses to the analog sample circuit to start it - Control the sequencer
We've set up the DAC with the timer-interrupts, and I've worked with it to send out a standard sine. Now comes the tricky part, finding a proper 12-bit drum sample to put into an array and play it through the DAC. I was wondering if there was a way to convert a .wav file to 12 bit (4096) steps so that it can be placed directly into the code. I am able to convert a certain .wav to 12-bit and 44.1 kHz (the specification I'd like to have) or other bitrates.
Thanks a lot in advance,