[PD] Shifting arrays (permutation)

Rick T ratulloch at gmail.com
Wed Oct 10 17:17:44 CEST 2012


Thanks that fixed it

On Wed, Oct 10, 2012 at 2:16 AM, Claude Heiland-Allen <claude at mathr.co.uk>wrote:

> On 10/10/12 12:51, Rick T wrote:
>
>> Greets All
>>
>> I was looking for a way to shift arrays (permutation) by samples
>>
>
> (permutation generally refers to something more general than shifting or
> rotating, more like shuffling a deck of cards than cutting it)
>
> Personally I keep all my vline~ in [0..1] and use maths to manipulate.
>
> Especially because (vanilla's, zexy has a better one)b [wrap~] wraps to
> [0..1], and could be help do what you need:
>
> [0, 1 1000(
>  |
> [vline~]
>  |
> [+~ 0.25]  <-- this value in [0..1] too, modulatable at signal rate
>  |
> [wrap~]
>  |
> [*~ table size here]
>  |
> [tabread4~ your table hear]
>
> will play the table wrapped around
> starting with the last 3/4 then first 1/4
>
> To convert between samples and [0..1], elementary arithmetic helps.
>
>
> Claude
> --
> http://mathr.co.uk
>
> ______________________________**_________________
> Pd-list at iem.at mailing list
> UNSUBSCRIBE and account-management -> http://lists.puredata.info/**
> listinfo/pd-list <http://lists.puredata.info/listinfo/pd-list>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20121010/e2dfd7b9/attachment-0001.htm>


More information about the Pd-list mailing list