Output Formatting
There may be times that the data you want to have in your resulting note
list is in a specific format other than floating point. For
example, when using note-names to create data for a certain p-field,
you may desire the output (Csound score) to be in another format
such as octave.pitch-class. In this case you could specify the
following:
p5(op) no fs5, d4, fn5
nGen provides several output converters (filters) (listed
below); these must be included within parentheses after a p-field number.
Available Output Formats
-
re[precision] = floating point (default). An optional
precision width may be specified. The default is 3 decimal places.
No space is allowed between the "re" and the precision width (e.g.,
p2(re3) p2 ( re4 ). Be careful with large precision widths as
they may introduce rounding errors!
-
in = integers (for f-numbers, etc.) data is rounded to the
nearest integer.
-
hz = Hertz (internal pitch-codes are converted to Hz on output,
use with input filters NO, NOX, OP, or OPX).
-
op = octave.pc (48 is converted to 8.00, 48.5 is converted
to 8.005, use with input filters NO, NOX, OP, or OPX).
-
od = octave.decimal (see Csound Manual, use with input
filters NO, NOX, OP, or OPX)).
-
db = db (0 to 90+) (32767 = about 90 dB, use with the DB input
filter or an input range of 0-32767).
- xx = no output. When this output filter is used the
current p-field will not be written to the output file. See the
EX
command for information on how this command might be useful to you.