Csound Csound-dev Csound-tekno Search About

[Cs-dev] Documentation

Date2005-07-28 17:33
Fromjpff@codemist.co.uk
Subject[Cs-dev] Documentation
I think the undocumented opcodes are these:

 cogoto        Who wrote this?
 delayk        istvan
 event_i       matt?
 exitnow       Cannot find in sources

 FLgroup_end    These are Gabriel's -- surely he has documentation?
 FLpack_end
 FLpanel_end
 FLscroll_end
 FLtabs_end

 loopsegp       gabriel
 lpsholdp         "
 oscilv         This is an experiment and should not be documented
 puts           Istvan
 pvsinit        Victor
 seqtime2
 sprintf
 sprintfk
 strcat         Istvan
 strcatk        "
 strcmp         "
 strcmpk        "
 strcpy         "
 strcpyk        "
 strget         "
 tab
 tab_i
 tabplay        Cannoit find
 tabrec
 tabw
 tabw_i
 tb0 ... tb15
 tb0_init ... tb15_init
 timedseq
 vcopy_i
 vdelayk        gabriel
 vdel_k 
 vecdelay
 vlimit
 vmap           Cannot find this
 vmirror          "
 vport            "
 vrandh           "
 vrandi           "
 vwrap            "
 <<             Istvan
 >>               "

==John ffitch


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September
19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-07-28 18:01
FromIstvan Varga
SubjectRe: [Cs-dev] Documentation
jpff@codemist.co.uk wrote:

>  cogoto        Who wrote this?

I think cogoto is by Matt Ingalls. It is used internally by 'ithen',
and it jumps at i-time if the condition is not true, and always jumps
at performance time.

>  delayk        istvan

It is documented (I posted the manual as plain text), but was not
added to the XML manual. See also below.

>  event_i       matt?

No, I wrote it. event_i is the same as event, but runs at i-time,
and if used with the 'f' score opcode, it will create the table
immediately.

>  exitnow       Cannot find in sources

This opcode is from CsoundAV, and terminates performance immediately
(without even reaching the next opcode). It has no arguments and
runs at i-time.

>  FLgroup_end    These are Gabriel's -- surely he has documentation?
>  FLpack_end
>  FLpanel_end
>  FLscroll_end
>  FLtabs_end

These are just aliases for FlgroupEnd etc., for compatibility with
many old CsoundAV orchestra files (e.g. those by Josep M. Comajuncosas).

>  puts           Istvan

Prints a string. I think the manual is already in CVS.

>  sprintf
>  sprintfk
>  strcat         Istvan
>  strcatk        "
>  strcmp         "
>  strcmpk        "
>  strcpy         "
>  strcpyk        "
>  strget         "

Just like puts, these opcodes for manipulating S-rate string variables
should already be in the manual.

>  tab
>  tab_i
>  tabplay        Cannoit find
>  tabrec
>  tabw
>  tabw_i
>  tb0 ... tb15
>  tb0_init ... tb15_init
>  timedseq
>  vcopy_i
>  vdelayk        gabriel
>  vecdelay
>  vlimit
>  vmap           Cannot find this
>  vmirror          "
>  vport            "
>  vrandh           "
>  vrandi           "
>  vwrap            "

These are all CsoundAV opcodes by Gabriel Maldonado.

>  <<             Istvan
>  >>               "

Equivalents of C operators. Both round values to the nearest
integer, and >> assumes signed input (that is, -32 >> 2 will
be -8).

========================================================================

kr      delayk  ksig, idel[, imode]
kr      vdel_k  ksig, kdel, imdel[, imode]

DESCRIPTION
-----------

k-rate delay opcodes.

INITIALIZATION
--------------

idel - delay time (in seconds) for delayk. It is rounded to the
   nearest integer multiple of a k-cycle (i.e. 1/kr).

imode - sum of:
   1: skip initialization (e.g. in tied notes)
   2: hold the first input value during the initial delay, instead of
      outputting zero. This is mainly of use when delaying envelopes
      that do not start at zero.

         ^__          imode = 0   ^   ___
         |  \                     |   |  \
         |   \            =>      |   |   \
         |    \                   |   |    \
        -+------------>          -+------------>
         |                        |

         ^__          imode = 2   ^______
         |  \                     |      \
         |   \            =>      |       \
         |    \                   |        \
        -+------------>          -+------------>
         |                        |

imdel - maximum delay time for vdel_k, in seconds.

PERFORMANCE
-----------

kr - the output signal. Note: none of the opcodes interpolate the
   output.

ksig - the input signal.

kdel - delay time (in seconds) for vdel_k. It is rounded to the
   nearest integer multiple of a k-cycle (i.e. 1/kr).

AUTHOR
------

Istvan Varga
Dec 2002


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September
19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-07-28 22:29
FromDavid Akbari
SubjectRe: [Cs-dev] Documentation
If I may add:

Victor's newest set of spectral opcodes:

pvsifd : streaming spectral analysis using the IFD
partials : partial track analysis from a  streaming PV input
tradsyn : additive synthesis of tracks (linear interpolation)
sinsyn :  additive synthesis (cubic phase)
resyn : additive synthesis (cubic phase, adapted for transformed 
signals)

and still no GEN43 -- I understand the syntax is quite simple, but it 
seems like it'd be worth having an entry... it's quite useful!

On a side note, I'm kind of getting this error when attempting 
anonymous CVS checkout of the manual (July 28)

cvs checkout: in directory manual:
cvs checkout: cannot open CVS/Entries for reading: No such file or 
directory
cvs checkout: Updating manual
cvs checkout: move away manual/ChangeLog; it is in the way
C manual/ChangeLog
cvs checkout: move away manual/Makefile; it is in the way
C manual/Makefile
U manual/bugs.txt
cvs [checkout aborted]: cannot open CVS/Entries.Log: No such file or 
directory


