[PD] wave morphing
Claude Heiland-Allen
claudiusmaximus at goto10.org
Sun Jan 14 16:01:37 CET 2007
Malte Steiner wrote:
> I didnt looked into your patch yet but usually these waveforms are
> stored in one table as one sample. Your tabread object should run
> through one waveform at a time, I have to look up how much bytes they
> are but assume 256, so it runs from 0 to 255 and to switch to another
> waveform you add n*256 where n is the waveformnumber. When you switch
> with a line object over several waveforms, you get the wonderful crude
> ppg sound but you should make sure that it goes only whole numbers
> without fractions so it really jumps a whole waveform each step. It can
> be done by sending the moving number through an int object.
Here's a patch that does exactly this. 256 waveforms each 256 samples long.
When writing it I found a bug in wrap~ in pd-0.40-2 from Miller's site:
sig~ 1
wrap~
print~
-> 0
sig~ 0
wrap~
print~
-> 1
Claude
--
http://claudiusmaximus.goto10.org
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: wave-table-morphing.pd
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20070114/4f383af2/attachment.asc>
More information about the Pd-list
mailing list