Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
Documentation
directory :: Str -> Str Source #
Reads a directory and outputs to a string array a list of file names.
Reads a directory for files and passes them to a string array. Users can set the file type by passing a file extension as a string.
SFiles[] directory SDirectory[, SExtention]
csound doc: http://csound.com/docs/manual/directory.html
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://csound.com/docs/manual/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://csound.com/docs/manual/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://csound.com/docs/manual/modmatrix.html
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://csound.com/docs/manual/pwd.html
select :: Sig -> Sig -> Sig -> Sig -> Sig -> Sig Source #
Select sample value based on audio-rate comparisons.
Select sample value from three based on audio-rate comparisons of two signals.
aout select a1, a2, aless, aequal, amore
csound doc: http://csound.com/docs/manual/select.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://csound.com/docs/manual/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://csound.com/docs/manual/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://csound.com/docs/manual/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://csound.com/docs/manual/tableshuffle.html