[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-users] mapping, interpolation



first questions -- look into ControlSpec.

z1 = ControlSpec(a2, z2, \lin, 0).map(x);

second question -- You can use .blend to morph arrays:
[1,2.33,4.01,7].blend([15,96.8,301,987.44], x);

hope that helps-
~luke

On Mon, Mar 9, 2009 at 1:55 PM, Justin Yang <jyang03@xxxxxxxxx> wrote:
> Hi,
> A basics question here.  Is there a simple way to do mapping/normalizing - as x goes from 0-1 map a1 to z1 into a2 to z2?  And is there a way to interpolate between arrays - as x goes from 0-1 [1, 2.33, 4.01, 7] goes to [15, 96.8, 301, 987.44]?
> Thanks,
> Justin
> _______________________________________________
> sc-users mailing list
>
> info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
> archive: https://listarc.bham.ac.uk/marchives/sc-users/
> search: https://listarc.bham.ac.uk/lists/sc-users/search/
>

_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/