| maybe it's worth to calculate the cosine directly by math.h function
call, since in modern CPUs such operation is often faster than a table
read (espcially if you are using interpolation) and it is much more precise.
Gab
Alex Norman wrote:
> Hello,
> I'm new to this list.
> Recently I've been developing some unit generators to read data and
> synthesize from analysis files made by ATS:
> http://www-ccrma.stanford.edu/%7Ejuan/ATS.html
>
> Anyways I'm currently using a cosine f table to modulate noise bands into
> the correct place in the frequency spectrum, my opcode needs the user to
> provide an ftable but since it wouldn't be reasonable to use anything
> other than a cosine I figure I should try to make it so that the opcode
> creates the ftable itself (and so the user doesn't have to).
>
> I'm wondering, can anyone point me to an opcode that does this?
> (internally defines an ftable and uses it), or give me some advice?
>
> It looks like I need to use the functions in fgens.c but the documentation
> is not very thorough.
>
> After this and a few more tests I should be able to make these opcodes
> available :)
>
> Thank you,
> Alex Norman
> University of Washington
>
>
--
Gabriel Maldonado
http://csounds.com/maldonado
-- |