Csound Csound-dev Csound-tekno Search About

[Cs-dev] No documentation for pcount & pindex

Date2006-12-13 20:33
FromAnthony Kozar
Subject[Cs-dev] No documentation for pcount & pindex
... in the manual?

Anthony


-------------------------------------------------------------------------
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

Date2006-12-14 16:36
FromAndres Cabrera
SubjectRe: [Cs-dev] No documentation for pcount & pindex
true. Does anyone have information on their usage?
Cheers,
Andrés


Anthony Kozar wrote:
> ... in the manual?
>
> Anthony
>
>
> -------------------------------------------------------------------------
> 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

Date2006-12-14 17:02
FromAnthony Kozar
SubjectRe: [Cs-dev] No documentation for pcount & pindex
Attachmentspcount.csd  pindex.csd  None  None  
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


Date2006-12-15 14:39
FromAndres Cabrera
SubjectRe: [Cs-dev] No documentation for pcount & pindex
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

Date2007-03-06 19:41
From"Dr. Richard Boulanger"
SubjectRe: [Cs-dev] No documentation for pcount & pindex
Anthony,

These examples and opcodes are useful.  Is there a manpage yet?

dr. B.

On Dec 14, 2006, at 12:02 PM, 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
>
> 
> 
> ---------------------------------------------------------------------- 
> ---
> 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