Score Statements and GEN Routines
Score Statements The statements used in scores are: a - Advance score time by a specified amount b - Resets the clock e - Marks the end of the last section of the score f - Causes a GEN subroutine to place values in a stored function table i - Makes an instrument active at a specific time and for a certain duration m - Sets a named mark in the score n - Repeats a marked section q - Used to quiet an instrument r - Starts a repeated section s - Marks the end of a section t - Sets the tempo v - Provides for locally variable time warping of score events x - Skip the rest of the current section { - Begins a non-sectional, nestable loop } - Ends a non-sectional, nestable loop
&scoregensa; &scoregensb; &scoregense; &scoregensf; &scoregensi; &scoregensm; &scoregensn; &scoregensq; &scoregensr; &scoregenss; &scoregenst; &scoregensv; &scoregensx; &scoregensleftbrace; &scoregensrightbrace;
GEN Routines GEN routines are used as data generators for function tables. When a function table is created using the f score statement the GEN function is given as its fourth argument. A negative GEN number implies that the function is not rescaled, and maintains its original values. Sine/Cosine Generators: GEN09 - Composite waveforms made up of weighted sums of simple sinusoids. GEN10 - Composite waveforms made up of weighted sums of simple sinusoids. GEN11 - Additive set of cosine partials. GEN19 - Composite waveforms made up of weighted sums of simple sinusoids. GEN30 - Generates harmonic partials by analyzing an existing table. GEN33 - Generate composite waveforms by mixing simple sinusoids. GEN34 - Generate composite waveforms by mixing simple sinusoids. Line/Exponential Segment Generators: GEN05 - Constructs functions from segments of exponential curves. GEN06 - Generates a function comprised of segments of cubic polynomials. GEN07 - Constructs functions from segments of straight lines. GEN08 - Generate a piecewise cubic spline curve. GEN16 - Creates a table from a starting value to an ending value. GEN25 - Construct functions from segments of exponential curves in breakpoint fashion. GEN27 - Construct functions from segments of straight lines in breakpoint fashion. File Access GEN Routines: GEN01 - Transfers data from a soundfile into a function table. GEN23 - Reads numeric values from a text file. GEN28 - Reads a text file which contains a time-tagged trajectory. Numeric Value Access GEN Routines GEN02 - Transfers data from immediate pfields into a function table. GEN17 - Creates a step function from given x-y pairs. GEN52 - Creates an interleaved multichannel table from the specified source tables, in the format expected by the ftconv opcode. Window Function GEN Routines GEN20 - Generates functions of different windows. Random Function GEN Routines GEN21 - Generates tables of different random distributions. GEN40 - Generates a random distribution using a distribution histogram. GEN41 - Generates a random list of numerical pairs. GEN42 - Generates a random distribution of discrete ranges of values. GEN43 - Loads a PVOCEX file containing a PV analysis. Waveshaping GEN Routines GEN03 - Generates a stored function table by evaluating a polynomial. GEN13 - Stores a polynomial whose coefficients derive from the Chebyshev polynomials of the first kind. GEN14 - Stores a polynomial whose coefficients derive from Chebyshevs of the second kind. GEN15 - Creates two tables of stored polynomial functions. Amplitude Scaling GEN Routines GEN04 - Generates a normalizing function. GEN12 - Generates the log of a modified Bessel function of the second kind. GEN24 - Reads numeric values from another allocated function-table and rescales them. Mixing GEN Routines GEN18 - Writes composite waveforms made up of pre-existing waveforms. GEN31 - Mixes any waveform specified in an existing table. GEN32 - Mixes any waveform, resampled with either FFT or linear interpolation. Pitch and Tuning GEN Routines GEN51 - fills a table with a fully customized micro-tuning scale, in the manner of Csound opcodes cpstun, cpstuni and cpstmid. Named GEN Routines Csound's GEN routines can be extended with GEN function plugins. There is currently a simple GEN plugin that provides exponential and hyperbolic tangent functions. These GEN functions are not called by number, but by name. "tanh" - fills a table from a hyperbolic tangent formula. "exp" - fills a table from a hyperbolic tangent formula.
&scoregensgen01; &scoregensgen02; &scoregensgen03; &scoregensgen04; &scoregensgen05; &scoregensgen06; &scoregensgen07; &scoregensgen08; &scoregensgen09; &scoregensgen10; &scoregensgen11; &scoregensgen12; &scoregensgen13; &scoregensgen14; &scoregensgen15; &scoregensgen16; &scoregensgen17; &scoregensgen18; &scoregensgen19; &scoregensgen20; &scoregensgen21; &scoregensgen23; &scoregensgen24; &scoregensgen25; &scoregensgen27; &scoregensgen28; &scoregensgen30; &scoregensgen31; &scoregensgen32; &scoregensgen33; &scoregensgen34; &scoregensgen40; &scoregensgen41; &scoregensgen42; &scoregensgen43; &scoregensgen51; &scoregensgen52;