-David


On Jul 28, 2005, at 12:33 PM, jpff@codemist.co.uk wrote:

> I think the undocumented opcodes are these:
>
>  cogoto        Who wrote this?
>  delayk        istvan
>  event_i       matt?
>  exitnow       Cannot find in sources
>
>  FLgroup_end    These are Gabriel's -- surely he has documentation?
>  FLpack_end
>  FLpanel_end
>  FLscroll_end
>  FLtabs_end
>
>  loopsegp       gabriel
>  lpsholdp         "
>  oscilv         This is an experiment and should not be documented
>  puts           Istvan
>  pvsinit        Victor
>  seqtime2
>  sprintf
>  sprintfk
>  strcat         Istvan
>  strcatk        "
>  strcmp         "
>  strcmpk        "
>  strcpy         "
>  strcpyk        "
>  strget         "
>  tab
>  tab_i
>  tabplay        Cannoit find
>  tabrec
>  tabw
>  tabw_i
>  tb0 ... tb15
>  tb0_init ... tb15_init
>  timedseq
>  vcopy_i
>  vdelayk        gabriel
>  vdel_k
>  vecdelay
>  vlimit
>  vmap           Cannot find this
>  vmirror          "
>  vport            "
>  vrandh           "
>  vrandi           "
>  vwrap            "
>  <<             Istvan
>>>               "



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September
19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-07-29 10:47
Fromjpff@codemist.co.uk
SubjectRe: [Cs-dev] Documentation
Does anyone have a text documentation for GEN43?  I do not seem to have
one, so documenting it will involves reading the code and attempting
to understand.

I think the messing documentation is now
 <<
 >>
 event_i
 loopsegp
 lpsholdp
 seqtime2
 tab
 tab_i
 tabplay
 tabrec
 tabw
 tabw_i
 tb0 ... tb15
 tb0_init ... tb15_init
 timedseq
 vcopy_i
 vdel_k
 vrandh
 vrandi
 cogoto (surely this shoudl NOT be documented as it is only internal?)
 pvsifd : streaming spectral analysis using the IFD
 partials : partial track analysis from a  streaming PV input
 tradsyn : additive synthesis of tracks (linear interpolation)
 sinsyn :  additive synthesis (cubic phase)
 resyn : additive synthesis (cubic phase, adapted for transformed signals)


==John ffitch


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September
19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-07-29 18:45
FromAnthony Kozar
SubjectRe: [Cs-dev] Documentation
On 7/29/05 5:47 AM, jpff@codemist.co.uk  etched in
stone:

> Does anyone have a text documentation for GEN43?  I do not seem to have
> one, so documenting it will involves reading the code and attempting
> to understand.

Here is Victor's original documentation:

GEN 43

This subroutine loads up a PVOCEX file containing the PV analysis (amp-freq)
of a soundfile and calculates the average magnitudes of all analysis frames
of one or all audio channels. It then creates a table with these magnitudes
for each PV bin.

INITIALISATION

f# time size 43 filcod channel

#, time, size - usual GEN parameters. See f statement.
size - number of points in the table, power-of-two or power-of-two plus 1.
      GEN 43 does not make any distinction between these two sizes, but it
      requires the table to be at least the fftsize/2. PV bins cover the
      positive spectrum from 0Hz (table index 0) to the Nyquist (table index
      fftsize/2+1) in equal-size frequency increments (of size sr/fftsize).

filcod - a pvocex file (which can be generated by pvanal).
channel - audio channel number from which the magnitudes will be extracted;
      a 0 will average the magnitudes from all channels.

Reading stops at the end of the file.

NOTE
if p4 is positive, the table will be post-normalised.
A negative p4 will cause post-normalisation to be skipped.

EXAMPLE

f1 0 512   43  "viola.pvx" 1
f1 0 -1024 -43 "noiseprint.pvx" 0

This table can be used as a masking table for pvstencil and pvsmaska. The
first example uses a 1024-point FFT phase vocoder analysis file from which
the first channel is used. The second uses all channels of a 2048-point
file, without post-normalisation. For noise reduction applications with
pvstencil, it is easiest to skip table normalisation (negative GEN code).



-------------------------------------------------------
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-07-30 11:51
Fromjpff@codemist.co.uk
SubjectRe: [Cs-dev] Documentation
Gen43 in manual.  That is 17 opcodes added to the manual in this burst.
==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-07-30 19:10
FromAndres Cabrera
SubjectRe: [Cs-dev] Documentation
On Thu, 2005-07-28 at 11:33, jpff@codemist.co.uk wrote:


>  vdelayk        gabriel

>  vecdelay
>  vlimit
>  vmap           Cannot find this
>  vmirror          "
>  vport            "
>  vwrap            "

These are already there, but not under csound5 opcodes.

>  vrandh           "
>  vrandi           "
>  vcopy_i
>  vdel_k 
These are missing. I'll try to get them in soon.

Andres



-------------------------------------------------------
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-10-10 18:13
FromMatt Ingalls
SubjectRe: [Cs-dev] Documentation
On Jul 28, 2005, at 10:01 AM, Istvan Varga wrote:

>>  cogoto        Who wrote this?
>>
>
> I think cogoto is by Matt Ingalls. It is used internally by 'ithen',
> and it jumps at i-time if the condition is not true, and always jumps
> at performance time.


more importantly,  'ithen' needs to be added to the manual in some way

Matt;
________________________
           matt  ingalls
http://sonomatics.com



-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net