| Thanks Anthony.
They will be ready in a moment.
Cheers,
Andrés
Anthony Kozar wrote:
> pcount simply returns the number of pfields belonging to a note event:
>
> icount pcount
>
> pindex returns the value of a specified pfield:
>
> ivalue pindex ipfieldIndex
>
> I've attached some examples from when I was playing with them yesterday.
>
> Anthony
>
>
> ------------------------------------------------------------------------
>
>
>
>
>
>
>
> instr 1
> inum pcount
>
> print inum
> endin
>
>
>
> i1 0 3 4 5 ; has 5 pfields
> i1 1 3 ; has 5 due to carry
> i1 2 3 4 5 6 7 ; has 7
> e
>
>
>
> ------------------------------------------------------------------------
>
>
>
>
>
>
>
> instr 1
> inum pcount
> index init 1
> loop1:
> ivalue pindex index
> printf_i "p%d = %f\n", 1, index, ivalue
> index = index + 1
> if (index <= inum) igoto loop1
>
> print inum
> endin
>
>
>
> i1 0 3 40 50 ; has 5 pfields
> i1 1 2 80 ; has 5 due to carry
> i1 2 1 40 50 60 70 ; has 7
> e
>
>
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ------------------------------------------------------------------------
>
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net |