Use Non-Frames Version Previous Page Next Page
The Csound Quick Reference

Score Syntax


Score Syntax: Statements

f "table number" "action time" "size" "GEN routine" arg1[ arg2...arg...]
f0 "action time" (Dummy f-table for padding score sections with silence and reporting on progress of long running jobs).
b "base clock time" (Effective prior to score sorting. This time base is pre-warped.)
v "time warp factor" (Locally variable time warping of score events.)
t 0 "initial tempo" "time in beats" "tempo2"["time in beats" "tempo3" "time in...]
a 0 "begin time advance in beats" "duration of time advance in beats"
i "instrument number" "start" "duration" [p4 p5 p...]
s (marks end of section and restarts score counting from time 0)
m "score location name" (marks a score section with a name)
n "score location name" (named score section is re-read into the score file at this location)
r "integer repeat count" "a macro name" (begins a new repeating sections)
e (marks end of score - optional)

Score Syntax: P-Field Substitution

. (carries same p-field value from preceding "i" statement with like instrument #)
+ (determines current start from sum of preceeding durations by adding p2 + p3 from previous "i" statement. legal in p2 only.)
^+x (determines current start of instrument from sum of preceeding written event by adding last p2 to x. legal in p2 only.)
^-x (determines current start of instrument from sum of preceeding written event by subtracting x from last p2. legal in p2 only.)
npx (replace with p-field(x) value from next note statement illegal in p1 p2 p3.)
ppx (replace with p-field(x) value from previous note statement illegal in p1 p2 p3.)
< (p-field replaced by value derived from linear interpolation between previous and subsequent "anchor" values in same p-field. illegal in p1 p2 p3)
> (p-field replaced by value derived from linear interpolation between previous and subsequent "anchor" values in same p-field. illegal in p1 p2 p3)
) (p-field replaced by value derived from exponential interpolation between previous and subsequent "anchor" values in same p-field. illegal in p1 p2 p3)
( (p-field replaced by value derived from exponential interpolation between previous and subsequent "anchor" values in same p-field. illegal in p1 p2 p3)
~ (p-field replaced by value derived from random value in the range between previous and subsequent "anchor" values in same p-field. illegal in p1 p2 p3)

Score Syntax: Expressions

[x+y] (add value x to value y within a p-field. Note expressions must be in [brackets])
[x-y] (subtract value y from value x within a p-field. Note expressions must be in [brackets])
[x*y] (multiply value x by value y within a p-field. Note expressions must be in [brackets])
[x/y] (divide value x by value y within a p-field. Note expressions must be in [brackets])
[x%y] (value x remainder value y within a p-field. Note expressions must be in [brackets])
[x^y] (power of value x to value y within a p-field. Note expressions must be in [brackets])
[@x] (next power-of-two greater than or equal to x. Note expressions must be in [brackets])
[@@x] (next power-of-two-plus-one greater than or equal to x. Note expressions must be in [brackets])

Score Syntax: Macros

  #define NAME # replacement text #
  #define NAME(a'b'c) # replacement text #
  $NAME.
  #undef NAME
  #include "filename"

Use Non-Frames Version Previous Page Next Page
The Csound Quick Reference