[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-users] Help me map a control rate signal with a buffer
- To: sc-users@xxxxxxxxxxxxxxxx
- Subject: Re: [sc-users] Help me map a control rate signal with a buffer
- From: Dan Stowell <danstowell@xxxxxxxxx>
- Date: Sun, 3 May 2009 13:21:16 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=tkIUxn3Pp8zCkQvaGJt4CrvcaBsTI8ArdzcfPybfPSI=; b=bbOcofed6NWTfRz0IN6RxPYmzVNwtkHAZZNB4fM2pJdPoBtcQJrgDxx8k8FYXdOcCR SNeGYjooexAhbyeOJtYpIZdXa46PL2hs6TwsC0Ju3R8gq8u4MVD71X/QF444WVkGdshQ h9+1Eb9lrNY1kVN++wbffUozVeBBx/s6IY1UY=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=QcEAbHW8IrVjnIchxN3kw7dxAQEAkJ7B9+SCoq/agrMSfDbueGa9Jgsmpo3n1ZmyDK Um1eqiTj36K/TS0eStlp8Ly89t0zaATtcpDGBKWdGPz7AbG3U0Fxux6boH2uzT2e585p MoyJgvL9Htw8huzbdfEU30WvK7ElfFRxJEch8=
- In-reply-to: <gtjs1f$94o$1@xxxxxxxxxxxxx>
- List-id: SuperCollider users mailing list <sc-users.create.ucsb.edu>
- References: <gtjs1f$94o$1@xxxxxxxxxxxxx>
- Reply-to: sc-users@xxxxxxxxxxxxxxxx
- Sender: owner-sc-users@xxxxxxxxxxxxxxxx
Hi Carlo -
One way you can do it is using IndexInBetween to "unmap" your input
into integer slots, and then use IndexL to do the reverse, to "map"
onto your other distribution. This example maps a sort-of-exponential
curve onto a sort-of-sinusoidal curve:
~from = [1, 2, 4, 8, 16];
~to = [0, 1, 0, -1, 0];
x={IndexL.kr(~to.as(LocalBuf), IndexInBetween.kr(~from.as(LocalBuf),
MouseX.kr(~from.first,~from.last).poll).poll).poll}.play
HTH
Dan
---------- Forwarded message ----------
From: Carlo Capocasa <theman@xxxxxxxxxxxxxxxxx>
Date: 3.5.2009 11:35
Subject: [sc-users] Help me map a control rate signal with a buffer
To: sc-users@xxxxxxxxxxxxxxxx
Hi! Thanks for reading. I'm looking for some help... I need to
re-shape a control rate signal with a mapping function defined by a
series of float (X|Y) values and linear interpolation in-between.
Using a buffer seems to be the most elegant way to do this, could you
kindly point me to Ugens that might do this? IndexInBetween seemed
promising but then the X-Values have to be integers. Thanks!
Carlo
_______________________________________________
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/
--
http://www.mcld.co.uk
_______________________________________________
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/