| Just a quick question from a rookie Csounder.How do you calculate the file
size?
Ho
-----Original Message-----
From: Daniel Nass
To: Matt J. Ingalls
Cc: csound@maths.ex.ac.uk
Date: Wednesday, July 21, 1999 8:44 PM
Subject: Re: table and phasor
>Thanks for you reply, Matt. Unfortunately, I'm still a little
thick-headed.
>
>I am making sure the table size is greater than that of the file (there
>are 106752 samples in the file, so my table size should be 131072, right?).
> The only way I seem to be able to avoid this problem is to add silence so
>that the length of the file is EXACTLY 131072 samples in the file, even if
>the last 25000 or so are only silence. It also seems that it puts the huge
>clip at the exact point the original soundfile ends.
>
>Let me try to explain better. My original file that I'm calling in with
>GEN01 is 106752 samples long. The resultant file, after using table and
>GEN 01 to call in the file is 131072 samples long with a huge SNAP at
>106752. This happens with just about any sample I try and use, unless the
>sample's length is close to a power of 2. Sorry if this doesn't make sense
>but let me know if you have any other advice.
>
>Thanks again,
>
>Dan
>
>
>P.S. Here is the orc and sco that I'm using:
>
>;ORCHESTRA
>sr=44100
>kr=4410
>ksmps=10
>nchnls=1
>
>instr 1
>kenv linen 20000, .01, p3, .01
>aph phasor 1/p3
>a1 table aph, 1, 1
>a1 = a1 * kenv
>out a1
>
>endin
>
>
>
>;SCORE
>f1 0 131072 1 5 0 4 1
>
>i1 0 2.972
>
>*************************************************************
>
>Daniel Nass http://cctr.umkc.edu/~dnass/
>
>"Wherever we are, what we hear is mostly noise.
>When we ignore it, it disturbs us. When we listen
>to it, we find it fascinating."
>
> John Cage (1961)
>
>************************************************************* |