Search notes:

Csound variables

The first letter of a variable determines its type: Global variables: see initializing global vars etc.
Then, there are also the spectral data types (the older w-type and the newer f-rate). Apparently, they're used by the pvs opcodes.

Converting between types

a to k

downsamp, by default, takes the first value of an a-variable array and assigns it to a k-variable. With the iwlen parameter, a length of the sub array can be defined of which the avarage is taken.
max_k finds the max or min value in the a-array.
rms
samphold

k to a

avar = kvar: all elements in avar are set to kvar's value. upsamp is equivalent, but less efficient.
interp which is equivalent to avar=a(kvar).

i to k

kval = ival

k to i

Problematic because the kvar might not be initized at the init pass.

Accessing elements in a-arrays

vaget and vaset

Printing variables

print opcode.

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Kunst/Mu...', 1759398357, '216.73.216.42', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Kunst/Musik/Csound/variables(85): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78