| I just found the sample from the Csound Reference Manuel.
Sorry, I was going by what the book was showing.
I understand now.
What I'm expecting is a sound. Any sound.
Richard Dobson wrote:
>
> You don't say what you are expecting, so it's difficult to answer this,
> but what you are getting is a very low frequency signal - som four
> cycles per score line. On the face of it, your value for kpch ranges
> from 12 down to 0.99 and less, so maybe you need a different scaling
> calculation. Drop 22050 by 12 octaves, and you do get down comfortably
> below the human frequency range.
>
> Your f2 table has 16 elements, but you are scaling the phasor by 12, is
> that intentional? If you scale kpch by 12,24 or whatever, you can get
> something audible - but I still cannot say if it what you want!
>
> Richard Dobson
>
> Sherlock wrote:
> >
> > Could someone take a look at this and tell me where I went wrong?
> >
> > sr = 44100
> > kr = 4410
> > ksmps = 10
> > nchnls = 1
> >
> > instr 1
> > k1 phasor p5
> > kpch table k1 * 12, 2
> > a1 oscil p4, cpspch(kpch), 2
> > out a1
> >
> > endin
> >
> > ;Function 1 uses the GEN8 subroutine to compute a wave
> > f1 0 4096 10 1
> > f2 0 4096 10 1 .5 .333 .25 .2 .166 .142 .125 .111 .1 .09 .083 .076
> > .071 .066 .062
> >
> > ;inst start duration p4 p5 p6 p7 p8 p9
> >
> > i1 0 1.75 10000 440
> > i1 2 1.75 20000 660
> > e
> > ________________________________________________________
> > 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
>
> --
> Test your DAW with my Soundcard Attrition Page!
> http://wkweb5.cableinet.co.uk/rwd (LU: 6th July 1999)
> CDP: http://www.bath.ac.uk/~masjpf/CDP/CDP.htm (LU: 14th June 1999)
________________________________________________________
NetZero - We believe in a FREE Internet. Shouldn't you?
Get your FREE Internet Access and Email at |