Csound Csound-dev Csound-tekno Search About

Re: wgbrass

Date1999-07-13 21:46
FromSherlock
SubjectRe: wgbrass

David Boothe wrote:

> Thanks for finding a bug in the HTML manual! (It is in the Acrobat
> manual).
>
> The correct syntax is:
>
> ar wgbrass kamp, kfreq, ktens, iatt, kvibf, kvamp, ifn[, iminfreq]
>
> -David.
>
> --- Sherlock  wrote:
> > Where does ktens go?
> > It is not shown in the explaination.
> > I think it is mention later, but not in the tittle.
> > See example:
> > sr = 44100
> > kr = 4410
> > ksmps = 10
> > nchnls = 2
> >
> > ; sample wgbrass by Robert McNulty Junior (C)1999
> >
> > instr 1
> > iamp ampmidi 10000
> > icps  cpsmidi
> >
> >
> > awgbrass wgbrass iamp, icps, .01, .05, 6.137, 1
> >
> > outs awgbrass, awgbrass
> > endin
> > ;Function 1 uses the GEN10 subroutine to compute a
> > sine wave
> > f 1  0 4096 10   1
> > ; inst  start   duration amp       sound
> > f0 360
> > I designed to work with midi.
> > Here is the explanation from the book. The HTML
> > version of 3.55
> >
> > > wgbrass
> > >
> > >   ar      wgbrass    kamp, kfreq, iatt, kvibf,
> > kvamp, ifn[, iminfreq]
> > >
> > >
> > >
> > >
> > > Description
> > >
> > > Audio output is a tone related to a brass
> > instrument, using a physical model developed from
> > Perry Cook, but re-coded for
> > > Csound. [NOTE: This is rather poor, and at present
> > uncontrolled. Needs revision, and possibly more
> > parameters].
> > >
> > > Initialization
> > >
> > > iatt - time taken to reach full pressure
> > >
> > > ifn - table of shape of vibrato, usually a sine
> > table, created by a function
> > >
> > > iminfreq - lowest frequency at which the
> > instrument will play. If it is omitted it is taken
> > to be the same as the initial kfreq. If
> > > iminfreq is negative, initialization will be
> > skipped.
> > >
> > > Performance
> > >
> > >
> > > A note is played on a brass-like instrument, with
> > the arguments as below.
> > >
> > > kamp - Amplitude of note.
> > >
> > > kfreq - Frequency of note played.
> > >
> > > ktens - lip tension of the player. Suggested value
> > is about 0.4
> > >
> > ^^^^^^^^^^^^^^^^
> > where?
> >
> > > kvibf - frequency of vibrato in Hertz. Suggested
> > range is 0 to 12
> > >
> > > kvamp - amplitude of the vibrato
> > >
> > > Example
> > >
> > >     a1     wgbrass     31129.60, 440, 0.1, 6.137,
> > 0.05, 1
> > >            out         a1
> > >
> > > Author
> > >
> > > John ffitch (after Perry Cook)
> > > University of Bath, Codemist Ltd.
> > > Bath, UK
> > > New in Csound version 3.47
> > >
> > >
> > >
> > >
> > >
> >
> > ________________________________________________________
> > NetZero - We believe in a FREE Internet.  Shouldn't
> > you?
> > Get your FREE Internet Access and Email at
> > http://www.netzero.net/download/index.html
> >
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com

Also, my computer (Windows 98 runnining on a Compaq 6704 with 24 MB RAM
and 2.5 hard drive) crashes with this and wgpluck. wgclar is fine.
wgpluck's crash is at the end. What I mean is that is says
"This program caused an illegal operation and will be shut down."

________________________________________________________
NetZero - We believe in a FREE Internet.  Shouldn't you?
Get your FREE Internet Access and Email at