Csound Csound-dev Csound-tekno Search About

[Csnd] looping samples...

Date2009-05-28 15:35
FromRory Walsh
Subject[Csnd] looping samples...
I normally use table opcodes to read sample that I record live during
performances but when I use it to play from disk using gen01 I get
strange artefacts in the sound. When using loscil the sound appears to
be fine although it won't loop because there aren't any loop points
set. My question is what's the best way to loop sounds from disk using
non-size of two tables, not using diskin/soundin, and not having to
set loop points. I don't know why instrument one doesn't play the
sample correctly, it should shouldn't it?



-odevaudio -b10 -g


sr = 44100
ksmps = 16
nchnls = 2

instr 1
andx phasor 1
a1 tab andx, 1, 1
outs (a1*32000), (a1*32000)
endin

instr 2
a1 loscil 32000, 1, 1
outs a1, a1
endin



f1 0 0 1 "C:/MyDocuments/Documents/Ableton/Library/Samples/Waveforms/Drums/Kick/E-Kick
1.aif" 0 4 0
i1 0 3
i2 3 3



Date2009-05-28 15:42
Fromvictor
Subject[Csnd] Re: looping samples...
I think tab is truncating. Try poscil instead

Victor


----- Original Message ----- 
From: "Rory Walsh" 
To: 
Sent: Thursday, May 28, 2009 3:35 PM
Subject: [Csnd] looping samples...


>I normally use table opcodes to read sample that I record live during
> performances but when I use it to play from disk using gen01 I get
> strange artefacts in the sound. When using loscil the sound appears to
> be fine although it won't loop because there aren't any loop points
> set. My question is what's the best way to loop sounds from disk using
> non-size of two tables, not using diskin/soundin, and not having to
> set loop points. I don't know why instrument one doesn't play the
> sample correctly, it should shouldn't it?
>
> 
> 
> -odevaudio -b10 -g
> 
> 
> sr = 44100
> ksmps = 16
> nchnls = 2
>
> instr 1
> andx phasor 1
> a1 tab andx, 1, 1
> outs (a1*32000), (a1*32000)
> endin
>
> instr 2
> a1 loscil 32000, 1, 1
> outs a1, a1
> endin
>
> 
> 
> f1 0 0 1 
> "C:/MyDocuments/Documents/Ableton/Library/Samples/Waveforms/Drums/Kick/E-Kick
> 1.aif" 0 4 0
> i1 0 3
> i2 3 3
> 
> 
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe 
> csound" 


Date2009-05-28 15:46
FromRory Walsh
Subject[Csnd] Re: Re: looping samples...
Yup, that did it. Cheers.

2009/5/28 victor :
> I think tab is truncating. Try poscil instead
>
> Victor
>
>
> ----- Original Message ----- From: "Rory Walsh" 
> To: 
> Sent: Thursday, May 28, 2009 3:35 PM
> Subject: [Csnd] looping samples...
>
>
>> I normally use table opcodes to read sample that I record live during
>> performances but when I use it to play from disk using gen01 I get
>> strange artefacts in the sound. When using loscil the sound appears to
>> be fine although it won't loop because there aren't any loop points
>> set. My question is what's the best way to loop sounds from disk using
>> non-size of two tables, not using diskin/soundin, and not having to
>> set loop points. I don't know why instrument one doesn't play the
>> sample correctly, it should shouldn't it?
>>
>> 
>> 
>> -odevaudio -b10 -g
>> 
>> 
>> sr = 44100
>> ksmps = 16
>> nchnls = 2
>>
>> instr 1
>> andx phasor 1
>> a1 tab andx, 1, 1
>> outs (a1*32000), (a1*32000)
>> endin
>>
>> instr 2
>> a1 loscil 32000, 1, 1
>> outs a1, a1
>> endin
>>
>> 
>> 
>> f1 0 0 1
>> "C:/MyDocuments/Documents/Ableton/Library/Samples/Waveforms/Drums/Kick/E-Kick
>> 1.aif" 0 4 0
>> i1 0 3
>> i2 3 3
>> 
>> 
>>
>>
>> Send bugs reports to this list.
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>

Date2009-05-28 15:51
Fromvictor
Subject[Csnd] Re: Re: Re: looping samples...
just watch out that freq=1 will not playback
your file at the original speed (unless table is 1 secs long).

