# Sample Trigger Module Ideas

**URL:** <https://lookmumnocomputer.discourse.group/t/sample-trigger-module-ideas/1522>\
**Category:** KOSMO MODULES\
**Created:** [July 29, 2020, 3:38am UTC](https://lookmumnocomputer.discourse.group/t/sample-trigger-module-ideas/1522 "2020-07-29T03:38:40Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![hawky](https://yyz2.discourse-cdn.com/free1/user_avatar/lookmumnocomputer.discourse.group/hawky/32/2927_2.png) [@hawky](https://lookmumnocomputer.discourse.group/u/hawky)\
**Post date:** [July 29, 2020, 3:38am UTC](https://lookmumnocomputer.discourse.group/t/sample-trigger-module-ideas/1522/1 "2020-07-29T03:38:40Z")

</div>

Hey!  
 So, I’ve been into electronics for a while. Recently, I built a +/- 12v power supply to get into modular. I am almost done making a basic 1v/oct oscillator, and I already have a synth and a Keystep, so once that’s running I’ll have some decent chords and bass. However, I want to get into drums.  
 Synthesizing them is probably hard, so I figure I want something to trigger a sample. The sparkfun wavtrigger seems a little overfeatured for what i want and is VERY expensive. I think I will buy a Teensy 3.2 microcontroller. it’s arduino-compatible and has a builtin DAC (perfect for audio!) and teensy has a super robust audio library.  
 Does anyone have experience with this? Is there a super simple solution I’m missing?

---

<div class="post-metadata">

**Author:** ![ChristianBloch](https://yyz2.discourse-cdn.com/free1/user_avatar/lookmumnocomputer.discourse.group/christianbloch/32/56_2.png) [@ChristianBloch](https://lookmumnocomputer.discourse.group/u/ChristianBloch)\
**Post date:** [July 29, 2020, 4:01am UTC](https://lookmumnocomputer.discourse.group/t/sample-trigger-module-ideas/1522/2 "2020-07-29T04:01:15Z")

</div>

Isn’t the WavTrigger, like, $40? For a full set of drum samples, that seems fairly reasonable

---

<div class="post-metadata">

**Author:** ![hawky](https://yyz2.discourse-cdn.com/free1/user_avatar/lookmumnocomputer.discourse.group/hawky/32/2927_2.png) [@hawky](https://lookmumnocomputer.discourse.group/u/hawky)\
**Post date:** [July 29, 2020, 4:12am UTC](https://lookmumnocomputer.discourse.group/t/sample-trigger-module-ideas/1522/3 "2020-07-29T04:12:24Z")

</div>

It’s $51. It’s a totally reasonable price don’t get me wrong. I just want something with fewer features that costs less.

---

<div class="post-metadata">

**Author:** ![telec16](https://yyz2.discourse-cdn.com/free1/user_avatar/lookmumnocomputer.discourse.group/telec16/32/4510_2.png) [@telec16](https://lookmumnocomputer.discourse.group/u/telec16)\
**Post date:** [July 29, 2020, 4:44am UTC](https://lookmumnocomputer.discourse.group/t/sample-trigger-module-ideas/1522/4 "2020-07-29T04:44:47Z")

</div>

I think your main problem is space: audio files of ~good enough quality can get pretty big (for a microcontroller), so you’ll probably need an external memory (and also for the sake of simplicity of use). You can also try to generate them on the fly (this can be quite nice, as you can adjust everything live, and have a more random analogy sound!), like this: [https://www.youtube.com/watch?v=ANN4cP7pn2Y](https://www.youtube.com/watch?v=ANN4cP7pn2Y).

You also want to check the speed of your DAC, and generally speaking, microcontroller’s DACs are relatively slow. But this Teensy seems to have a fairly fast DAC (see here: [https://forum.pjrc.com/threads/26036-Fastest-DAC-speed-possible-for-Teensy-3-1-using-Arduino](https://forum.pjrc.com/threads/26036-Fastest-DAC-speed-possible-for-Teensy-3-1-using-Arduino)). But I couldn’t find this info in the datasheet ([https://www.nxp.com/docs/en/reference-manual/K20P64M72SF1RM.pdf](https://www.nxp.com/docs/en/reference-manual/K20P64M72SF1RM.pdf))

---

<div class="post-metadata">

**Author:** ![hawky](https://yyz2.discourse-cdn.com/free1/user_avatar/lookmumnocomputer.discourse.group/hawky/32/2927_2.png) [@hawky](https://lookmumnocomputer.discourse.group/u/hawky)\
**Post date:** [July 29, 2020, 4:49am UTC](https://lookmumnocomputer.discourse.group/t/sample-trigger-module-ideas/1522/5 "2020-07-29T04:49:41Z")

</div>

Thanks for the reply! I think that the teensy 3.2 has enough memory for just a few samples, and I’m not sure I need very high fidelity right now. I’ve seen projects (notably this one [https://m.youtube.com/watch?v=gL5llIO3NcU](https://m.youtube.com/watch?v=gL5llIO3NcU)) that seem to do fine in terms of space for samples. DAC speed totally didn’t occur to me, but you’re right that that is super important. Thanks for all of the advice!

---

<div class="post-metadata">

**Author:** ![telec16](https://yyz2.discourse-cdn.com/free1/user_avatar/lookmumnocomputer.discourse.group/telec16/32/4510_2.png) [@telec16](https://lookmumnocomputer.discourse.group/u/telec16)\
**Post date:** [July 29, 2020, 5:03am UTC](https://lookmumnocomputer.discourse.group/t/sample-trigger-module-ideas/1522/6 "2020-07-29T05:03:45Z")

</div>

woah! Nice project!  
It seems that you can also use the PWM with the audio library (see here: [https://www.pjrc.com/monolith-synth/](https://www.pjrc.com/monolith-synth/)) ?  
And the github page: [https://github.com/PaulStoffregen/MakerFaire2017](https://github.com/PaulStoffregen/MakerFaire2017)

---

<div class="post-metadata">

**Author:** ![hawky](https://yyz2.discourse-cdn.com/free1/user_avatar/lookmumnocomputer.discourse.group/hawky/32/2927_2.png) [@hawky](https://lookmumnocomputer.discourse.group/u/hawky)\
**Post date:** [July 29, 2020, 5:10am UTC](https://lookmumnocomputer.discourse.group/t/sample-trigger-module-ideas/1522/7 "2020-07-29T05:10:10Z")

</div>

Ooh that’s super cool!

---

<div class="post-metadata">

**Author:** ![eric](https://avatars.discourse-cdn.com/v4/letter/e/898d66/32.png) [@eric](https://lookmumnocomputer.discourse.group/u/eric)\
**Post date:** [July 29, 2020, 5:34am UTC](https://lookmumnocomputer.discourse.group/t/sample-trigger-module-ideas/1522/8 "2020-07-29T05:34:25Z")

</div>

Take a look here if you want cheap sample playback at a reasonable quality :

> **[Audio Hacking on the ESP8266](https://www.hackster.io/janost/audio-hacking-on-the-esp8266-fa9464)**
>
> Building synthesizers on the ESP8266. By Jan Ostman.

He (Jan Ostman) has also an open source eurorack drum module, and other goodies worth looking at :  
[https://www.hackster.io/janost](https://www.hackster.io/janost)

---

<div class="post-metadata">

**Author:** ![Caustic](https://yyz2.discourse-cdn.com/free1/user_avatar/lookmumnocomputer.discourse.group/caustic/32/15588_2.png) [@Caustic](https://lookmumnocomputer.discourse.group/u/Caustic)\
**Post date:** [July 29, 2020, 2:16pm UTC](https://lookmumnocomputer.discourse.group/t/sample-trigger-module-ideas/1522/9 "2020-07-29T14:16:24Z")

</div>

Ive experimented with I2c EEPROMs and arduinos and DACing the audio. It worked, it was just slow. Have yet to try with teensy to see if the bottle neck was the arudino, which i suspect it was. It coulda been the serial speed wasnt high enough to retrieve and process across the pwm. I do know it worked however because recorded the output, and sped up the result and it sounded perfect. So its just a matter of playing back at the right sample rate.

Here is the v1 experiment if you want to see:

> [@EEPROM programming for Drum Sample output](https://lookmumnocomputer.discourse.group/t/eeprom-programming-for-drum-sample-output/626):
>
> Hello yall. I made some progress today on my pet project. The basic idea is to load up some roms with sample data and have an arduino play it back. It is still as of writing this topic a bit buggy, but it is far enough along to share some progress i think. This demos three things, The output of a linndrum’s snare eeprom dump raw. The output off of the eeprom fed through the arduino and output one of it’s pins The output, then processed by a Sallen-Key low-pass Filter. I am presently using …

If you just want a solution that works rather than an experiment that might not, get the wav trigger. You might find it a lil cheaper in the long run.

If you rather risk not having a project that works and would rather experiment, go for it, thats how new awesome things get built.

Just keep in mind polyphony is a thing with the wav trigger, and what you build may not have that support.

---

<div class="post-metadata">

**Author:** ![hawky](https://yyz2.discourse-cdn.com/free1/user_avatar/lookmumnocomputer.discourse.group/hawky/32/2927_2.png) [@hawky](https://lookmumnocomputer.discourse.group/u/hawky)\
**Post date:** [July 29, 2020, 11:34pm UTC](https://lookmumnocomputer.discourse.group/t/sample-trigger-module-ideas/1522/10 "2020-07-29T23:34:02Z")

</div>

Ooh, thanks for the reply! I’ll check out your project.

---

<div class="post-metadata">

**Author:** ![Caustic](https://yyz2.discourse-cdn.com/free1/user_avatar/lookmumnocomputer.discourse.group/caustic/32/15588_2.png) [@Caustic](https://lookmumnocomputer.discourse.group/u/Caustic)\
**Post date:** [July 30, 2020, 4:44am UTC](https://lookmumnocomputer.discourse.group/t/sample-trigger-module-ideas/1522/11 "2020-07-30T04:44:39Z")

</div>

i just want to be clear, the wav trigger is absolutely the best way to go if you just want something that will work with the least money, quality, and time investment. Mine was for fun, challenge, and hubris. I also like low fi samples.

---

<div class="post-metadata">

**Author:** ![hawky](https://yyz2.discourse-cdn.com/free1/user_avatar/lookmumnocomputer.discourse.group/hawky/32/2927_2.png) [@hawky](https://lookmumnocomputer.discourse.group/u/hawky)\
**Post date:** [July 30, 2020, 5:51am UTC](https://lookmumnocomputer.discourse.group/t/sample-trigger-module-ideas/1522/12 "2020-07-30T05:51:57Z")

</div>

I am fine with lofi samples, and this whole thing is mostly for fun and hubris! That’s my I’m building my own KOSMO mixer modules instead of buying them for like $80 a pop.

---

<div class="post-metadata">

**Author:** ![Caustic](https://yyz2.discourse-cdn.com/free1/user_avatar/lookmumnocomputer.discourse.group/caustic/32/15588_2.png) [@Caustic](https://lookmumnocomputer.discourse.group/u/Caustic)\
**Post date:** [July 31, 2020, 3:45am UTC](https://lookmumnocomputer.discourse.group/t/sample-trigger-module-ideas/1522/13 "2020-07-31T03:45:02Z")

</div>

In that case, just lemme know if you need to know how serial interfacing and talking to the eeproms works.
