Csound Csound-dev Csound-tekno Search About

Re: table and phasor

Date1999-07-22 07:55
FromStan Olejarz
SubjectRe: table and phasor
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)
>
>*************************************************************

Date1999-07-22 14:02
Fromjpff@maths.bath.ac.uk
SubjectRe: table and phasor
sndinfo is the utility which tells you how many samples there are in a
sound file.  In Csound3.56 you can then use the syntax [@1234] to give
you the next power of two if needed.

Date1999-07-22 18:03
From"Matt J. Ingalls"
SubjectRe: table and phasor
this thread is yet
another reason to get the sndinfo as an opcode.  i'll try to get to it
this weekend...

-matt





On Thu, 22 Jul 1999 jpff@maths.bath.ac.uk wrote:

> sndinfo is the utility which tells you how many samples there are in a
> sound file.  In Csound3.56 you can then use the syntax [@1234] to give
> you the next power of two if needed.
> ==John
>