Victor
----- Original Message ----- 
From: "Rory Walsh" 
To: 
Sent: Thursday, May 28, 2009 3:46 PM
Subject: [Csnd] Re: Re: looping samples...


> Yup, that did it. Cheers.
>
> 2009/5/28 victor :
>> I think tab is truncating. Try poscil instead
>>
>> Victor
>>
>>
>> ----- Original Message ----- From: "Rory Walsh" 
>> To: 
>> Sent: Thursday, May 28, 2009 3:35 PM
>> Subject: [Csnd] looping samples...
>>
>>
>>> I normally use table opcodes to read sample that I record live during
>>> performances but when I use it to play from disk using gen01 I get
>>> strange artefacts in the sound. When using loscil the sound appears to
>>> be fine although it won't loop because there aren't any loop points
>>> set. My question is what's the best way to loop sounds from disk using
>>> non-size of two tables, not using diskin/soundin, and not having to
>>> set loop points. I don't know why instrument one doesn't play the
>>> sample correctly, it should shouldn't it?
>>>
>>> 
>>> 
>>> -odevaudio -b10 -g
>>> 
>>> 
>>> sr = 44100
>>> ksmps = 16
>>> nchnls = 2
>>>
>>> instr 1
>>> andx phasor 1
>>> a1 tab andx, 1, 1
>>> outs (a1*32000), (a1*32000)
>>> endin
>>>
>>> instr 2
>>> a1 loscil 32000, 1, 1
>>> outs a1, a1
>>> endin
>>>
>>> 
>>> 
>>> f1 0 0 1
>>> "C:/MyDocuments/Documents/Ableton/Library/Samples/Waveforms/Drums/Kick/E-Kick
>>> 1.aif" 0 4 0
>>> i1 0 3
>>> i2 3 3
>>> 
>>> 
>>>
>>>
>>> Send bugs reports to this list.
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>> csound"
>>
>>
>>
>> Send bugs reports to this list.
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>>
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe 
> csound" 


Date2009-05-28 15:53
FromRory Walsh
Subject[Csnd] Re: Re: Re: Re: looping samples...
I'll use a tableng opcode to work out the correct frequencies.

2009/5/28 victor :
> just watch out that freq=1 will not playback
> your file at the original speed (unless table is 1 secs long).
>
> Victor
> ----- Original Message ----- From: "Rory Walsh" 
> To: 
> Sent: Thursday, May 28, 2009 3:46 PM
> Subject: [Csnd] Re: Re: looping samples...
>
>
>> Yup, that did it. Cheers.
>>
>> 2009/5/28 victor :
>>>
>>> I think tab is truncating. Try poscil instead
>>>
>>> Victor
>>>
>>>
>>> ----- Original Message ----- From: "Rory Walsh" 
>>> To: 
>>> Sent: Thursday, May 28, 2009 3:35 PM
>>> Subject: [Csnd] looping samples...
>>>
>>>
>>>> I normally use table opcodes to read sample that I record live during
>>>> performances but when I use it to play from disk using gen01 I get
>>>> strange artefacts in the sound. When using loscil the sound appears to
>>>> be fine although it won't loop because there aren't any loop points
>>>> set. My question is what's the best way to loop sounds from disk using
>>>> non-size of two tables, not using diskin/soundin, and not having to
>>>> set loop points. I don't know why instrument one doesn't play the
>>>> sample correctly, it should shouldn't it?
>>>>
>>>> 
>>>> 
>>>> -odevaudio -b10 -g
>>>> 
>>>> 
>>>> sr = 44100
>>>> ksmps = 16
>>>> nchnls = 2
>>>>
>>>> instr 1
>>>> andx phasor 1
>>>> a1 tab andx, 1, 1
>>>> outs (a1*32000), (a1*32000)
>>>> endin
>>>>
>>>> instr 2
>>>> a1 loscil 32000, 1, 1
>>>> outs a1, a1
>>>> endin
>>>>
>>>> 
>>>> 
>>>> f1 0 0 1
>>>>
>>>> "C:/MyDocuments/Documents/Ableton/Library/Samples/Waveforms/Drums/Kick/E-Kick
>>>> 1.aif" 0 4 0
>>>> i1 0 3
>>>> i2 3 3
>>>> 
>>>> 
>>>>
>>>>
>>>> Send bugs reports to this list.
>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>>> csound"
>>>
>>>
>>>
>>> Send bugs reports to this list.
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>> csound"
>>>
>>
>>
>> Send bugs reports to this list.
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>