<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On May 19, 2011, at 2:59 AM, luca paganotti wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi all,<br><br>I recently discovered the ChucK programming language and I have some questions for you about possible applications.<br><br>I'm trying to use/evaluate the usage of faust, pd and ChucK for a single application that is not directly related to music. I work as a developer for noise related applications (in particular we manage aircraft noise and in general noise pollution).<br> <br>I briefly explain what I would like to do. Let's say that I have a noise source that I would like to limit. Let's say that I measure the noise with a microphone in the vicinity of the noise source where i think the noise could disturb someone. The mic input is needed to compute some meaningfull indexes in a defined time interval, let's say 1 second or more, and then this value could be used as a reference to change the amplitude of the noise source if it exceeds the reference value.<br> I make a couple of examples:<br><ol><li>maybe I need to limit the noise production of a pub where there is live music so to reduce noise pollution outside the pub ...</li><li>maybe I gather with my friends to play some music in my house and I would like not to annoy my neighbours ...<br> </li></ol>I've read the ChucK docs and found that I can have analyzer units but at the moment they are only built in (fft, ifft, ...) and that in the near future there will be the possibility to develop my own analyzer unit ...<br> <br>So my questions are:<br><ol><li>Do you think that ChucK could be a profitable choice to have this job done?</li><li>Have you plans and timings for the user built analyzers unit support in ChucK?</li></ol>Thanks by now for any answer.<br> <br>Luca Paganotti</blockquote><br></div><div>Hello</div><div><br></div><div>I imagine that you have already looked at proprietary solutions provided by National Instruments DAQ applications where you can build your own analyzers/executables using objects already built into the programming environment and of course &nbsp;MATLAB.</div><div><br></div><div>Another possibility is using octave (which is a FOSS project with a MATLAB-like language). Octave can be built and linked to the fftw3 or FFTPack libraries. &nbsp;This enables the user to load functions like &nbsp;fft (a, n, dim) and ifft (a) to manipulate matrices. There are also other similar functions which enable applications with 2-dimensional and N-dimensional matrices. It is also possible to extend octave via dynamically-loaded modules using user-defined functions written in C, C++ and Fortran.&nbsp;</div><div><br></div><div>I don't know ChucK at all. There are likely others on this list who could advise you further.</div><div><br></div><div>E</div></body></html>