Csound Csound-dev Csound-tekno Search About

[Csnd] how works vmap?

Date2008-01-18 10:54
FromUğur Güney
Subject[Csnd] how works vmap?
AttachmentsNone  

Date2008-01-28 17:18
FromAndres Cabrera
Subject[Csnd] Re: how works vmap?
Hi,

Maybe vmap is not the best answer. You might want to check out limit,
wrap, clip, or use the values of the table as indeces to another table
(like waveshaping). You can also use conditionals, like ? and :

Cheers,
Andrés



 
El vie, 18-01-2008 a las 12:54 +0200, Uğur Güney escribió:
> # Hi all,
> # I have a table of length N. It consists of numbers between 0 and 1.
> I want to apply a threshold to it. ie. assign 0 to numbers below the
> thresh and assign 1 to numbers above the thresh. Can I do this using
> vmap? (I did not understand well the info on the manual.) If I prepare
> another table of length N2, consists of 0 zeros up to index L and 1
> after that index. How can I map these tables?
> # More generally, this second table can be any function of which
> domain is the range of the first table. And it can be used for diverse
> operations other than thresholding.
> -ugur guney-
> 
> 
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"