csound-expression-opcodes-0.0.3.2: opcodes for the library csound-expression

Safe HaskellNone
LanguageHaskell98

Csound.Typed.Opcode.Miscellaneous

Synopsis

Documentation

fareylen :: Tab -> Sig Source #

returns the length of a Farey Sequence.

This opcode can be used in conjunction with GENfarey. It calculates the length of Farey Sequence Fn. Its length is given by: |Fn| = 1 + SUM over n phi(m) where phi(m) is Euler's totient function, which gives the number of integers ≤ m that are coprime to m.

kfl  fareylen  kfn

csound doc: http://www.csounds.com/manual/html/fareylen.html

fareyleni :: Tab -> D Source #

returns the length of a Farey Sequence.

This opcode can be used in conjunction with GENfarey. It calculates the length of Farey Sequence Fn. Its length is given by: |Fn| = 1 + SUM over n phi(m) where phi(m) is Euler's totient function, which gives the number of integers ≤ m that are coprime to m.

ifl  fareyleni  ifn

csound doc: http://www.csounds.com/manual/html/fareyleni.html

modmatrix :: Tab -> Tab -> Tab -> D -> D -> D -> Sig -> SE () Source #

Modulation matrix opcode with optimizations for sparse matrices.

The opcode can be used to let a large number of k-rate modulator variables modulate a large number of k-rate parameter variables, with arbitrary scaling of each modulator-to-parameter connection. Csound ftables are used to hold both the input (parameter) variables, the modulator variables, and the scaling coefficients. Output variables are written to another Csound ftable.

 modmatrix  iresfn, isrcmodfn, isrcparmfn, imodscale, inum_mod, \\
    inum_parm, kupdate

csound doc: http://www.csounds.com/manual/html/modmatrix.html

pwd :: Str Source #

Asks the underlying operating system for the current directory name as a string.

pwd call the operating system to determine the current directory (folder). pwd runs at i-time only.

Sres  pwd  

csound doc: http://www.csounds.com/manual/html/pwd.html

system_i :: D -> Str -> D Source #

Call an external program via the system call

system and system_i call any external command understood by the operating system, similarly to the C function system(). system_i runs at i-time only, while system runs both at initialization and performance time.

ires  system_i  itrig, Scmd, [inowait]

csound doc: http://www.csounds.com/manual/html/system.html

system :: Sig -> Str -> Sig Source #

Call an external program via the system call

system and system_i call any external command understood by the operating system, similarly to the C function system(). system_i runs at i-time only, while system runs both at initialization and performance time.

kres  system  ktrig, Scmd, [knowait]

csound doc: http://www.csounds.com/manual/html/system.html

tableshuffle :: Sig -> SE () Source #

shuffles the content of a function table so that each element of the source table is put into a different random position.

This opcode can be used in order to shuffle the content of function tables into a random order but without loosing any of the elements. Imagine shuffling a deck of cards. Each element of the table is copied to a different random position. If that position was already chosen before then the next free position is chosen. The length of the table remains the same.

 tableshuffle  ktablenum

csound doc: http://www.csounds.com/manual/html/tableshuffle.html

tableshufflei :: D -> SE () Source #

shuffles the content of a function table so that each element of the source table is put into a different random position.

This opcode can be used in order to shuffle the content of function tables into a random order but without loosing any of the elements. Imagine shuffling a deck of cards. Each element of the table is copied to a different random position. If that position was already chosen before then the next free position is chosen. The length of the table remains the same.

 tableshufflei  itablenum

csound doc: http://www.csounds.com/manual/html/tableshuffle.html