Stupid question: Have you ever considered to use snd-follow ?
I think snd-follow was designed to do similar things like you're trying
to do in a much easier way. But I'm not sure wether snd-follow works
with Nyquist in Audacity.
audacity-nyquist@... schrieb am 20.01.06 01:52:14:
> I've got an idea for a plug in. I have almost no idea what it will sound like, but I can describe what it will do.
> It will run through each sample, (probably using snd-fetch) and find each point where the sample crosses zero. It will also have been keeping track of the peak. Each time it reaches a zero crossing, it will output a half-wave scaled to the dimensions specified by the peak and the zero points on either side of it.
> Here's a picture. Blue is before, red is after.
> But the trick is, everything I've done so far has involved transforming the sound as a whole. I know I can treat snd-fetch kind of like an input stream, taking in samples of sound sequentially, but I'm not clear on how I would output the results, one segment at a time, as it is calculated.
> Or is this a sign of imperative language bias, and I should be approaching this in an entirely different way?
The author of this email does not necessarily endorse the
following advertisements, which are the sole responsibility
of the advertiser:
Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193
I didn't know about snd-follow. I don't think I will use that, because I
have plans to extend this filter once I create the simplest form. I'm
starting with straight lines, but once I have that working, I'll create
options for curved lines, for example.
My biggest hurdle right now is handling the function-based language. If
this were an imperative language, I know exactly how I would do this.
I'm not as used to how to organize things in this language.
>Date: Sun, 22 Jan 2006 10:21:29 +0100
>Subject: Re: [Audacity-nyquist] Output stream?
>Stupid question: Have you ever considered to use snd-follow ?
>I think snd-follow was designed to do similar things like you're trying
>to do in a much easier way. But I'm not sure wether snd-follow works
>with Nyquist in Audacity.