Csound Csound-dev Csound-tekno Search About

[Cs-dev] Undocumented Csound5 opcodes

Date2005-06-14 16:11
FromIstvan Varga
Subject[Cs-dev] Undocumented Csound5 opcodes
I found these opcodes, functions, and operators that are apparently not
mentioned in the manual. Some of these may be only aliases for other opcodes,
or used only internally by the parser, or are documented somewhere I did not
notice. Nevertheless, this list is probably worth having a look at, to find
out if any of the following need to be documented:

chani
chano
cogoto
delayk
event_i
exitnow
FLgroup_end
FLpack_end
FLpanel_end
FLscroll_end
FLtabs_end
loopsegp
lpsholdp
oscilv
OSCsend
puts
pvsinit
seqtime2
sprintf
sprintfk
strcat
strcatk
strcmp
strcmpk
strcpy
strcpyk
strget
tab
tab_i
tabplay
tabrec
tabw
tabw_i
tb0 ... tb15
tb0_init ... tb15_init
timedseq
vcopy_i
vdelayk
vdel_k
vecdelay
vlimit
vmap
vmirror
vport
vrandh
vrandi
vwrap
&
|
#
~
<<
 >>


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-06-15 10:14
Fromjpff@codemist.co.uk
Subject[Cs-dev] Re: [Csnd] Undocumented Csound5 opcodes
I think OSCsend is the only one of those which is mine.  Will try to
add a manual section.  I did have some responsibility for the bit-wise
logical operations.  I assume they should be described like the other
arithmetic operations.

I will lokk at OSCsend, &, |, #, ~

Did I do << and >> ?  Do not sound familiar
==John ffitch


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-06-15 11:43
FromIstvan Varga
SubjectRe: [Cs-dev] Re: [Csnd] Undocumented Csound5 opcodes
jpff@codemist.co.uk wrote:

> I think OSCsend is the only one of those which is mine.  Will try to
> add a manual section.  I did have some responsibility for the bit-wise
> logical operations.  I assume they should be described like the other
> arithmetic operations.
> 
> I will lokk at OSCsend, &, |, #, ~
> 
> Did I do << and >> ?  Do not sound familiar

No, I added << and >> for binary shift left/right. Here is a list of
available bitwise operators:

  a & b   AND
  a | b   OR
  a # b   XOR
   ~a     NOT
   ¬a     NOT
  a << b  shift left
  a >> b  shift right

The order of precedence (defined in express.c) is, from highest to lowest:

   - (unary)
   ~ ¬
   ^
   * / %
   + -
   << >>
   &
   #
   |
   < <= == >= > !=
   &&
   ||
   ? :

operators on the same line have the same precedence, and (I assume) are evaluated
from left to right.
Note: possible bug: combining unary operators as shown below does not work:
   -(~0)    should be 1 but is syntax error
this is OK however:
   ~-1      correctly evaluates to 0



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-06-15 12:33
Fromjpff@codemist.co.uk
SubjectRe: [Cs-dev] Re: [Csnd] Undocumented Csound5 opcodes
Are << >> logical or arithmetic?
==John ffitch


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-06-15 12:44
FromIstvan Varga
SubjectRe: [Cs-dev] Re: [Csnd] Undocumented Csound5 opcodes
jpff@codemist.co.uk wrote:

> Are << >> logical or arithmetic?

They round the arguments to the nearest integer and then perform the
C operation << or >>.


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-06-15 16:45
FromAnthony Kozar
Subject[Cs-dev] Re: [Cs-dev]Undocumented Csound5 opcodes
According to an old C book of mine, the right shift operator can be either
arithmetic or logical when applied to a signed integer depending on the
machine/compiler.

So this might not be portable.

Anthony


On 6/15/05 7:44 AM, Istvan Varga  etched in stone:

> jpff@codemist.co.uk wrote:
> 
>> Are << >> logical or arithmetic?
> 
> They round the arguments to the nearest integer and then perform the
> C operation << or >>.



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-06-15 17:04
FromIstvan Varga
SubjectRe: [Cs-dev] Re: [Cs-dev]Undocumented Csound5 opcodes
Anthony Kozar wrote:

> According to an old C book of mine, the right shift operator can be either
> arithmetic or logical when applied to a signed integer depending on the
> machine/compiler.
> 
> So this might not be portable.

Well, then I can replace it to be calculated as

   a / (1 << b)

instead of

   a >> b



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-06-15 18:02
Fromjpff@codemist.co.uk
SubjectRe: [Cs-dev] Re: [Cs-dev]Undocumented Csound5 opcodes
...and can depend on word length

But C programmers have been using dangerous operations for decades.
==John ffitch
>>>>> "Anthony" == Anthony Kozar  writes:

 Anthony> According to an old C book of mine, the right shift operator can be either
 Anthony> arithmetic or logical when applied to a signed integer depending on the
 Anthony> machine/compiler.

 Anthony> So this might not be portable.

 Anthony> Anthony



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-06-15 18:14
FromIstvan Varga
SubjectRe: [Cs-dev] Re: [Cs-dev]Undocumented Csound5 opcodes
jpff@codemist.co.uk wrote:

