<div dir="ltr">Hey Joel,<div><br></div><div>Its not currently possible to create a UAna ChuGin, though this is something we are definitely considering for the future. If it were me doing this right now I would buffer FFT frames internally in a UGen and spit out pitches from a member function or variable as they become available. You would probably have to write your own FFT (or use code/a library from somewhere else), which is sort of lame/inefficient from a software design perspective, given that ChucK already has its own FFT implementation built-in. </div>

<div><br></div><div>That being said, I think a dependable, go-to pitch tracker would be a great addition to ChucK's chugin library, so please keep us posted on your work and we would be happy to help with any general guidance or specific questions. This is the kind of use case we want to make easy, or at least not unnecessarily cumbersome. </div>

<div><br></div><div>Im planning to write a solid chugin tutorial some time in the next month or so, but for now, yes, the paper and the source code are the primary documentation. A good portion of ChucK's internal ugens/libraries use the ChuGin-style API (but are compiled in statically of course). So the ChucK source tends to have more breadth in showing how the system works than most of the existing chugins, which are generally pretty simple. </div>

<div><br></div><div>spencer</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Dec 23, 2013 at 6:04 PM, Joel Matthys <span dir="ltr"><<a href="mailto:jwmatthys@yahoo.com" target="_blank">jwmatthys@yahoo.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I'm trying to implement a good pitch tracker as a ChuGin. Is there any kind of tutorial or walk-through that anyone has done?<br>

<br>
A few questions:<br>
- Is it possible to create a UAna ChuGin or must it be a UGen?<br>
<br>
- How do you suggest implementing an FFT-based instrument which uses 1024 or 2048 sample frames for analysis?<br>
<br>
- Besides the CCRMA paper and the source code, is there any documentation of ChuGin programming?<br>
<br>
Thanks!<br>
Joel<br>
______________________________<u></u>_________________<br>
chuck-users mailing list<br>
<a href="mailto:chuck-users@lists.cs.princeton.edu" target="_blank">chuck-users@lists.cs.<u></u>princeton.edu</a><br>
<a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" target="_blank">https://lists.cs.princeton.<u></u>edu/mailman/listinfo/chuck-<u></u>users</a><br>
<br>
</blockquote></div><br></div>