csound-expression-1.0.1: library to make electronic music

Safe HaskellNone




Realtime Interaction



Opcodes For Use In MIDI-Triggered Instruments

cpsmidi :: Msg -> DSource

Get the note number of the current MIDI event, expressed in cycles-per-second.

 icps cpsmidi

doc: http://www.csounds.com/manual/html/cpsmidi.html

ampmidi :: Msg -> DSource

Get the velocity of the current MIDI event.

 iamp ampmidi iscal [, ifn]

doc: http://www.csounds.com/manual/html/ampmidi.html

pchbend :: Msg -> SigSource

Get the current pitch-bend value for this channel.

 kbend pchbend [imin] [, imax]

doc: http://www.csounds.com/manual/html/pchbend.html

aftouch :: Msg -> SigSource

Get the current after-touch value for this channel.

 kaft aftouch [imin] [, imax]

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

Opcodes For Use In All Instruments

ctrl7 :: I -> I -> Sig -> Sig -> SigSource

Allows a floating-point 7-bit MIDI signal scaled with a minimum and a maximum range.

 idest ctrl7 ichan, ictlno, imin, imax [, ifn]
 kdest ctrl7 ichan, ictlno, kmin, kmax [, ifn]
 adest ctrl7 ichan, ictlno, kmin, kmax [, ifn] [, icutoff]

doc: http://www.csounds.com/manual/html/ctrl7.html

Human Interfaces


sensekey :: (Sig, Sig)Source

Returns the ASCII code of a key that has been pressed, or -1 if no key has been pressed.

 kres[, kkeydown] sensekey

doc: http://www.csounds.com/manual/html/sensekey.html


xyin :: D -> D -> D -> D -> D -> (Sig, Sig)Source

Sense the cursor position in an output window. When xyin is called the position of the mouse within the output window is used to reply to the request. This simple mechanism does mean that only one xyin can be used accurately at once. The position of the mouse is reported in the output window.

 kx, ky xyin iprd, ixmin, ixmax, iymin, iymax [, ixinit] [, iyinit]

doc: http://www.csounds.com/manual/html/xyin.html