> ...and can depend on word length
> 
> But C programmers have been using dangerous operations for decades.

Well, I have changed ugmoss.c to use

   input1 / (1L << input2)

instead of

   input1 >> input2

Of course, this is slower, but makes it sure that for example -16 >> 2 is
always -4, and not some large positive value that depends on sizeof(long).


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-06-15 22:13
FromAndres Cabrera
SubjectRe: [Cs-dev] Undocumented Csound5 opcodes
Is there a WYSIWYG editor for xml mamual files?

Andres

On Tue, 2005-06-14 at 10:11, Istvan Varga wrote:
> I found these opcodes, functions, and operators that are apparently not
> mentioned in the manual. Some of these may be only aliases for other opcodes,
> or used only internally by the parser, or are documented somewhere I did not
> notice. Nevertheless, this list is probably worth having a look at, to find
> out if any of the following need to be documented:
> 
> chani
> chano
> cogoto
> delayk
> event_i
> exitnow
> FLgroup_end
> FLpack_end
> FLpanel_end
> FLscroll_end
> FLtabs_end
> loopsegp
> lpsholdp
> oscilv
> OSCsend
> puts
> pvsinit
> seqtime2
> sprintf
> sprintfk
> strcat
> strcatk
> strcmp
> strcmpk
> strcpy
> strcpyk
> strget
> tab
> tab_i
> tabplay
> tabrec
> tabw
> tabw_i
> tb0 ... tb15
> tb0_init ... tb15_init
> timedseq
> vcopy_i
> vdelayk
> vdel_k
> vecdelay
> vlimit
> vmap
> vmirror
> vport
> vrandh
> vrandi
> vwrap
> &
> |
> #
> ~
> <<
>  >>
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
> a projector? How fast can you ride your desk chair down the office luge track?
> If you want to score the big prize, get to know the little guy.  
> Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> 



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-06-16 00:58
FromSteven Yi
SubjectRe: [Cs-dev] Undocumented Csound5 opcodes
AttachmentsNone  

Date2005-06-16 15:05
FromAndres Cabrera
SubjectRe: [Cs-dev] Undocumented Csound5 opcodes
It would make things so much easier... =(

Andres

On Wed, 2005-06-15 at 18:58, Steven Yi wrote:
> None that I'm aware of for Docbook.  
> 
> On 6/15/05, Andres Cabrera  wrote:
> > Is there a WYSIWYG editor for xml mamual files?
> > 
> > Andres
> > 
> > On Tue, 2005-06-14 at 10:11, Istvan Varga wrote:
> > > I found these opcodes, functions, and operators that are apparently not
> > > mentioned in the manual. Some of these may be only aliases for other opcodes,
> > > or used only internally by the parser, or are documented somewhere I did not
> > > notice. Nevertheless, this list is probably worth having a look at, to find
> > > out if any of the following need to be documented:
> > >
> > > chani
> > > chano
> > > cogoto
> > > delayk
> > > event_i
> > > exitnow
> > > FLgroup_end
> > > FLpack_end
> > > FLpanel_end
> > > FLscroll_end
> > > FLtabs_end
> > > loopsegp
> > > lpsholdp
> > > oscilv
> > > OSCsend
> > > puts
> > > pvsinit
> > > seqtime2
> > > sprintf
> > > sprintfk
> > > strcat
> > > strcatk
> > > strcmp
> > > strcmpk
> > > strcpy
> > > strcpyk
> > > strget
> > > tab
> > > tab_i
> > > tabplay
> > > tabrec
> > > tabw
> > > tabw_i
> > > tb0 ... tb15
> > > tb0_init ... tb15_init
> > > timedseq
> > > vcopy_i
> > > vdelayk
> > > vdel_k
> > > vecdelay
> > > vlimit
> > > vmap
> > > vmirror
> > > vport
> > > vrandh
> > > vrandi
> > > vwrap
> > > &
> > > |
> > > #
> > > ~
> > > <<
> > >  >>
> > >
> > >
> > > -------------------------------------------------------
> > > This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
> > > a projector? How fast can you ride your desk chair down the office luge track?
> > > If you want to score the big prize, get to know the little guy.
> > > Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
> > > _______________________________________________
> > > Csound-devel mailing list
> > > Csound-devel@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/csound-devel
> > >
> > >
> > 
> > 
> > 
> > -------------------------------------------------------
> > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
> > from IBM. Find simple to follow Roadmaps, straightforward articles,
> > informative Webcasts and more! Get everything you need to get up to
> > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
> > _______________________________________________
> > Csound-devel mailing list
> > Csound-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/csound-devel
> >
> 
> 
> -------------------------------------------------------
> SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
> from IBM. Find simple to follow Roadmaps, straightforward articles,
> informative Webcasts and more! Get everything you need to get up to
> speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> 



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net