<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.14.2">
</HEAD>
<BODY>
Le mardi 26 juin 2007 &#224; 13:35 +0200, henrik wurster a &#233;crit&nbsp;:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">hello gang,</FONT>

</PRE>
</BLOCKQUOTE>
<BR>
Hi Henrik!<BR>
<BR>
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">I have a project with pd using piezo sensors attached to my bongos</FONT>
<FONT COLOR="#000000">underneath the skins. they actually work not too bad as microphones,</FONT>
<FONT COLOR="#000000">but what I want to do is trigger the strokes being played on the bongos.</FONT>
<FONT COLOR="#000000">in the end I want to trigger matching samples which I recorded previously.</FONT>
<FONT COLOR="#000000">in my research how to detect small percussion instruments, I stumbled</FONT>
<FONT COLOR="#000000">upon the bonk object, but don`t know how to work with it, because I am</FONT>
<FONT COLOR="#000000">really new to pd...:)</FONT>
</PRE>
</BLOCKQUOTE>
<BR>
I recently had to develop something similar, a darbuka player triggering video samples, launching effects and so on.<BR>
<BR>
Technically,&nbsp; we pasted a very basic Yamaha DT20 piezo microphone (24&#8364;)&nbsp; to the socket of the darbouka, not to the skin because of tone alteration. We sticked the pieoz to the faience way of &quot;Patafix&quot;, french name for UHU Tac in Germany/Schweiz, (double sided tape doenst work since most percussive instruments are round ;-). The Yamaha is ok , it's cheaper and not so hard to DIY but i'm no soldering iron maestro.<BR>
<BR>
I made a patch that detects odd/even beats (very basic, [alternate] ) , silences and pitch using the Aubio library by piem. Why not bonk~? it reminds me too much of the old Max/M$P days...<BR>
<BR>
Basically, onsets trigger a pulsating video effect, whose value increases across time and the player's loudness (using aubioonset~ and a settable threshold value for better live feeling)<BR>
onsets also triggers pitch detection: when this value is located within various intervals, it modifies the video sequence being played (kidn of sampler). I use chained [moses] objects for that purpose.<BR>
i also&nbsp; track gain&nbsp; after a [env~] and [oneshot] object cleared by the &quot;odd beat&quot; onset detection to track &quot;silence&quot; and have the video faint away<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">I dont expect any patching, but can anybody help me to give me an idea</FONT>
<FONT COLOR="#000000">how I could start buiding the patch ? I thought about loading the samples</FONT>
<FONT COLOR="#000000">into an array, but does bonk work at all checking sounds with recorded</FONT>
<FONT COLOR="#000000">samples ? thanks for any piece of advice</FONT>

</PRE>
</BLOCKQUOTE>
<BR>
Actually, you've got two sub-programs: a first one that detect pitch/onset , then the audio sample player, + some glue around it.<BR>
<BR>
bonk~/fiddle~ only fits in the first. <BR>
<BR>
++<BR>
<BR>
OH<BR>
<BR>
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">best regards,</FONT>
<FONT COLOR="#000000">- henrik</FONT>

<FONT COLOR="#000000">_______________________________________________</FONT>
<FONT COLOR="#000000"><A HREF="mailto:PD-list@iem.at">PD-list@iem.at</A> mailing list</FONT>
<FONT COLOR="#000000">UNSUBSCRIBE and account-management -&gt; <A HREF="http://lists.puredata.info/listinfo/pd-list">http://lists.puredata.info/listinfo/pd-list</A></FONT>
</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>