Csound Csound-dev Csound-tekno Search About

Re: RTsound GEN01 soundfile poblem

Date1998-02-06 15:36
FromGabriel Maldonado
SubjectRe: RTsound GEN01 soundfile poblem
David Schuyeteneer wrote:

> How can I read a soundfile in RTsound, using GEN01 ?
> The standard way only results in noise. I can't use soundin since the
> soundfile has to
> loop "infinite". What table-read opcode should I use for reading the
> sampledata stored by GEN 01 ??
>
> oscil ?  using oscil, I encountered a problem of the pitch. What pitch
>
> value should i pass to oscil in order
> to play the sample exactly like the original ?
>
> I use wav format.

Use 'loscil' defining a power-of-two size in GEN1 if you are using .wav
audio files (deferred allocation of memory is implemented only with
.aiff files).
Another choice is 'diskin' opcode (see manual).

--
Gabriel Maldonado

mailto:g.maldonado@agora.stm.it
http://www.agora.stm.it/G.Maldonado/home2.htm
http://www.geocities.com/SiliconValley/Way/7041/home2.htm