Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] pvsdemix in MacCsound (and other plugins)

Date2005-03-28 20:04
FromVictor Lazzarini
SubjectRe: [Cs-dev] pvsdemix in MacCsound (and other plugins)
Does the new FtFind() also finds non-power-of-two
tables? Does it do the ftfind() and ftnp2find() jobs?

Did I get this right? Instead of

auxalloc(...);

now do we do

csound->AuxAlloc(...);

or

csoundAuxAlloc(...);

in a plugin opcode initialiser function?
 
In any case this sounds like a great improvement.
Thanks a lot.

Victor

> 
> Steven Yi wrote:
> 
> > So how do the following sound to everyone: 
> > 
> > void csoundAuxAlloc(ENVIRON * csound, long nbytes, 
AUXCH
> > * auxchp)  FUNC * csoundFtFind(ENVIRON * csound, 
MYFLT *
> > arg) MYFLT * csoundGetTable(ENVIRON * csound, int
> tableNum)
> 
> The following function pointers are now in ENVIRON:
> 
>    void  (*AuxAlloc)(void *csound, long nbytes, AUXCH
> *auxchp);
>    FUNC  *(*FTFind)(void *csound, MYFLT *argp);
>    MYFLT *(*GetTable)(void *csound_, int tableNum, int
> *tableLength);
>    void  *(*Malloc)(void *csound, size_t nbytes);
>    void  *(*Calloc)(void *csound, size_t nbytes);
>    void  *(*ReAlloc)(void *csound, void *oldp, size_t
> nbytes);
>    void  (*Free)(void *csound, void *ptr);
> 
> The corresponding internal functions are:
> 
>    csound->AuxAlloc:  csoundAuxAlloc
>    csound->FTFind:    csoundFTFind
>    csound->GetTable:  csoundGetTable
>    csound->Malloc:    mmalloc
>    csound->Calloc:    mcalloc
>    csound->ReAlloc:   mrealloc
>    csound->Free:      mfree
> 
> The sources (including all opcodes) have been modified for
> these changes.
> 
> 
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products
> from real users. Discover which products truly live up to
> the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=
click
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-03-28 20:08
FromIstvan Varga
SubjectRe: [Cs-dev] pvsdemix in MacCsound (and other plugins)
Victor Lazzarini wrote:

> Does the new FtFind() also finds non-power-of-two
> tables? Does it do the ftfind() and ftnp2find() jobs?

csound->FTFind is just the old ftfind() function added to the API.
I may add non-power of two tables to csound->GetTable(), which is a new
function, but I am not sure about the details how "deferred" tables
differ from normal tables.


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-03-28 20:13
FromIstvan Varga
SubjectRe: [Cs-dev] pvsdemix in MacCsound (and other plugins)
Victor Lazzarini wrote:

> in a plugin opcode initialiser function?

Plugin opcodes should use csound->AuxAlloc, not csoundAuxAlloc.


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-03-28 20:25
FromSteven Yi
SubjectRe: [Cs-dev] pvsdemix in MacCsound (and other plugins)
Hi Istvan,

Thanks not only for adding those functions but also going through the
codebase and swapping calls for the macros.  Makes things much easier
for me to read.

^_^

steven


On Mon, 28 Mar 2005 21:13:35 +0200, Istvan Varga  wrote:
> Victor Lazzarini wrote:
> 
> > in a plugin opcode initialiser function?
> 
> Plugin opcodes should use csound->AuxAlloc, not csoundAuxAlloc.
> 
> 
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net