Resize an array with interpolation?

43 views
Skip to first unread message

Leo Quensel

unread,
Oct 19, 2011, 11:16:49 AM10/19/11
to soft...@listproc.autodesk.com
Hey guys,

I have the following problem:

I need to create particles based on sound waves - for this task I got the Sound plugin by Stephan Woermann which is able to output an array of values for the sound channels of audio files. So far so good.

The problem is that the samples are limited to 8192 per channel. I need alot more than that.

So basically what I want is to take an existing array and resize it with interpolation.

An example:

I need to resize
[0]
[5]
[10]

to
[0]
[1]
[2]
[3]
[4]
[5]
[6]
[7]
[8]
[9]
[10]
(those are values, not indices)

leaving my original values intact and interpolating those inbetween.
Basically I need to multiply the size of the array with interpolation. Is something like this possible?

Cheers,
Leo
--
NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zurück-Garantie!
Jetzt informieren: http://www.gmx.net/de/go/freephone

tak...@earthlink.net

unread,
Oct 19, 2011, 11:22:18 AM10/19/11
to soft...@listproc.autodesk.com
One way could be to use something like a curve or a patch with 8192 points in one or the other direction and use the U or UV's to distribute your particles.

-T

Alan Fregtman

unread,
Oct 19, 2011, 11:23:30 AM10/19/11
to soft...@listproc.autodesk.com
Would bezier interpolation work for you?

You could try feeding an array of your samples to the "Fit Points"
input of the factory compound "Fit Bezier Curve". For the "T" input
you need to give it a linearly interpolated array from 0 to 1 of your
desired samplecount, which you can create with a "Build Linearly
Interpolated Array" compound.

> NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zur�ck-Garantie!
> Jetzt informieren: http://www.gmx.net/de/go/freephone
>

Leo Quensel

unread,
Oct 20, 2011, 4:01:57 AM10/20/11
to soft...@listproc.autodesk.com
That actually worked pretty well, thanks!


-------- Original-Nachricht --------
> Datum: Wed, 19 Oct 2011 11:23:30 -0400
> Von: Alan Fregtman <alan.f...@gmail.com>
> An: soft...@listproc.autodesk.com
> Betreff: Re: Resize an array with interpolation?

> > NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zurück-Garantie!
> > Jetzt informieren: http://www.gmx.net/de/go/freephone
> >
>

--

Reply all
Reply to author
Forward
0 new messages