I don't understand this cycle and zero-crossing thing...

2010/8/17 Roman Haefeli <reduzent@gmail.com>
On Tue, 2010-08-17 at 12:59 +0200, martin brinkmann wrote:

> i will try this when i have found a way to extract
> single-cycle waves from audio input in pd...

Not yet tried it myself, but what about writing live input to a table
(for instance with [tabwrite~]) in order to have access to the audio
data with message based objects? With those it should be fairly easy to
the detect the exact position of a zero crossing. For finding a single
cycle, it would be sufficient to find a positive crossing - for
instance-  and from there find the next one, so you have the exact end
points of one single cycle.

Of course, there might be waveforms which have several zero crossings
per cycle, but the above approach might be a start.

Roman




_______________________________________________
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list