/
070 Sample Player

070 Sample Player

Start with simple mono sample player, playing internal samples with various compressions.



Simple compression algo:


Here are some lame samples.  I promise to find better ones



Next we add playback speed adjust with POT1.


After that we will add piezos to control timing and amplitude.  As many as 4 of them, so we'll add 4-voice polyphony.

Two pots control the pitches of the 4 piezos:


If you have more pots, you can dedicate one pot per piezo.



This is capable of playing samples in high flash memory (> 2M), but we need to be able to store them there.  This utility does that:



(The code works, but it needs polish.)  The nice thing about the loader is that subsequent Arduino code downloads won't disturb the samples in high memory.

With the 4MB version of PicoADK, that frees up 2MB for samples, which is about 10 seconds of uncompressed audio.

Next, we'll describe how to format and load your own samples.







Related content

080: Wavetable Synth
080: Wavetable Synth
More like this
075 Make Your Own Samples
075 Make Your Own Samples
More like this
040: Adding MIDI
040: Adding MIDI
More like this
Demo 5: Custom SAMD51 processor
Demo 5: Custom SAMD51 processor
More like this
200: Analog -> Digital -> Analog on the PicoADK2
200: Analog -> Digital -> Analog on the PicoADK2
More like this
050: High-Accuracy ADC
050: High-Accuracy ADC
More like this

Copyright © 2024 The President and Fellows of Harvard College * Accessibility * Support * Request Access * Terms of Use