| You can put the f statements into the orchestra instead of the score, using
the ftgen unit generator, and comment them just as you did in your text
file. Then you can include the orchestra with the ftgens in every other
orchestra that you use, either by cutting and pasting or as a macro.
-----Original Message-----
From: Kurt S Nelson [mailto:kurtnelson2@juno.com]
Sent: Tuesday, November 02, 1999 5:18 PM
To: csound@maths.ex.ac.uk
Subject: [Csnd] my personal function library to share
Dear Csounders,
I have been doing Csound for about 5 months now, and I often have
problems finding a particular f-statement amongst all of my scores. So,
in lieu of learning how to use the various Gen routines well, I have
begun archiving them in a text file which is included below. I think
this will be particularily helpful for tuning tables for the cpstmid
opcode. Is anyone else handling f-statements this way, or is there
perhaps a better way that I haven't thought of?
Happy Csounding,
Kurt
___________________________________________________
Gen 1
Fills function tables using soundfiles
f1 0 131072 1 "harp.wav" .01 4 1
___________________________________________________
Gen 2
Gen 2 can be used to generate tuning tables for use by the cpstmid
opcode,
or simply to store values for arpeggiator orcs.
numgrades basefreq ratios...
interval basekeymidi
f1 0 64 -2 8 8 220 45 1 2 3 4 5 6 7
8 ;cpstmid harmonic series
f1 0 8 -2 8.00 8.02 8.04 8.05 8.07 8.09 8.11 9.00 ;cpspch C major
scale
The consonant precedence hammer dulcimer tuning with 59 strings tuned to
whole ratios:
(This is a yet-unbuild instrument and tuning of my own design.)
f1 0 64 -2 .125 .142857 .153846 .166667 .181818 .2 .222222 .25 .272727
.285714 .3 .333333 .363636 .375 .4 .428571 .444444 .5 .555556 .571428 .6
.625 .666667 .714286 .75 .8 .833333 .857143 .875 1 1.142857 1.166667 1.2
1.25 1.333333 1.4 1.5 1.6 1.666667 1.75 1.8 2 2.25 2.333333 2.5 2.666667
2.75 3 3.333333 3.5 3.666667 4 4.5 5 5.5 6 6.5 7 8
____________________________________________________
Gen 7
Creates functions using line segments
f1 0 16384 7 0 4096 1 8192 -1 4096 0 ;triangle wave
f2 0 8192 7 0 4096 1 4096 0 ;the possitive part of
a triangle wave
____________________________________________________
Gen 9
f1 0 16384 9 1 1 90 ;90 degree phase
shifted sine wave
f2 0 16384 9 .5 1 0 ;the positive part of
a sine wave
____________________________________________________
Gen 10
Creates a series of added sinusoids
f1 0 16384 10 1 .9 .75 .75 .70 .63 .55 .65 .52 .35 .3 .2 .2 .1 .1 .4 .04
.03 .03 .02 .02 .01 .01 .02 .007 .01 .003 .006 .002 .01 .001 .06
f1 0 8192 10 1 .5 -.333 -.25 .2 .165 -.142857 -.125 .111 .1 -.0909 -.0833
f1 0 2048 10 1 ; Sine
f2 0 2048 10 1 .5 .3 .25 .2 .167 .14 .125 .111 ; Sawtooth
f3 0 2048 10 1 0 .3 0 .2 0 .14 0 .111 ; Square
f4 0 2048 10 1 1 1 1 .7 .5 .3 .1 ; Pulse
____________________________________________________
___________________________________________________________________
Get the Internet just the way you want it.
Free software, free e-mail, and free Internet access for a month!
Try Juno Web: http://dl.www.juno.com/dynoget/tagj.
--
To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk
-- |