If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Drum pad

Hi all; using Teensy 3.2 and some and piezo sensors I built a nice drum pad (with touch sensitivity, dalay, filering, ..); now I'd like to improve the machine with more sounds, but of course inner memory is not big enough. I can actually store 8 samples, and the room is over. My code is based on SamplePlayer example (I paste it here just for our convenience):

My idea is to store multiple audio files into an SD card and pull audio files into flash memory when required.. Is it possible? I prefer to keep audio files in memory for playing multiple sounds without problems..
Thanks a lot!

Hey Sandro, I've got the same problem. Could you explain (and maybe show a photo) how you hooked the W25Q128FV chip to the teensy? I have a teensy 3.5 with the same audio board as you. I am trying to make a miniature steel drum with 30 sensors.

Hi Ofishal, you can buy one W25Q128FV in SMD package and solder it on the prepared position of the Audio Adaptor, or buy the traditional DIL8 package and connect its pins to the corresponding pins of the Audio Adaptor; both choices are valid in my experience (I prefer the first).

Thanks for the reply Sandro, gosh I wasn't sure you were still around since 2016. I'm really struggling trying to add all the sounds I need and have run out of memory. I've been trying to put the sounds on an SD card, but being very inexperienced I can't figure out how to do that either.

I think your solution of just adding flash memory and using the same code approach as simpleplayer (with h and cpp files in flash memory) is the best.

So I'm not sure what "SMD pacage" means or which "corresponding pins" exist on the audio adaptor. I will work on trying to figure this out, unless you have a quick answer for me.

Also, is there additional code to write to get the new flash memory to work?

If you have the code for your program, could you share it and I can change it to access my steel drum notes?

Yes I'm here, developing an amazing midi expander
Ok, when I'll be back from my vacation I'll look for the code I wrote for my drum pad, much simpler than your I belive.
Here in this pic the particular of the place for the flash memory on the Audio Adaptor:

I put toghether 4 "players": 4 it's an arbitrary number, you can use less or more players, depends on how many contemporary voices you want. Audio x.RAW files must be written on flash memory, you can use "CopyFromSD" example in Arduino IDE to copy files from SD card to flash memory.
bye

Sandro, I'm not sure I understand. I purchased and soldered on a new flash memory chip onto the audio board. My sketch (program) still shows that 77% is used and I've only connected nine (9) sensors. I want to connect 30 separate sensors and have 30 separate voices (sounds).

1) Is there software I need to add to my program to access the new flash memory card?

2) Or does it automatically access the flash and perhaps it is not soldered properly?

It has an example sketch to test the hardware. If you run it succesfuly, you can run the sketch to copy files from a SD card. Then, you can check the Audio library example for playing raw audio files from serial flash. Note that for serial flash memory the audio library only supports RAW format files for playback.

It's not so difficult if you use a very thin soldering iron tip, the right temperature ana a good tin wire... This is my procedure: place the IC on its position, fix it perfectly with scotch tape, check with magnifier, than solder one side, remove the tape and go on to the other side; than remove with a solvent the solder paste; again magnifier lens, than test with a tester each contact...
One more suggestion, but I believe this not new for you: most active devices like these are terribly scared of high impulsive tension, more than hot teperature, so try to avoid contact with plastic/not conductive materials that can host electrostatic charge.

Hi all; using Teensy 3.2 and some and piezo sensors I built a nice drum pad (with touch sensitivity, dalay, filering, ..); now I'd like to improve the machine with more sounds, but of course inner memory is not big enough. I can actually store 8 samples, and the room is over. My code is based on SamplePlayer example (I paste it here just for our convenience):

[...]
My idea is to store multiple audio files into an SD card and pull audio files into flash memory when required.. Is it possible? I prefer to keep audio files in memory for playing multiple sounds without problems..
Thanks a lot!

C0d3man, I would like to test your piano program and visited the site you referenced (https://codeberg.org/dcoredump/MicroMDAEPiano), but am unclear what files need to be in the folder of the program and/or which programs need to be on an SD card. Or am I too mixed up to understand how the program works. And lastly, are you using a board with midi hardware, and a midi keyboard connected to a midi sound device?

C0d3man, I would like to test your piano program and visited the site you referenced (https://codeberg.org/dcoredump/MicroMDAEPiano), but am unclear what files need to be in the folder of the program and/or which programs need to be on an SD card. Or am I too mixed up to understand how the program works. And lastly, are you using a board with midi hardware, and a midi keyboard connected to a midi sound device?

The code is currently designed for the TeensyMIDIAudio breakout board and is still a work in progress (I'm just desperate at programming a chorus effect). It should work without a display but changing parameters is not easy (storing is withoud LCD/Encoders impossible). Some parameters are mapped to MIDI-CC. The breakout board has a DIN-MIDI circuit onboard and there is a solution for using the USB-Host of the Teensy-3.6 for connecting a MIDI keyboard.

You don't need a SD card for MicroMDAEpiano (but for MicroDexed you can use a simple 2GB SD card for SYSEX files). There is a "hex" folder and you can install the
precompiled hex file directly using the Teensy loader:https://www.pjrc.com/teensy/loader.html.

Another way: I just added a folder named "third-party". Copy them to your library folder and try to compile/upload.

Steel drum

Originally Posted by ofishal

C0d3man, I would like to test your piano program and visited the site you referenced (https://codeberg.org/dcoredump/MicroMDAEPiano), but am unclear what files need to be in the folder of the program and/or which programs need to be on an SD card. Or am I too mixed up to understand how the program works. And lastly, are you using a board with midi hardware, and a midi keyboard connected to a midi sound device?

How did your steel drum project work? I am beginning the process of building a digital steel drum and would appreciate you insight.