[Csnd] Easy question...hard for me
| Date | 2011-08-13 00:23 | 
| From | Roger Kelly  | 
| Subject | [Csnd] Easy question...hard for me | 
| I am wanting to read in a soundfile and copy a portion of it to buffer table. For example, if the file is 100 secs, I would like to start at 60th second and copy 10 secs worth. After I get it copied, I want to use it in pvsanal as an "asig" signal parameter.  I know how to get the original sound file into a table, but am a bit unsure  
about getting it copied to another table and then accessing that table item by item at the audio rate. Any help would be appreciated. 
 | 
| Date | 2011-08-13 00:44 | 
| From | peiman khosravi  | 
| Subject | Re: [Csnd] Easy question...hard for me | 
Hi Roger, Is there any reason for reading the file from table and not directly from disk? For this kind of thing I usually use diskin2 which has an iskiptim variable and does not require a table at all. Otherwise using GEN01 you can define the skip parameter to start reading the file from time x and the set the table size so that only y seconds are read (you need to convert seconds to sample size). You need to then use a table look-up opcode to read the samples from the table at a-rate, loscil being one out of many options. Best, Peiman On 13 August 2011 00:23, Roger Kelly  |