Csound Csound-dev Csound-tekno Search About

[Cs-dev] loop with a pause inbetween

Date2010-05-14 21:16
FromJosh Brown
Subject[Cs-dev] loop with a pause inbetween
Please make a opcode which allows me to loop sampled sound from a function table with a pause in-between each cycle. Something like lposcil but with a gap of a specified length which can be changed at performance time.

I am having difficulties in achieving this with the current opcodes.

Cheers, 

Josh
 		 	   		  
_________________________________________________________________
http://clk.atdmt.com/UKM/go/195013117/direct/01/

------------------------------------------------------------------------------

_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-05-14 21:27
FromRory Walsh
SubjectRe: [Cs-dev] loop with a pause inbetween
This should be quite possible with the current opcodes, even with tab
and tabw, perhaps if you explain to us how you tried going about it we
could help?

On 14 May 2010 21:16, Josh Brown  wrote:
>
> Please make a opcode which allows me to loop sampled sound from a function table with a pause in-between each cycle. Something like lposcil but with a gap of a specified length which can be changed at performance time.
>
> I am having difficulties in achieving this with the current opcodes.
>
> Cheers,
>
> Josh
>
> _________________________________________________________________
> http://clk.atdmt.com/UKM/go/195013117/direct/01/
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------

_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-05-14 21:54
FromJosh Brown
SubjectRe: [Cs-dev] loop with a pause inbetween
I fear the solution to this will be incredibly complex. I'm not skilled in the art of csound and thus far, all my attempts have failed. Looking at flooper, lposcil and many of the other loop based opcodes - they do not allow for a pause or gap inbetween.
I have tried extending the size of the function table but this did not allow me to make my sample smaller, with a gap inbetween. I tried getting a oscillator in synch with conditionals to create a drop in the amplitude but this did not help. Finally, I looked briefly at looping my sample within the score but couldn't find an opcode which lets me change the start and end points, whilst playing the sample once.
-------------------------------------------------
> From: rorywalsh@ear.ie
> Date: Fri, 14 May 2010 21:27:02 +0100
> To: csound-devel@lists.sourceforge.net
> Subject: Re: [Cs-dev] loop with a pause inbetween
>
> This should be quite possible with the current opcodes, even with tab
> and tabw, perhaps if you explain to us how you tried going about it we
> could help?
>
> On 14 May 2010 21:16, Josh Brown  wrote:
>>
>> Please make a opcode which allows me to loop sampled sound from a function table with a pause in-between each cycle. Something like lposcil but with a gap of a specified length which can be changed at performance time.
>>
>> I am having difficulties in achieving this with the current opcodes.
>>
>> Cheers,
>>
>> Josh
>>
>> _________________________________________________________________
>> http://clk.atdmt.com/UKM/go/195013117/direct/01/
>>
>> ------------------------------------------------------------------------------
>>
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
 		 	   		  
_________________________________________________________________
http://clk.atdmt.com/UKM/go/197222280/direct/01/
Do you have a story that started on Hotmail? Tell us now
------------------------------------------------------------------------------

_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-05-14 22:13
FromVictor Lazzarini
SubjectRe: [Cs-dev] loop with a pause inbetween
Here's an example that does what you want. Use this file with it
http://music.nuim.ie/music/sites/cpaneltest.nuim.ie.music/files/music/flutec3.wav

(or any file less than 10 sec long)



-odac


0dbfs = 1
nchnls=1
ksmps =32
instr 1
a1 flooper2 0.5, 1, 0, 10, 1, 1
out a1
endin


f1 0 -441000 1 "flutec3.wav" 0 0 1
i1 0 60





On 14 May 2010, at 21:54, Josh Brown wrote:

>
> I fear the solution to this will be incredibly complex. I'm not  
> skilled in the art of csound and thus far, all my attempts have  
> failed. Looking at flooper, lposcil and many of the other loop based  
> opcodes - they do not allow for a pause or gap inbetween.
> I have tried extending the size of the function table but this did  
> not allow me to make my sample smaller, with a gap inbetween. I  
> tried getting a oscillator in synch with conditionals to create a  
> drop in the amplitude but this did not help. Finally, I looked  
> briefly at looping my sample within the score but couldn't find an  
> opcode which lets me change the start and end points, whilst playing  
> the sample once.
> -------------------------------------------------
>> From: rorywalsh@ear.ie
>> Date: Fri, 14 May 2010 21:27:02 +0100
>> To: csound-devel@lists.sourceforge.net
>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>
>> This should be quite possible with the current opcodes, even with tab
>> and tabw, perhaps if you explain to us how you tried going about it  
>> we
>> could help?
>>
>> On 14 May 2010 21:16, Josh Brown  wrote:
>>>
>>> Please make a opcode which allows me to loop sampled sound from a  
>>> function table with a pause in-between each cycle. Something like  
>>> lposcil but with a gap of a specified length which can be changed  
>>> at performance time.
>>>
>>> I am having difficulties in achieving this with the current opcodes.
>>>
>>> Cheers,
>>>
>>> Josh
>>>
>>> _________________________________________________________________
>>> http://clk.atdmt.com/UKM/go/195013117/direct/01/
>>>
>>> ------------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>
>> ------------------------------------------------------------------------------
>>
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 		 	   		
> _________________________________________________________________
> http://clk.atdmt.com/UKM/go/197222280/direct/01/
> Do you have a story that started on Hotmail? Tell us now
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------

_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-05-14 22:27
FromJosh Brown
SubjectRe: [Cs-dev] loop with a pause inbetween
Yes, I want something similar to this only with a rest of say, 1 second, in-between each repeat. Of course I could edit the file "flutec3.wav" manually and add the silence myself but I would prefer to use csound.

----------------------------------------
> From: Victor.Lazzarini@nuim.ie
> To: csound-devel@lists.sourceforge.net
> Date: Fri, 14 May 2010 22:13:31 +0100
> Subject: Re: [Cs-dev] loop with a pause inbetween
>
> Here's an example that does what you want. Use this file with it
> http://music.nuim.ie/music/sites/cpaneltest.nuim.ie.music/files/music/flutec3.wav
>
> (or any file less than 10 sec long)
>
> 
> 
> -odac
> 
> 
> 0dbfs = 1
> nchnls=1
> ksmps =32
> instr 1
> a1 flooper2 0.5, 1, 0, 10, 1, 1
> out a1
> endin
> 
> 
> f1 0 -441000 1 "flutec3.wav" 0 0 1
> i1 0 60
> 
> 
>
>
>
> On 14 May 2010, at 21:54, Josh Brown wrote:
>
>>
>> I fear the solution to this will be incredibly complex. I'm not
>> skilled in the art of csound and thus far, all my attempts have
>> failed. Looking at flooper, lposcil and many of the other loop based
>> opcodes - they do not allow for a pause or gap inbetween.
>> I have tried extending the size of the function table but this did
>> not allow me to make my sample smaller, with a gap inbetween. I
>> tried getting a oscillator in synch with conditionals to create a
>> drop in the amplitude but this did not help. Finally, I looked
>> briefly at looping my sample within the score but couldn't find an
>> opcode which lets me change the start and end points, whilst playing
>> the sample once.
>> -------------------------------------------------
>>> From: rorywalsh@ear.ie
>>> Date: Fri, 14 May 2010 21:27:02 +0100
>>> To: csound-devel@lists.sourceforge.net
>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>
>>> This should be quite possible with the current opcodes, even with tab
>>> and tabw, perhaps if you explain to us how you tried going about it
>>> we
>>> could help?
>>>
>>> On 14 May 2010 21:16, Josh Brown wrote:
>>>>
>>>> Please make a opcode which allows me to loop sampled sound from a
>>>> function table with a pause in-between each cycle. Something like
>>>> lposcil but with a gap of a specified length which can be changed
>>>> at performance time.
>>>>
>>>> I am having difficulties in achieving this with the current opcodes.
>>>>
>>>> Cheers,
>>>>
>>>> Josh
>>>>
>>>> _________________________________________________________________
>>>> http://clk.atdmt.com/UKM/go/195013117/direct/01/
>>>>
>>>> ------------------------------------------------------------------------------
>>>>
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>
>>> ------------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>> _________________________________________________________________
>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>> Do you have a story that started on Hotmail? Tell us now
>> ------------------------------------------------------------------------------
>>
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
 		 	   		  
_________________________________________________________________
http://clk.atdmt.com/UKM/go/197222280/direct/01/
We want to hear all your funny, exciting and crazy Hotmail stories. Tell us now
------------------------------------------------------------------------------

_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-05-14 22:53
FromVictor Lazzarini
SubjectRe: [Cs-dev] loop with a pause inbetween
No, you don't need to edit the file. All you need is to make your  
table long enough to accommodate your file and
the rest. That is what I did in that example.

Say your file is 2 secs and you want a 1 sec rest. Make the table   
3*sr points long. And so on.

Victor


On 14 May 2010, at 22:27, Josh Brown wrote:

>
> Yes, I want something similar to this only with a rest of say, 1  
> second, in-between each repeat. Of course I could edit the file  
> "flutec3.wav" manually and add the silence myself but I would prefer  
> to use csound.
>
> ----------------------------------------
>> From: Victor.Lazzarini@nuim.ie
>> To: csound-devel@lists.sourceforge.net
>> Date: Fri, 14 May 2010 22:13:31 +0100
>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>
>> Here's an example that does what you want. Use this file with it
>> http://music.nuim.ie/music/sites/cpaneltest.nuim.ie.music/files/music/flutec3.wav
>>
>> (or any file less than 10 sec long)
>>
>>
>>
>> -odac
>>
>>
>> 0dbfs = 1
>> nchnls=1
>> ksmps =32
>> instr 1
>> a1 flooper2 0.5, 1, 0, 10, 1, 1
>> out a1
>> endin
>>
>>
>> f1 0 -441000 1 "flutec3.wav" 0 0 1
>> i1 0 60
>>
>>
>>
>>
>>
>> On 14 May 2010, at 21:54, Josh Brown wrote:
>>
>>>
>>> I fear the solution to this will be incredibly complex. I'm not
>>> skilled in the art of csound and thus far, all my attempts have
>>> failed. Looking at flooper, lposcil and many of the other loop based
>>> opcodes - they do not allow for a pause or gap inbetween.
>>> I have tried extending the size of the function table but this did
>>> not allow me to make my sample smaller, with a gap inbetween. I
>>> tried getting a oscillator in synch with conditionals to create a
>>> drop in the amplitude but this did not help. Finally, I looked
>>> briefly at looping my sample within the score but couldn't find an
>>> opcode which lets me change the start and end points, whilst playing
>>> the sample once.
>>> -------------------------------------------------
>>>> From: rorywalsh@ear.ie
>>>> Date: Fri, 14 May 2010 21:27:02 +0100
>>>> To: csound-devel@lists.sourceforge.net
>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>
>>>> This should be quite possible with the current opcodes, even with  
>>>> tab
>>>> and tabw, perhaps if you explain to us how you tried going about it
>>>> we
>>>> could help?
>>>>
>>>> On 14 May 2010 21:16, Josh Brown wrote:
>>>>>
>>>>> Please make a opcode which allows me to loop sampled sound from a
>>>>> function table with a pause in-between each cycle. Something like
>>>>> lposcil but with a gap of a specified length which can be changed
>>>>> at performance time.
>>>>>
>>>>> I am having difficulties in achieving this with the current  
>>>>> opcodes.
>>>>>
>>>>> Cheers,
>>>>>
>>>>> Josh
>>>>>
>>>>> _________________________________________________________________
>>>>> http://clk.atdmt.com/UKM/go/195013117/direct/01/
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>>
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>>
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>> _________________________________________________________________
>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>> Do you have a story that started on Hotmail? Tell us now
>>> ------------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>
>> ------------------------------------------------------------------------------
>>
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 		 	   		
> _________________________________________________________________
> http://clk.atdmt.com/UKM/go/197222280/direct/01/
> We want to hear all your funny, exciting and crazy Hotmail stories.  
> Tell us now
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------

_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-05-14 22:56
FromJosh Brown
SubjectRe: [Cs-dev] loop with a pause inbetween
Sorry, I see what you mean now ... but there is still a problem. Say if I wanted to shorten the clip to 5 seconds. Like so:

a1 flooper2 0.5, 1, 0, 5, 1, 1

I wouldn't be able to add the silence because the rest of the table wouldn't be empty.
----------------------------------------
> From: Victor.Lazzarini@nuim.ie
> To: csound-devel@lists.sourceforge.net
> Date: Fri, 14 May 2010 22:53:15 +0100
> Subject: Re: [Cs-dev] loop with a pause inbetween
>
> No, you don't need to edit the file. All you need is to make your
> table long enough to accommodate your file and
> the rest. That is what I did in that example.
>
> Say your file is 2 secs and you want a 1 sec rest. Make the table
> 3*sr points long. And so on.
>
> Victor
>
>
> On 14 May 2010, at 22:27, Josh Brown wrote:
>
>>
>> Yes, I want something similar to this only with a rest of say, 1
>> second, in-between each repeat. Of course I could edit the file
>> "flutec3.wav" manually and add the silence myself but I would prefer
>> to use csound.
>>
>> ----------------------------------------
>>> From: Victor.Lazzarini@nuim.ie
>>> To: csound-devel@lists.sourceforge.net
>>> Date: Fri, 14 May 2010 22:13:31 +0100
>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>
>>> Here's an example that does what you want. Use this file with it
>>> http://music.nuim.ie/music/sites/cpaneltest.nuim.ie.music/files/music/flutec3.wav
>>>
>>> (or any file less than 10 sec long)
>>>
>>>
>>>
>>> -odac
>>>
>>>
>>> 0dbfs = 1
>>> nchnls=1
>>> ksmps =32
>>> instr 1
>>> a1 flooper2 0.5, 1, 0, 10, 1, 1
>>> out a1
>>> endin
>>>
>>>
>>> f1 0 -441000 1 "flutec3.wav" 0 0 1
>>> i1 0 60
>>>
>>>
>>>
>>>
>>>
>>> On 14 May 2010, at 21:54, Josh Brown wrote:
>>>
>>>>
>>>> I fear the solution to this will be incredibly complex. I'm not
>>>> skilled in the art of csound and thus far, all my attempts have
>>>> failed. Looking at flooper, lposcil and many of the other loop based
>>>> opcodes - they do not allow for a pause or gap inbetween.
>>>> I have tried extending the size of the function table but this did
>>>> not allow me to make my sample smaller, with a gap inbetween. I
>>>> tried getting a oscillator in synch with conditionals to create a
>>>> drop in the amplitude but this did not help. Finally, I looked
>>>> briefly at looping my sample within the score but couldn't find an
>>>> opcode which lets me change the start and end points, whilst playing
>>>> the sample once.
>>>> -------------------------------------------------
>>>>> From: rorywalsh@ear.ie
>>>>> Date: Fri, 14 May 2010 21:27:02 +0100
>>>>> To: csound-devel@lists.sourceforge.net
>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>
>>>>> This should be quite possible with the current opcodes, even with
>>>>> tab
>>>>> and tabw, perhaps if you explain to us how you tried going about it
>>>>> we
>>>>> could help?
>>>>>
>>>>> On 14 May 2010 21:16, Josh Brown wrote:
>>>>>>
>>>>>> Please make a opcode which allows me to loop sampled sound from a
>>>>>> function table with a pause in-between each cycle. Something like
>>>>>> lposcil but with a gap of a specified length which can be changed
>>>>>> at performance time.
>>>>>>
>>>>>> I am having difficulties in achieving this with the current
>>>>>> opcodes.
>>>>>>
>>>>>> Cheers,
>>>>>>
>>>>>> Josh
>>>>>>
>>>>>> _________________________________________________________________
>>>>>> http://clk.atdmt.com/UKM/go/195013117/direct/01/
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>>
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>>
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>> _________________________________________________________________
>>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>>> Do you have a story that started on Hotmail? Tell us now
>>>> ------------------------------------------------------------------------------
>>>>
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>>
>>> ------------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>> _________________________________________________________________
>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>> We want to hear all your funny, exciting and crazy Hotmail stories.
>> Tell us now
>> ------------------------------------------------------------------------------
>>
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
 		 	   		  
_________________________________________________________________
http://clk.atdmt.com/UKM/go/197222280/direct/01/
Do you have a story that started on Hotmail? Tell us now
------------------------------------------------------------------------------

_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-05-14 23:07
FromVictor Lazzarini
SubjectRe: [Cs-dev] loop with a pause inbetween
you can start the loop a little later and keep the end of the loop at  
the end of the table.

Victor
On 14 May 2010, at 22:56, Josh Brown wrote:

>
> Sorry, I see what you mean now ... but there is still a problem. Say  
> if I wanted to shorten the clip to 5 seconds. Like so:
>
> a1 flooper2 0.5, 1, 0, 5, 1, 1
>
> I wouldn't be able to add the silence because the rest of the table  
> wouldn't be empty.
> ----------------------------------------
>> From: Victor.Lazzarini@nuim.ie
>> To: csound-devel@lists.sourceforge.net
>> Date: Fri, 14 May 2010 22:53:15 +0100
>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>
>> No, you don't need to edit the file. All you need is to make your
>> table long enough to accommodate your file and
>> the rest. That is what I did in that example.
>>
>> Say your file is 2 secs and you want a 1 sec rest. Make the table
>> 3*sr points long. And so on.
>>
>> Victor
>>
>>
>> On 14 May 2010, at 22:27, Josh Brown wrote:
>>
>>>
>>> Yes, I want something similar to this only with a rest of say, 1
>>> second, in-between each repeat. Of course I could edit the file
>>> "flutec3.wav" manually and add the silence myself but I would prefer
>>> to use csound.
>>>
>>> ----------------------------------------
>>>> From: Victor.Lazzarini@nuim.ie
>>>> To: csound-devel@lists.sourceforge.net
>>>> Date: Fri, 14 May 2010 22:13:31 +0100
>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>
>>>> Here's an example that does what you want. Use this file with it
>>>> http://music.nuim.ie/music/sites/cpaneltest.nuim.ie.music/files/music/flutec3.wav
>>>>
>>>> (or any file less than 10 sec long)
>>>>
>>>>
>>>>
>>>> -odac
>>>>
>>>>
>>>> 0dbfs = 1
>>>> nchnls=1
>>>> ksmps =32
>>>> instr 1
>>>> a1 flooper2 0.5, 1, 0, 10, 1, 1
>>>> out a1
>>>> endin
>>>>
>>>>
>>>> f1 0 -441000 1 "flutec3.wav" 0 0 1
>>>> i1 0 60
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> On 14 May 2010, at 21:54, Josh Brown wrote:
>>>>
>>>>>
>>>>> I fear the solution to this will be incredibly complex. I'm not
>>>>> skilled in the art of csound and thus far, all my attempts have
>>>>> failed. Looking at flooper, lposcil and many of the other loop  
>>>>> based
>>>>> opcodes - they do not allow for a pause or gap inbetween.
>>>>> I have tried extending the size of the function table but this did
>>>>> not allow me to make my sample smaller, with a gap inbetween. I
>>>>> tried getting a oscillator in synch with conditionals to create a
>>>>> drop in the amplitude but this did not help. Finally, I looked
>>>>> briefly at looping my sample within the score but couldn't find an
>>>>> opcode which lets me change the start and end points, whilst  
>>>>> playing
>>>>> the sample once.
>>>>> -------------------------------------------------
>>>>>> From: rorywalsh@ear.ie
>>>>>> Date: Fri, 14 May 2010 21:27:02 +0100
>>>>>> To: csound-devel@lists.sourceforge.net
>>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>>
>>>>>> This should be quite possible with the current opcodes, even with
>>>>>> tab
>>>>>> and tabw, perhaps if you explain to us how you tried going  
>>>>>> about it
>>>>>> we
>>>>>> could help?
>>>>>>
>>>>>> On 14 May 2010 21:16, Josh Brown wrote:
>>>>>>>
>>>>>>> Please make a opcode which allows me to loop sampled sound  
>>>>>>> from a
>>>>>>> function table with a pause in-between each cycle. Something  
>>>>>>> like
>>>>>>> lposcil but with a gap of a specified length which can be  
>>>>>>> changed
>>>>>>> at performance time.
>>>>>>>
>>>>>>> I am having difficulties in achieving this with the current
>>>>>>> opcodes.
>>>>>>>
>>>>>>> Cheers,
>>>>>>>
>>>>>>> Josh
>>>>>>>
>>>>>>> _________________________________________________________________
>>>>>>> http://clk.atdmt.com/UKM/go/195013117/direct/01/
>>>>>>>
>>>>>>> ------------------------------------------------------------------------------
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Csound-devel mailing list
>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>>
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>
>>>>> _________________________________________________________________
>>>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>>>> Do you have a story that started on Hotmail? Tell us now
>>>>> ------------------------------------------------------------------------------
>>>>>
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>>
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>> _________________________________________________________________
>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>> We want to hear all your funny, exciting and crazy Hotmail stories.
>>> Tell us now
>>> ------------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>
>> ------------------------------------------------------------------------------
>>
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 		 	   		
> _________________________________________________________________
> http://clk.atdmt.com/UKM/go/197222280/direct/01/
> Do you have a story that started on Hotmail? Tell us now
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------

_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-05-14 23:13
FromJosh Brown
SubjectRe: [Cs-dev] loop with a pause inbetween
I could but I'm using a drum loop... It's such a shame there isn't an opcode for this! It would be great for live sampling.

Josh

----------------------------------------
> From: Victor.Lazzarini@nuim.ie
> To: csound-devel@lists.sourceforge.net
> Date: Fri, 14 May 2010 23:07:55 +0100
> Subject: Re: [Cs-dev] loop with a pause inbetween
>
> you can start the loop a little later and keep the end of the loop at
> the end of the table.
>
> Victor
> On 14 May 2010, at 22:56, Josh Brown wrote:
>
>>
>> Sorry, I see what you mean now ... but there is still a problem. Say
>> if I wanted to shorten the clip to 5 seconds. Like so:
>>
>> a1 flooper2 0.5, 1, 0, 5, 1, 1
>>
>> I wouldn't be able to add the silence because the rest of the table
>> wouldn't be empty.
>> ----------------------------------------
>>> From: Victor.Lazzarini@nuim.ie
>>> To: csound-devel@lists.sourceforge.net
>>> Date: Fri, 14 May 2010 22:53:15 +0100
>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>
>>> No, you don't need to edit the file. All you need is to make your
>>> table long enough to accommodate your file and
>>> the rest. That is what I did in that example.
>>>
>>> Say your file is 2 secs and you want a 1 sec rest. Make the table
>>> 3*sr points long. And so on.
>>>
>>> Victor
>>>
>>>
>>> On 14 May 2010, at 22:27, Josh Brown wrote:
>>>
>>>>
>>>> Yes, I want something similar to this only with a rest of say, 1
>>>> second, in-between each repeat. Of course I could edit the file
>>>> "flutec3.wav" manually and add the silence myself but I would prefer
>>>> to use csound.
>>>>
>>>> ----------------------------------------
>>>>> From: Victor.Lazzarini@nuim.ie
>>>>> To: csound-devel@lists.sourceforge.net
>>>>> Date: Fri, 14 May 2010 22:13:31 +0100
>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>
>>>>> Here's an example that does what you want. Use this file with it
>>>>> http://music.nuim.ie/music/sites/cpaneltest.nuim.ie.music/files/music/flutec3.wav
>>>>>
>>>>> (or any file less than 10 sec long)
>>>>>
>>>>>
>>>>>
>>>>> -odac
>>>>>
>>>>>
>>>>> 0dbfs = 1
>>>>> nchnls=1
>>>>> ksmps =32
>>>>> instr 1
>>>>> a1 flooper2 0.5, 1, 0, 10, 1, 1
>>>>> out a1
>>>>> endin
>>>>>
>>>>>
>>>>> f1 0 -441000 1 "flutec3.wav" 0 0 1
>>>>> i1 0 60
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On 14 May 2010, at 21:54, Josh Brown wrote:
>>>>>
>>>>>>
>>>>>> I fear the solution to this will be incredibly complex. I'm not
>>>>>> skilled in the art of csound and thus far, all my attempts have
>>>>>> failed. Looking at flooper, lposcil and many of the other loop
>>>>>> based
>>>>>> opcodes - they do not allow for a pause or gap inbetween.
>>>>>> I have tried extending the size of the function table but this did
>>>>>> not allow me to make my sample smaller, with a gap inbetween. I
>>>>>> tried getting a oscillator in synch with conditionals to create a
>>>>>> drop in the amplitude but this did not help. Finally, I looked
>>>>>> briefly at looping my sample within the score but couldn't find an
>>>>>> opcode which lets me change the start and end points, whilst
>>>>>> playing
>>>>>> the sample once.
>>>>>> -------------------------------------------------
>>>>>>> From: rorywalsh@ear.ie
>>>>>>> Date: Fri, 14 May 2010 21:27:02 +0100
>>>>>>> To: csound-devel@lists.sourceforge.net
>>>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>>>
>>>>>>> This should be quite possible with the current opcodes, even with
>>>>>>> tab
>>>>>>> and tabw, perhaps if you explain to us how you tried going
>>>>>>> about it
>>>>>>> we
>>>>>>> could help?
>>>>>>>
>>>>>>> On 14 May 2010 21:16, Josh Brown wrote:
>>>>>>>>
>>>>>>>> Please make a opcode which allows me to loop sampled sound
>>>>>>>> from a
>>>>>>>> function table with a pause in-between each cycle. Something
>>>>>>>> like
>>>>>>>> lposcil but with a gap of a specified length which can be
>>>>>>>> changed
>>>>>>>> at performance time.
>>>>>>>>
>>>>>>>> I am having difficulties in achieving this with the current
>>>>>>>> opcodes.
>>>>>>>>
>>>>>>>> Cheers,
>>>>>>>>
>>>>>>>> Josh
>>>>>>>>
>>>>>>>> _________________________________________________________________
>>>>>>>> http://clk.atdmt.com/UKM/go/195013117/direct/01/
>>>>>>>>
>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> Csound-devel mailing list
>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>
>>>>>>>
>>>>>>> ------------------------------------------------------------------------------
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Csound-devel mailing list
>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>
>>>>>> _________________________________________________________________
>>>>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>>>>> Do you have a story that started on Hotmail? Tell us now
>>>>>> ------------------------------------------------------------------------------
>>>>>>
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>>
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>> _________________________________________________________________
>>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>>> We want to hear all your funny, exciting and crazy Hotmail stories.
>>>> Tell us now
>>>> ------------------------------------------------------------------------------
>>>>
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>>
>>> ------------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>> _________________________________________________________________
>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>> Do you have a story that started on Hotmail? Tell us now
>> ------------------------------------------------------------------------------
>>
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
 		 	   		  
_________________________________________________________________
http://clk.atdmt.com/UKM/go/197222280/direct/01/
We want to hear all your funny, exciting and crazy Hotmail stories. Tell us now
------------------------------------------------------------------------------

_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-05-14 23:50
FromVictor Lazzarini
SubjectRe: [Cs-dev] loop with a pause inbetween
In that case, maybe this is the answer, a gating/envelope instrument.



-odac


0dbfs = 1
nchnls=1
ksmps =32
instr 1
kgapsize line 1, p3, 2
a1 phasor sr/ftlen(1)
asig tab a1, 1, 1
aenv table a1*kgapsize,2,1
out asig*aenv
endin


f2 0 1024 7 1 512 1 1 0 512 0
f1 0 -44100 1 "flutec3.wav" 0 0 1
i1 0 15






On 14 May 2010, at 23:13, Josh Brown wrote:

>
> I could but I'm using a drum loop... It's such a shame there isn't  
> an opcode for this! It would be great for live sampling.
>
> Josh
>
> ----------------------------------------
>> From: Victor.Lazzarini@nuim.ie
>> To: csound-devel@lists.sourceforge.net
>> Date: Fri, 14 May 2010 23:07:55 +0100
>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>
>> you can start the loop a little later and keep the end of the loop at
>> the end of the table.
>>
>> Victor
>> On 14 May 2010, at 22:56, Josh Brown wrote:
>>
>>>
>>> Sorry, I see what you mean now ... but there is still a problem. Say
>>> if I wanted to shorten the clip to 5 seconds. Like so:
>>>
>>> a1 flooper2 0.5, 1, 0, 5, 1, 1
>>>
>>> I wouldn't be able to add the silence because the rest of the table
>>> wouldn't be empty.
>>> ----------------------------------------
>>>> From: Victor.Lazzarini@nuim.ie
>>>> To: csound-devel@lists.sourceforge.net
>>>> Date: Fri, 14 May 2010 22:53:15 +0100
>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>
>>>> No, you don't need to edit the file. All you need is to make your
>>>> table long enough to accommodate your file and
>>>> the rest. That is what I did in that example.
>>>>
>>>> Say your file is 2 secs and you want a 1 sec rest. Make the table
>>>> 3*sr points long. And so on.
>>>>
>>>> Victor
>>>>
>>>>
>>>> On 14 May 2010, at 22:27, Josh Brown wrote:
>>>>
>>>>>
>>>>> Yes, I want something similar to this only with a rest of say, 1
>>>>> second, in-between each repeat. Of course I could edit the file
>>>>> "flutec3.wav" manually and add the silence myself but I would  
>>>>> prefer
>>>>> to use csound.
>>>>>
>>>>> ----------------------------------------
>>>>>> From: Victor.Lazzarini@nuim.ie
>>>>>> To: csound-devel@lists.sourceforge.net
>>>>>> Date: Fri, 14 May 2010 22:13:31 +0100
>>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>>
>>>>>> Here's an example that does what you want. Use this file with it
>>>>>> http://music.nuim.ie/music/sites/cpaneltest.nuim.ie.music/files/music/flutec3.wav
>>>>>>
>>>>>> (or any file less than 10 sec long)
>>>>>>
>>>>>>
>>>>>>
>>>>>> -odac
>>>>>>
>>>>>>
>>>>>> 0dbfs = 1
>>>>>> nchnls=1
>>>>>> ksmps =32
>>>>>> instr 1
>>>>>> a1 flooper2 0.5, 1, 0, 10, 1, 1
>>>>>> out a1
>>>>>> endin
>>>>>>
>>>>>>
>>>>>> f1 0 -441000 1 "flutec3.wav" 0 0 1
>>>>>> i1 0 60
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> On 14 May 2010, at 21:54, Josh Brown wrote:
>>>>>>
>>>>>>>
>>>>>>> I fear the solution to this will be incredibly complex. I'm not
>>>>>>> skilled in the art of csound and thus far, all my attempts have
>>>>>>> failed. Looking at flooper, lposcil and many of the other loop
>>>>>>> based
>>>>>>> opcodes - they do not allow for a pause or gap inbetween.
>>>>>>> I have tried extending the size of the function table but this  
>>>>>>> did
>>>>>>> not allow me to make my sample smaller, with a gap inbetween. I
>>>>>>> tried getting a oscillator in synch with conditionals to  
>>>>>>> create a
>>>>>>> drop in the amplitude but this did not help. Finally, I looked
>>>>>>> briefly at looping my sample within the score but couldn't  
>>>>>>> find an
>>>>>>> opcode which lets me change the start and end points, whilst
>>>>>>> playing
>>>>>>> the sample once.
>>>>>>> -------------------------------------------------
>>>>>>>> From: rorywalsh@ear.ie
>>>>>>>> Date: Fri, 14 May 2010 21:27:02 +0100
>>>>>>>> To: csound-devel@lists.sourceforge.net
>>>>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>>>>
>>>>>>>> This should be quite possible with the current opcodes, even  
>>>>>>>> with
>>>>>>>> tab
>>>>>>>> and tabw, perhaps if you explain to us how you tried going
>>>>>>>> about it
>>>>>>>> we
>>>>>>>> could help?
>>>>>>>>
>>>>>>>> On 14 May 2010 21:16, Josh Brown wrote:
>>>>>>>>>
>>>>>>>>> Please make a opcode which allows me to loop sampled sound
>>>>>>>>> from a
>>>>>>>>> function table with a pause in-between each cycle. Something
>>>>>>>>> like
>>>>>>>>> lposcil but with a gap of a specified length which can be
>>>>>>>>> changed
>>>>>>>>> at performance time.
>>>>>>>>>
>>>>>>>>> I am having difficulties in achieving this with the current
>>>>>>>>> opcodes.
>>>>>>>>>
>>>>>>>>> Cheers,
>>>>>>>>>
>>>>>>>>> Josh
>>>>>>>>>
>>>>>>>>> _________________________________________________________________
>>>>>>>>> http://clk.atdmt.com/UKM/go/195013117/direct/01/
>>>>>>>>>
>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>
>>>>>>>>> _______________________________________________
>>>>>>>>> Csound-devel mailing list
>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>
>>>>>>>>
>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> Csound-devel mailing list
>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>
>>>>>>> _________________________________________________________________
>>>>>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>>>>>> Do you have a story that started on Hotmail? Tell us now
>>>>>>> ------------------------------------------------------------------------------
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Csound-devel mailing list
>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>>
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>
>>>>> _________________________________________________________________
>>>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>>>> We want to hear all your funny, exciting and crazy Hotmail  
>>>>> stories.
>>>>> Tell us now
>>>>> ------------------------------------------------------------------------------
>>>>>
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>>
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>> _________________________________________________________________
>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>> Do you have a story that started on Hotmail? Tell us now
>>> ------------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>
>> ------------------------------------------------------------------------------
>>
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 		 	   		
> _________________________________________________________________
> http://clk.atdmt.com/UKM/go/197222280/direct/01/
> We want to hear all your funny, exciting and crazy Hotmail stories.  
> Tell us now
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------

_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-05-14 23:54
FromVictor Lazzarini
SubjectRe: [Cs-dev] loop with a pause inbetween
In fact, the envelope will sound better with a little bit of transition

f2 0 1024 7 1 512 1 1 0 512 0

Victor
On 14 May 2010, at 23:50, Victor Lazzarini wrote:

> In that case, maybe this is the answer, a gating/envelope instrument.
>
> 
> 
> -odac
> 
> 
> 0dbfs = 1
> nchnls=1
> ksmps =32
> instr 1
> kgapsize line 1, p3, 2
> a1 phasor sr/ftlen(1)
> asig tab a1, 1, 1
> aenv table a1*kgapsize,2,1
> out asig*aenv
> endin
> 
> 
> f2 0 1024 7 1 512 1 1 0 512 0
> f1 0 -44100 1 "flutec3.wav" 0 0 1
> i1 0 15
> 
> 
>
>
>
>
> On 14 May 2010, at 23:13, Josh Brown wrote:
>
>>
>> I could but I'm using a drum loop... It's such a shame there isn't
>> an opcode for this! It would be great for live sampling.
>>
>> Josh
>>
>> ----------------------------------------
>>> From: Victor.Lazzarini@nuim.ie
>>> To: csound-devel@lists.sourceforge.net
>>> Date: Fri, 14 May 2010 23:07:55 +0100
>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>
>>> you can start the loop a little later and keep the end of the loop  
>>> at
>>> the end of the table.
>>>
>>> Victor
>>> On 14 May 2010, at 22:56, Josh Brown wrote:
>>>
>>>>
>>>> Sorry, I see what you mean now ... but there is still a problem.  
>>>> Say
>>>> if I wanted to shorten the clip to 5 seconds. Like so:
>>>>
>>>> a1 flooper2 0.5, 1, 0, 5, 1, 1
>>>>
>>>> I wouldn't be able to add the silence because the rest of the table
>>>> wouldn't be empty.
>>>> ----------------------------------------
>>>>> From: Victor.Lazzarini@nuim.ie
>>>>> To: csound-devel@lists.sourceforge.net
>>>>> Date: Fri, 14 May 2010 22:53:15 +0100
>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>
>>>>> No, you don't need to edit the file. All you need is to make your
>>>>> table long enough to accommodate your file and
>>>>> the rest. That is what I did in that example.
>>>>>
>>>>> Say your file is 2 secs and you want a 1 sec rest. Make the table
>>>>> 3*sr points long. And so on.
>>>>>
>>>>> Victor
>>>>>
>>>>>
>>>>> On 14 May 2010, at 22:27, Josh Brown wrote:
>>>>>
>>>>>>
>>>>>> Yes, I want something similar to this only with a rest of say, 1
>>>>>> second, in-between each repeat. Of course I could edit the file
>>>>>> "flutec3.wav" manually and add the silence myself but I would
>>>>>> prefer
>>>>>> to use csound.
>>>>>>
>>>>>> ----------------------------------------
>>>>>>> From: Victor.Lazzarini@nuim.ie
>>>>>>> To: csound-devel@lists.sourceforge.net
>>>>>>> Date: Fri, 14 May 2010 22:13:31 +0100
>>>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>>>
>>>>>>> Here's an example that does what you want. Use this file with it
>>>>>>> http://music.nuim.ie/music/sites/cpaneltest.nuim.ie.music/files/music/flutec3.wav
>>>>>>>
>>>>>>> (or any file less than 10 sec long)
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> -odac
>>>>>>>
>>>>>>>
>>>>>>> 0dbfs = 1
>>>>>>> nchnls=1
>>>>>>> ksmps =32
>>>>>>> instr 1
>>>>>>> a1 flooper2 0.5, 1, 0, 10, 1, 1
>>>>>>> out a1
>>>>>>> endin
>>>>>>>
>>>>>>>
>>>>>>> f1 0 -441000 1 "flutec3.wav" 0 0 1
>>>>>>> i1 0 60
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On 14 May 2010, at 21:54, Josh Brown wrote:
>>>>>>>
>>>>>>>>
>>>>>>>> I fear the solution to this will be incredibly complex. I'm not
>>>>>>>> skilled in the art of csound and thus far, all my attempts have
>>>>>>>> failed. Looking at flooper, lposcil and many of the other loop
>>>>>>>> based
>>>>>>>> opcodes - they do not allow for a pause or gap inbetween.
>>>>>>>> I have tried extending the size of the function table but this
>>>>>>>> did
>>>>>>>> not allow me to make my sample smaller, with a gap inbetween. I
>>>>>>>> tried getting a oscillator in synch with conditionals to
>>>>>>>> create a
>>>>>>>> drop in the amplitude but this did not help. Finally, I looked
>>>>>>>> briefly at looping my sample within the score but couldn't
>>>>>>>> find an
>>>>>>>> opcode which lets me change the start and end points, whilst
>>>>>>>> playing
>>>>>>>> the sample once.
>>>>>>>> -------------------------------------------------
>>>>>>>>> From: rorywalsh@ear.ie
>>>>>>>>> Date: Fri, 14 May 2010 21:27:02 +0100
>>>>>>>>> To: csound-devel@lists.sourceforge.net
>>>>>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>>>>>
>>>>>>>>> This should be quite possible with the current opcodes, even
>>>>>>>>> with
>>>>>>>>> tab
>>>>>>>>> and tabw, perhaps if you explain to us how you tried going
>>>>>>>>> about it
>>>>>>>>> we
>>>>>>>>> could help?
>>>>>>>>>
>>>>>>>>> On 14 May 2010 21:16, Josh Brown wrote:
>>>>>>>>>>
>>>>>>>>>> Please make a opcode which allows me to loop sampled sound
>>>>>>>>>> from a
>>>>>>>>>> function table with a pause in-between each cycle. Something
>>>>>>>>>> like
>>>>>>>>>> lposcil but with a gap of a specified length which can be
>>>>>>>>>> changed
>>>>>>>>>> at performance time.
>>>>>>>>>>
>>>>>>>>>> I am having difficulties in achieving this with the current
>>>>>>>>>> opcodes.
>>>>>>>>>>
>>>>>>>>>> Cheers,
>>>>>>>>>>
>>>>>>>>>> Josh
>>>>>>>>>>
>>>>>>>>>> _________________________________________________________________
>>>>>>>>>> http://clk.atdmt.com/UKM/go/195013117/direct/01/
>>>>>>>>>>
>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>
>>>>>>>>>> _______________________________________________
>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>
>>>>>>>>> _______________________________________________
>>>>>>>>> Csound-devel mailing list
>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>
>>>>>>>> _________________________________________________________________
>>>>>>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>>>>>>> Do you have a story that started on Hotmail? Tell us now
>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> Csound-devel mailing list
>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>
>>>>>>>
>>>>>>> ------------------------------------------------------------------------------
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Csound-devel mailing list
>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>
>>>>>> _________________________________________________________________
>>>>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>>>>> We want to hear all your funny, exciting and crazy Hotmail
>>>>>> stories.
>>>>>> Tell us now
>>>>>> ------------------------------------------------------------------------------
>>>>>>
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>>
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>> _________________________________________________________________
>>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>>> Do you have a story that started on Hotmail? Tell us now
>>>> ------------------------------------------------------------------------------
>>>>
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>>
>>> ------------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> 		 	   		
>> _________________________________________________________________
>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>> We want to hear all your funny, exciting and crazy Hotmail stories.
>> Tell us now
>> ------------------------------------------------------------------------------
>>
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------

_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-05-14 23:55
FromVictor Lazzarini
SubjectRe: [Cs-dev] loop with a pause inbetween
I meant

f2 0 1024 7 0 50 1 412 1 50 0 512 0

Victor
On 14 May 2010, at 23:54, Victor Lazzarini wrote:

> In fact, the envelope will sound better with a little bit of  
> transition
>
> f2 0 1024 7 1 512 1 1 0 512 0
>
> Victor
> On 14 May 2010, at 23:50, Victor Lazzarini wrote:
>
>> In that case, maybe this is the answer, a gating/envelope instrument.
>>
>> 
>> 
>> -odac
>> 
>> 
>> 0dbfs = 1
>> nchnls=1
>> ksmps =32
>> instr 1
>> kgapsize line 1, p3, 2
>> a1 phasor sr/ftlen(1)
>> asig tab a1, 1, 1
>> aenv table a1*kgapsize,2,1
>> out asig*aenv
>> endin
>> 
>> 
>> f2 0 1024 7 1 512 1 1 0 512 0
>> f1 0 -44100 1 "flutec3.wav" 0 0 1
>> i1 0 15
>> 
>> 
>>
>>
>>
>>
>> On 14 May 2010, at 23:13, Josh Brown wrote:
>>
>>>
>>> I could but I'm using a drum loop... It's such a shame there isn't
>>> an opcode for this! It would be great for live sampling.
>>>
>>> Josh
>>>
>>> ----------------------------------------
>>>> From: Victor.Lazzarini@nuim.ie
>>>> To: csound-devel@lists.sourceforge.net
>>>> Date: Fri, 14 May 2010 23:07:55 +0100
>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>
>>>> you can start the loop a little later and keep the end of the loop
>>>> at
>>>> the end of the table.
>>>>
>>>> Victor
>>>> On 14 May 2010, at 22:56, Josh Brown wrote:
>>>>
>>>>>
>>>>> Sorry, I see what you mean now ... but there is still a problem.
>>>>> Say
>>>>> if I wanted to shorten the clip to 5 seconds. Like so:
>>>>>
>>>>> a1 flooper2 0.5, 1, 0, 5, 1, 1
>>>>>
>>>>> I wouldn't be able to add the silence because the rest of the  
>>>>> table
>>>>> wouldn't be empty.
>>>>> ----------------------------------------
>>>>>> From: Victor.Lazzarini@nuim.ie
>>>>>> To: csound-devel@lists.sourceforge.net
>>>>>> Date: Fri, 14 May 2010 22:53:15 +0100
>>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>>
>>>>>> No, you don't need to edit the file. All you need is to make your
>>>>>> table long enough to accommodate your file and
>>>>>> the rest. That is what I did in that example.
>>>>>>
>>>>>> Say your file is 2 secs and you want a 1 sec rest. Make the table
>>>>>> 3*sr points long. And so on.
>>>>>>
>>>>>> Victor
>>>>>>
>>>>>>
>>>>>> On 14 May 2010, at 22:27, Josh Brown wrote:
>>>>>>
>>>>>>>
>>>>>>> Yes, I want something similar to this only with a rest of say, 1
>>>>>>> second, in-between each repeat. Of course I could edit the file
>>>>>>> "flutec3.wav" manually and add the silence myself but I would
>>>>>>> prefer
>>>>>>> to use csound.
>>>>>>>
>>>>>>> ----------------------------------------
>>>>>>>> From: Victor.Lazzarini@nuim.ie
>>>>>>>> To: csound-devel@lists.sourceforge.net
>>>>>>>> Date: Fri, 14 May 2010 22:13:31 +0100
>>>>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>>>>
>>>>>>>> Here's an example that does what you want. Use this file with  
>>>>>>>> it
>>>>>>>> http://music.nuim.ie/music/sites/cpaneltest.nuim.ie.music/files/music/flutec3.wav
>>>>>>>>
>>>>>>>> (or any file less than 10 sec long)
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> -odac
>>>>>>>>
>>>>>>>>
>>>>>>>> 0dbfs = 1
>>>>>>>> nchnls=1
>>>>>>>> ksmps =32
>>>>>>>> instr 1
>>>>>>>> a1 flooper2 0.5, 1, 0, 10, 1, 1
>>>>>>>> out a1
>>>>>>>> endin
>>>>>>>>
>>>>>>>>
>>>>>>>> f1 0 -441000 1 "flutec3.wav" 0 0 1
>>>>>>>> i1 0 60
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> On 14 May 2010, at 21:54, Josh Brown wrote:
>>>>>>>>
>>>>>>>>>
>>>>>>>>> I fear the solution to this will be incredibly complex. I'm  
>>>>>>>>> not
>>>>>>>>> skilled in the art of csound and thus far, all my attempts  
>>>>>>>>> have
>>>>>>>>> failed. Looking at flooper, lposcil and many of the other loop
>>>>>>>>> based
>>>>>>>>> opcodes - they do not allow for a pause or gap inbetween.
>>>>>>>>> I have tried extending the size of the function table but this
>>>>>>>>> did
>>>>>>>>> not allow me to make my sample smaller, with a gap  
>>>>>>>>> inbetween. I
>>>>>>>>> tried getting a oscillator in synch with conditionals to
>>>>>>>>> create a
>>>>>>>>> drop in the amplitude but this did not help. Finally, I looked
>>>>>>>>> briefly at looping my sample within the score but couldn't
>>>>>>>>> find an
>>>>>>>>> opcode which lets me change the start and end points, whilst
>>>>>>>>> playing
>>>>>>>>> the sample once.
>>>>>>>>> -------------------------------------------------
>>>>>>>>>> From: rorywalsh@ear.ie
>>>>>>>>>> Date: Fri, 14 May 2010 21:27:02 +0100
>>>>>>>>>> To: csound-devel@lists.sourceforge.net
>>>>>>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>>>>>>
>>>>>>>>>> This should be quite possible with the current opcodes, even
>>>>>>>>>> with
>>>>>>>>>> tab
>>>>>>>>>> and tabw, perhaps if you explain to us how you tried going
>>>>>>>>>> about it
>>>>>>>>>> we
>>>>>>>>>> could help?
>>>>>>>>>>
>>>>>>>>>> On 14 May 2010 21:16, Josh Brown wrote:
>>>>>>>>>>>
>>>>>>>>>>> Please make a opcode which allows me to loop sampled sound
>>>>>>>>>>> from a
>>>>>>>>>>> function table with a pause in-between each cycle. Something
>>>>>>>>>>> like
>>>>>>>>>>> lposcil but with a gap of a specified length which can be
>>>>>>>>>>> changed
>>>>>>>>>>> at performance time.
>>>>>>>>>>>
>>>>>>>>>>> I am having difficulties in achieving this with the current
>>>>>>>>>>> opcodes.
>>>>>>>>>>>
>>>>>>>>>>> Cheers,
>>>>>>>>>>>
>>>>>>>>>>> Josh
>>>>>>>>>>>
>>>>>>>>>>> _________________________________________________________________
>>>>>>>>>>> http://clk.atdmt.com/UKM/go/195013117/direct/01/
>>>>>>>>>>>
>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>
>>>>>>>>>>> _______________________________________________
>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>
>>>>>>>>>> _______________________________________________
>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>
>>>>>>>>> _________________________________________________________________
>>>>>>>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>>>>>>>> Do you have a story that started on Hotmail? Tell us now
>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>
>>>>>>>>> _______________________________________________
>>>>>>>>> Csound-devel mailing list
>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>
>>>>>>>>
>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> Csound-devel mailing list
>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>
>>>>>>> _________________________________________________________________
>>>>>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>>>>>> We want to hear all your funny, exciting and crazy Hotmail
>>>>>>> stories.
>>>>>>> Tell us now
>>>>>>> ------------------------------------------------------------------------------
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Csound-devel mailing list
>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>>
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>
>>>>> _________________________________________________________________
>>>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>>>> Do you have a story that started on Hotmail? Tell us now
>>>>> ------------------------------------------------------------------------------
>>>>>
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>>
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> 		 	   		
>>> _________________________________________________________________
>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>> We want to hear all your funny, exciting and crazy Hotmail stories.
>>> Tell us now
>>> ------------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>
>> ------------------------------------------------------------------------------
>>
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------

_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-05-15 00:03
FromJosh Brown
SubjectRe: [Cs-dev] loop with a pause inbetween
Thank you very much, I will have a look at this and get back to you.

----------------------------------------
> From: Victor.Lazzarini@nuim.ie
> To: csound-devel@lists.sourceforge.thanet
> Date: Fri, 14 May 2010 23:55:03 +0100
> Subject: Re: [Cs-dev] loop with a pause inbetween
>
> I meant
>
> f2 0 1024 7 0 50 1 412 1 50 0 512 0
>
> Victor
> On 14 May 2010, at 23:54, Victor Lazzarini wrote:
>
>> In fact, the envelope will sound better with a little bit of
>> transition
>>
>> f2 0 1024 7 1 512 1 1 0 512 0
>>
>> Victor
>> On 14 May 2010, at 23:50, Victor Lazzarini wrote:
>>
>>> In that case, maybe this is the answer, a gating/envelope instrument.
>>>
>>> 
>>> 
>>> -odac
>>> 
>>> 
>>> 0dbfs = 1
>>> nchnls=1
>>> ksmps =32
>>> instr 1
>>> kgapsize line 1, p3, 2
>>> a1 phasor sr/ftlen(1)
>>> asig tab a1, 1, 1
>>> aenv table a1*kgapsize,2,1
>>> out asig*aenv
>>> endin
>>> 
>>> 
>>> f2 0 1024 7 1 512 1 1 0 512 0
>>> f1 0 -44100 1 "flutec3.wav" 0 0 1
>>> i1 0 15
>>> 
>>> 
>>>
>>>
>>>
>>>
>>> On 14 May 2010, at 23:13, Josh Brown wrote:
>>>
>>>>
>>>> I could but I'm using a drum loop... It's such a shame there isn't
>>>> an opcode for this! It would be great for live sampling.
>>>>
>>>> Josh
>>>>
>>>> ----------------------------------------
>>>>> From: Victor.Lazzarini@nuim.ie
>>>>> To: csound-devel@lists.sourceforge.net
>>>>> Date: Fri, 14 May 2010 23:07:55 +0100
>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>
>>>>> you can start the loop a little later and keep the end of the loop
>>>>> at
>>>>> the end of the table.
>>>>>
>>>>> Victor
>>>>> On 14 May 2010, at 22:56, Josh Brown wrote:
>>>>>
>>>>>>
>>>>>> Sorry, I see what you mean now ... but there is still a problem.
>>>>>> Say
>>>>>> if I wanted to shorten the clip to 5 seconds. Like so:
>>>>>>
>>>>>> a1 flooper2 0.5, 1, 0, 5, 1, 1
>>>>>>
>>>>>> I wouldn't be able to add the silence because the rest of the
>>>>>> table
>>>>>> wouldn't be empty.
>>>>>> ----------------------------------------
>>>>>>> From: Victor.Lazzarini@nuim.ie
>>>>>>> To: csound-devel@lists.sourceforge.net
>>>>>>> Date: Fri, 14 May 2010 22:53:15 +0100
>>>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>>>
>>>>>>> No, you don't need to edit the file. All you need is to make your
>>>>>>> table long enough to accommodate your file and
>>>>>>> the rest. That is what I did in that example.
>>>>>>>
>>>>>>> Say your file is 2 secs and you want a 1 sec rest. Make the table
>>>>>>> 3*sr points long. And so on.
>>>>>>>
>>>>>>> Victor
>>>>>>>
>>>>>>>
>>>>>>> On 14 May 2010, at 22:27, Josh Brown wrote:
>>>>>>>
>>>>>>>>
>>>>>>>> Yes, I want something similar to this only with a rest of say, 1
>>>>>>>> second, in-between each repeat. Of course I could edit the file
>>>>>>>> "flutec3.wav" manually and add the silence myself but I would
>>>>>>>> prefer
>>>>>>>> to use csound.
>>>>>>>>
>>>>>>>> ----------------------------------------
>>>>>>>>> From: Victor.Lazzarini@nuim.ie
>>>>>>>>> To: csound-devel@lists.sourceforge.net
>>>>>>>>> Date: Fri, 14 May 2010 22:13:31 +0100
>>>>>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>>>>>
>>>>>>>>> Here's an example that does what you want. Use this file with
>>>>>>>>> it
>>>>>>>>> http://music.nuim.ie/music/sites/cpaneltest.nuim.ie.music/files/music/flutec3.wav
>>>>>>>>>
>>>>>>>>> (or any file less than 10 sec long)
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> -odac
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> 0dbfs = 1
>>>>>>>>> nchnls=1
>>>>>>>>> ksmps =32
>>>>>>>>> instr 1
>>>>>>>>> a1 flooper2 0.5, 1, 0, 10, 1, 1
>>>>>>>>> out a1
>>>>>>>>> endin
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> f1 0 -441000 1 "flutec3.wav" 0 0 1
>>>>>>>>> i1 0 60
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On 14 May 2010, at 21:54, Josh Brown wrote:
>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> I fear the solution to this will be incredibly complex. I'm
>>>>>>>>>> not
>>>>>>>>>> skilled in the art of csound and thus far, all my attempts
>>>>>>>>>> have
>>>>>>>>>> failed. Looking at flooper, lposcil and many of the other loop
>>>>>>>>>> based
>>>>>>>>>> opcodes - they do not allow for a pause or gap inbetween.
>>>>>>>>>> I have tried extending the size of the function table but this
>>>>>>>>>> did
>>>>>>>>>> not allow me to make my sample smaller, with a gap
>>>>>>>>>> inbetween. I
>>>>>>>>>> tried getting a oscillator in synch with conditionals to
>>>>>>>>>> create a
>>>>>>>>>> drop in the amplitude but this did not help. Finally, I looked
>>>>>>>>>> briefly at looping my sample within the score but couldn't
>>>>>>>>>> find an
>>>>>>>>>> opcode which lets me change the start and end points, whilst
>>>>>>>>>> playing
>>>>>>>>>> the sample once.
>>>>>>>>>> -------------------------------------------------
>>>>>>>>>>> From: rorywalsh@ear.ie
>>>>>>>>>>> Date: Fri, 14 May 2010 21:27:02 +0100
>>>>>>>>>>> To: csound-devel@lists.sourceforge.net
>>>>>>>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>>>>>>>
>>>>>>>>>>> This should be quite possible with the current opcodes, even
>>>>>>>>>>> with
>>>>>>>>>>> tab
>>>>>>>>>>> and tabw, perhaps if you explain to us how you tried going
>>>>>>>>>>> about it
>>>>>>>>>>> we
>>>>>>>>>>> could help?
>>>>>>>>>>>
>>>>>>>>>>> On 14 May 2010 21:16, Josh Brown wrote:
>>>>>>>>>>>>
>>>>>>>>>>>> Please make a opcode which allows me to loop sampled sound
>>>>>>>>>>>> from a
>>>>>>>>>>>> function table with a pause in-between each cycle. Something
>>>>>>>>>>>> like
>>>>>>>>>>>> lposcil but with a gap of a specified length which can be
>>>>>>>>>>>> changed
>>>>>>>>>>>> at performance time.
>>>>>>>>>>>>
>>>>>>>>>>>> I am having difficulties in achieving this with the current
>>>>>>>>>>>> opcodes.
>>>>>>>>>>>>
>>>>>>>>>>>> Cheers,
>>>>>>>>>>>>
>>>>>>>>>>>> Josh
>>>>>>>>>>>>
>>>>>>>>>>>> _________________________________________________________________
>>>>>>>>>>>> http://clk.atdmt.com/UKM/go/195013117/direct/01/
>>>>>>>>>>>>
>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>>
>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>
>>>>>>>>>>> _______________________________________________
>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>
>>>>>>>>>> _________________________________________________________________
>>>>>>>>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>>>>>>>>> Do you have a story that started on Hotmail? Tell us now
>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>
>>>>>>>>>> _______________________________________________
>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>
>>>>>>>>> _______________________________________________
>>>>>>>>> Csound-devel mailing list
>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>
>>>>>>>> _________________________________________________________________
>>>>>>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>>>>>>> We want to hear all your funny, exciting and crazy Hotmail
>>>>>>>> stories.
>>>>>>>> Tell us now
>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> Csound-devel mailing list
>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>
>>>>>>>
>>>>>>> ------------------------------------------------------------------------------
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Csound-devel mailing list
>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>
>>>>>> _________________________________________________________________
>>>>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>>>>> Do you have a story that started on Hotmail? Tell us now
>>>>>> ------------------------------------------------------------------------------
>>>>>>
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>>
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>> _________________________________________________________________
>>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>>> We want to hear all your funny, exciting and crazy Hotmail stories.
>>>> Tell us now
>>>> ------------------------------------------------------------------------------
>>>>
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>>
>>> ------------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>
>> ------------------------------------------------------------------------------
>>
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
 		 	   		  
_________________________________________________________________
http://clk.atdmt.com/UKM/go/197222280/direct/01/
We want to hear all your funny, exciting and crazy Hotmail stories. Tell us now
------------------------------------------------------------------------------

_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-05-15 00:10
FromOeyvind Brandtsegg
SubjectRe: [Cs-dev] loop with a pause inbetween
This will loop a (mono) soundfile with a selectable pause in between each loop.
Plays from start to end of the file each time it loops (easily changed).
to be able to use the sound file with normal table opcodes, you need
to load it into a table with a pow-of-two size,
this is done in instr 1.
instr 2 does the looping.
I've done no enveloping, so if your file does not start and end in
zero, you might get clicks, but adding a declick envelope should be
easy too.

Oeyvind



-oloop_skip.wav



	sr	= 44100
	kr	= 441
	ksmps	= 100
	nchnls	= 2
	0dbfs	= 1

	giSample	ftgen	0, 0, 0, 1, "HangOn1_mono.wav", 0, 0, 0

;********************************************
	instr 1
; convert ftable to power of two size, usable with table opcode

ilength		= ftlen(giSample)
ipowsize	= 2
findpow2:
if ipowsize > ilength goto done
ipowsize	= ipowsize * 2
goto findpow2
done:
print ilength, ipowsize
giSamplePow	ftgen	0, 0, ipowsize, 1, "HangOn1_mono.wav", 0, 0, 0

	endin
;********************************************
; play audio looped, with control over skip time between loops
		instr 2

ilength		= ftlen(giSample)/sr

doLoop:
iskiptime	= 2
andx		linseg	0, ilength, 1, iskiptime, 1
a1		tablei	andx, giSamplePow, 1
ktime		line 0, ilength+iskiptime, 1
if ktime < 1 kgoto done
reinit doLoop
done:
		outs a1, a1

	endin
;********************************************



i1 0 .1
i2 1 30

e






2010/5/15 Josh Brown :
>
> Thank you very much, I will have a look at this and get back to you.
>
> ----------------------------------------
>> From: Victor.Lazzarini@nuim.ie
>> To: csound-devel@lists.sourceforge.thanet
>> Date: Fri, 14 May 2010 23:55:03 +0100
>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>
>> I meant
>>
>> f2 0 1024 7 0 50 1 412 1 50 0 512 0
>>
>> Victor
>> On 14 May 2010, at 23:54, Victor Lazzarini wrote:
>>
>>> In fact, the envelope will sound better with a little bit of
>>> transition
>>>
>>> f2 0 1024 7 1 512 1 1 0 512 0
>>>
>>> Victor
>>> On 14 May 2010, at 23:50, Victor Lazzarini wrote:
>>>
>>>> In that case, maybe this is the answer, a gating/envelope instrument.
>>>>
>>>>
>>>>
>>>> -odac
>>>>
>>>>
>>>> 0dbfs = 1
>>>> nchnls=1
>>>> ksmps =32
>>>> instr 1
>>>> kgapsize line 1, p3, 2
>>>> a1 phasor sr/ftlen(1)
>>>> asig tab a1, 1, 1
>>>> aenv table a1*kgapsize,2,1
>>>> out asig*aenv
>>>> endin
>>>>
>>>>
>>>> f2 0 1024 7 1 512 1 1 0 512 0
>>>> f1 0 -44100 1 "flutec3.wav" 0 0 1
>>>> i1 0 15
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> On 14 May 2010, at 23:13, Josh Brown wrote:
>>>>
>>>>>
>>>>> I could but I'm using a drum loop... It's such a shame there isn't
>>>>> an opcode for this! It would be great for live sampling.
>>>>>
>>>>> Josh
>>>>>
>>>>> ----------------------------------------
>>>>>> From: Victor.Lazzarini@nuim.ie
>>>>>> To: csound-devel@lists.sourceforge.net
>>>>>> Date: Fri, 14 May 2010 23:07:55 +0100
>>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>>
>>>>>> you can start the loop a little later and keep the end of the loop
>>>>>> at
>>>>>> the end of the table.
>>>>>>
>>>>>> Victor
>>>>>> On 14 May 2010, at 22:56, Josh Brown wrote:
>>>>>>
>>>>>>>
>>>>>>> Sorry, I see what you mean now ... but there is still a problem.
>>>>>>> Say
>>>>>>> if I wanted to shorten the clip to 5 seconds. Like so:
>>>>>>>
>>>>>>> a1 flooper2 0.5, 1, 0, 5, 1, 1
>>>>>>>
>>>>>>> I wouldn't be able to add the silence because the rest of the
>>>>>>> table
>>>>>>> wouldn't be empty.
>>>>>>> ----------------------------------------
>>>>>>>> From: Victor.Lazzarini@nuim.ie
>>>>>>>> To: csound-devel@lists.sourceforge.net
>>>>>>>> Date: Fri, 14 May 2010 22:53:15 +0100
>>>>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>>>>
>>>>>>>> No, you don't need to edit the file. All you need is to make your
>>>>>>>> table long enough to accommodate your file and
>>>>>>>> the rest. That is what I did in that example.
>>>>>>>>
>>>>>>>> Say your file is 2 secs and you want a 1 sec rest. Make the table
>>>>>>>> 3*sr points long. And so on.
>>>>>>>>
>>>>>>>> Victor
>>>>>>>>
>>>>>>>>
>>>>>>>> On 14 May 2010, at 22:27, Josh Brown wrote:
>>>>>>>>
>>>>>>>>>
>>>>>>>>> Yes, I want something similar to this only with a rest of say, 1
>>>>>>>>> second, in-between each repeat. Of course I could edit the file
>>>>>>>>> "flutec3.wav" manually and add the silence myself but I would
>>>>>>>>> prefer
>>>>>>>>> to use csound.
>>>>>>>>>
>>>>>>>>> ----------------------------------------
>>>>>>>>>> From: Victor.Lazzarini@nuim.ie
>>>>>>>>>> To: csound-devel@lists.sourceforge.net
>>>>>>>>>> Date: Fri, 14 May 2010 22:13:31 +0100
>>>>>>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>>>>>>
>>>>>>>>>> Here's an example that does what you want. Use this file with
>>>>>>>>>> it
>>>>>>>>>> http://music.nuim.ie/music/sites/cpaneltest.nuim.ie.music/files/music/flutec3.wav
>>>>>>>>>>
>>>>>>>>>> (or any file less than 10 sec long)
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> -odac
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> 0dbfs = 1
>>>>>>>>>> nchnls=1
>>>>>>>>>> ksmps =32
>>>>>>>>>> instr 1
>>>>>>>>>> a1 flooper2 0.5, 1, 0, 10, 1, 1
>>>>>>>>>> out a1
>>>>>>>>>> endin
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> f1 0 -441000 1 "flutec3.wav" 0 0 1
>>>>>>>>>> i1 0 60
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On 14 May 2010, at 21:54, Josh Brown wrote:
>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> I fear the solution to this will be incredibly complex. I'm
>>>>>>>>>>> not
>>>>>>>>>>> skilled in the art of csound and thus far, all my attempts
>>>>>>>>>>> have
>>>>>>>>>>> failed. Looking at flooper, lposcil and many of the other loop
>>>>>>>>>>> based
>>>>>>>>>>> opcodes - they do not allow for a pause or gap inbetween.
>>>>>>>>>>> I have tried extending the size of the function table but this
>>>>>>>>>>> did
>>>>>>>>>>> not allow me to make my sample smaller, with a gap
>>>>>>>>>>> inbetween. I
>>>>>>>>>>> tried getting a oscillator in synch with conditionals to
>>>>>>>>>>> create a
>>>>>>>>>>> drop in the amplitude but this did not help. Finally, I looked
>>>>>>>>>>> briefly at looping my sample within the score but couldn't
>>>>>>>>>>> find an
>>>>>>>>>>> opcode which lets me change the start and end points, whilst
>>>>>>>>>>> playing
>>>>>>>>>>> the sample once.
>>>>>>>>>>> -------------------------------------------------
>>>>>>>>>>>> From: rorywalsh@ear.ie
>>>>>>>>>>>> Date: Fri, 14 May 2010 21:27:02 +0100
>>>>>>>>>>>> To: csound-devel@lists.sourceforge.net
>>>>>>>>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>>>>>>>>
>>>>>>>>>>>> This should be quite possible with the current opcodes, even
>>>>>>>>>>>> with
>>>>>>>>>>>> tab
>>>>>>>>>>>> and tabw, perhaps if you explain to us how you tried going
>>>>>>>>>>>> about it
>>>>>>>>>>>> we
>>>>>>>>>>>> could help?
>>>>>>>>>>>>
>>>>>>>>>>>> On 14 May 2010 21:16, Josh Brown wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>> Please make a opcode which allows me to loop sampled sound
>>>>>>>>>>>>> from a
>>>>>>>>>>>>> function table with a pause in-between each cycle. Something
>>>>>>>>>>>>> like
>>>>>>>>>>>>> lposcil but with a gap of a specified length which can be
>>>>>>>>>>>>> changed
>>>>>>>>>>>>> at performance time.
>>>>>>>>>>>>>
>>>>>>>>>>>>> I am having difficulties in achieving this with the current
>>>>>>>>>>>>> opcodes.
>>>>>>>>>>>>>
>>>>>>>>>>>>> Cheers,
>>>>>>>>>>>>>
>>>>>>>>>>>>> Josh
>>>>>>>>>>>>>
>>>>>>>>>>>>> _________________________________________________________________
>>>>>>>>>>>>> http://clk.atdmt.com/UKM/go/195013117/direct/01/
>>>>>>>>>>>>>
>>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>>>
>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>>
>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>
>>>>>>>>>>> _________________________________________________________________
>>>>>>>>>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>>>>>>>>>> Do you have a story that started on Hotmail? Tell us now
>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>
>>>>>>>>>>> _______________________________________________
>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>
>>>>>>>>>> _______________________________________________
>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>
>>>>>>>>> _________________________________________________________________
>>>>>>>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>>>>>>>> We want to hear all your funny, exciting and crazy Hotmail
>>>>>>>>> stories.
>>>>>>>>> Tell us now
>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>
>>>>>>>>> _______________________________________________
>>>>>>>>> Csound-devel mailing list
>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>
>>>>>>>>
>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> Csound-devel mailing list
>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>
>>>>>>> _________________________________________________________________
>>>>>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>>>>>> Do you have a story that started on Hotmail? Tell us now
>>>>>>> ------------------------------------------------------------------------------
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Csound-devel mailing list
>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>>
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>
>>>>> _________________________________________________________________
>>>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>>>> We want to hear all your funny, exciting and crazy Hotmail stories.
>>>>> Tell us now
>>>>> ------------------------------------------------------------------------------
>>>>>
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>>
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>>
>>> ------------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>
>> ------------------------------------------------------------------------------
>>
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> _________________________________________________________________
> http://clk.atdmt.com/UKM/go/197222280/direct/01/
> We want to hear all your funny, exciting and crazy Hotmail stories. Tell us now
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------

_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-05-15 01:38
FromMichael Gogins
SubjectRe: [Cs-dev] loop with a pause inbetween
I believe you could do this with a user-defined opcode that would send
out notes to control a sample player.

Regards,
Mike

On Fri, May 14, 2010 at 4:16 PM, Josh Brown  wrote:
>
> Please make a opcode which allows me to loop sampled sound from a function table with a pause in-between each cycle. Something like lposcil but with a gap of a specified length which can be changed at performance time.
>
> I am having difficulties in achieving this with the current opcodes.
>
> Cheers,
>
> Josh
>
> _________________________________________________________________
> http://clk.atdmt.com/UKM/go/195013117/direct/01/
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>



-- 
Michael Gogins
Irreducible Productions
http://www.michael-gogins.com
Michael dot Gogins at gmail dot com

------------------------------------------------------------------------------

_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-05-15 02:46
FromJosh Brown
SubjectRe: [Cs-dev] loop with a pause inbetween
This is good, thank you. Is there any way of changing the sample's start and end time?

Josh

----------------------------------------
> Date: Sat, 15 May 2010 01:10:00 +0200
> From: obrandts@gmail.com
> To: csound-devel@lists.sourceforge.net
> Subject: Re: [Cs-dev] loop with a pause inbetween
>
> This will loop a (mono) soundfile with a selectable pause in between each loop.
> Plays from start to end of the file each time it loops (easily changed).
> to be able to use the sound file with normal table opcodes, you need
> to load it into a table with a pow-of-two size,
> this is done in instr 1.
> instr 2 does the looping.
> I've done no enveloping, so if your file does not start and end in
> zero, you might get clicks, but adding a declick envelope should be
> easy too.
>
> Oeyvind
>
> 
> 
> -oloop_skip.wav
> 
> 
>
> sr = 44100
> kr = 441
> ksmps = 100
> nchnls = 2
> 0dbfs = 1
>
> giSample ftgen 0, 0, 0, 1, "HangOn1_mono.wav", 0, 0, 0
>
> ;********************************************
> instr 1
> ; convert ftable to power of two size, usable with table opcode
>
> ilength = ftlen(giSample)
> ipowsize = 2
> findpow2:
> if ipowsize> ilength goto done
> ipowsize = ipowsize * 2
> goto findpow2
> done:
> print ilength, ipowsize
> giSamplePow ftgen 0, 0, ipowsize, 1, "HangOn1_mono.wav", 0, 0, 0
>
> endin
> ;********************************************
> ; play audio looped, with control over skip time between loops
> instr 2
>
> ilength = ftlen(giSample)/sr
>
> doLoop:
> iskiptime = 2
> andx linseg 0, ilength, 1, iskiptime, 1
> a1 tablei andx, giSamplePow, 1
> ktime line 0, ilength+iskiptime, 1
> if ktime < 1 kgoto done
> reinit doLoop
> done:
> outs a1, a1
>
> endin
> ;********************************************
> 
>
> 
> i1 0 .1
> i2 1 30
>
> e
> 
> 
>
>
>
>
> 2010/5/15 Josh Brown :
>>
>> Thank you very much, I will have a look at this and get back to you.
>>
>> ----------------------------------------
>>> From: Victor.Lazzarini@nuim.ie
>>> To: csound-devel@lists.sourceforge.thanet
>>> Date: Fri, 14 May 2010 23:55:03 +0100
>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>
>>> I meant
>>>
>>> f2 0 1024 7 0 50 1 412 1 50 0 512 0
>>>
>>> Victor
>>> On 14 May 2010, at 23:54, Victor Lazzarini wrote:
>>>
>>>> In fact, the envelope will sound better with a little bit of
>>>> transition
>>>>
>>>> f2 0 1024 7 1 512 1 1 0 512 0
>>>>
>>>> Victor
>>>> On 14 May 2010, at 23:50, Victor Lazzarini wrote:
>>>>
>>>>> In that case, maybe this is the answer, a gating/envelope instrument.
>>>>>
>>>>>
>>>>>
>>>>> -odac
>>>>>
>>>>>
>>>>> 0dbfs = 1
>>>>> nchnls=1
>>>>> ksmps =32
>>>>> instr 1
>>>>> kgapsize line 1, p3, 2
>>>>> a1 phasor sr/ftlen(1)
>>>>> asig tab a1, 1, 1
>>>>> aenv table a1*kgapsize,2,1
>>>>> out asig*aenv
>>>>> endin
>>>>>
>>>>>
>>>>> f2 0 1024 7 1 512 1 1 0 512 0
>>>>> f1 0 -44100 1 "flutec3.wav" 0 0 1
>>>>> i1 0 15
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On 14 May 2010, at 23:13, Josh Brown wrote:
>>>>>
>>>>>>
>>>>>> I could but I'm using a drum loop... It's such a shame there isn't
>>>>>> an opcode for this! It would be great for live sampling.
>>>>>>
>>>>>> Josh
>>>>>>
>>>>>> ----------------------------------------
>>>>>>> From: Victor.Lazzarini@nuim.ie
>>>>>>> To: csound-devel@lists.sourceforge.net
>>>>>>> Date: Fri, 14 May 2010 23:07:55 +0100
>>>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>>>
>>>>>>> you can start the loop a little later and keep the end of the loop
>>>>>>> at
>>>>>>> the end of the table.
>>>>>>>
>>>>>>> Victor
>>>>>>> On 14 May 2010, at 22:56, Josh Brown wrote:
>>>>>>>
>>>>>>>>
>>>>>>>> Sorry, I see what you mean now ... but there is still a problem.
>>>>>>>> Say
>>>>>>>> if I wanted to shorten the clip to 5 seconds. Like so:
>>>>>>>>
>>>>>>>> a1 flooper2 0.5, 1, 0, 5, 1, 1
>>>>>>>>
>>>>>>>> I wouldn't be able to add the silence because the rest of the
>>>>>>>> table
>>>>>>>> wouldn't be empty.
>>>>>>>> ----------------------------------------
>>>>>>>>> From: Victor.Lazzarini@nuim.ie
>>>>>>>>> To: csound-devel@lists.sourceforge.net
>>>>>>>>> Date: Fri, 14 May 2010 22:53:15 +0100
>>>>>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>>>>>
>>>>>>>>> No, you don't need to edit the file. All you need is to make your
>>>>>>>>> table long enough to accommodate your file and
>>>>>>>>> the rest. That is what I did in that example.
>>>>>>>>>
>>>>>>>>> Say your file is 2 secs and you want a 1 sec rest. Make the table
>>>>>>>>> 3*sr points long. And so on.
>>>>>>>>>
>>>>>>>>> Victor
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On 14 May 2010, at 22:27, Josh Brown wrote:
>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Yes, I want something similar to this only with a rest of say, 1
>>>>>>>>>> second, in-between each repeat. Of course I could edit the file
>>>>>>>>>> "flutec3.wav" manually and add the silence myself but I would
>>>>>>>>>> prefer
>>>>>>>>>> to use csound.
>>>>>>>>>>
>>>>>>>>>> ----------------------------------------
>>>>>>>>>>> From: Victor.Lazzarini@nuim.ie
>>>>>>>>>>> To: csound-devel@lists.sourceforge.net
>>>>>>>>>>> Date: Fri, 14 May 2010 22:13:31 +0100
>>>>>>>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>>>>>>>
>>>>>>>>>>> Here's an example that does what you want. Use this file with
>>>>>>>>>>> it
>>>>>>>>>>> http://music.nuim.ie/music/sites/cpaneltest.nuim.ie.music/files/music/flutec3.wav
>>>>>>>>>>>
>>>>>>>>>>> (or any file less than 10 sec long)
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> -odac
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> 0dbfs = 1
>>>>>>>>>>> nchnls=1
>>>>>>>>>>> ksmps =32
>>>>>>>>>>> instr 1
>>>>>>>>>>> a1 flooper2 0.5, 1, 0, 10, 1, 1
>>>>>>>>>>> out a1
>>>>>>>>>>> endin
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> f1 0 -441000 1 "flutec3.wav" 0 0 1
>>>>>>>>>>> i1 0 60
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> On 14 May 2010, at 21:54, Josh Brown wrote:
>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> I fear the solution to this will be incredibly complex. I'm
>>>>>>>>>>>> not
>>>>>>>>>>>> skilled in the art of csound and thus far, all my attempts
>>>>>>>>>>>> have
>>>>>>>>>>>> failed. Looking at flooper, lposcil and many of the other loop
>>>>>>>>>>>> based
>>>>>>>>>>>> opcodes - they do not allow for a pause or gap inbetween.
>>>>>>>>>>>> I have tried extending the size of the function table but this
>>>>>>>>>>>> did
>>>>>>>>>>>> not allow me to make my sample smaller, with a gap
>>>>>>>>>>>> inbetween. I
>>>>>>>>>>>> tried getting a oscillator in synch with conditionals to
>>>>>>>>>>>> create a
>>>>>>>>>>>> drop in the amplitude but this did not help. Finally, I looked
>>>>>>>>>>>> briefly at looping my sample within the score but couldn't
>>>>>>>>>>>> find an
>>>>>>>>>>>> opcode which lets me change the start and end points, whilst
>>>>>>>>>>>> playing
>>>>>>>>>>>> the sample once.
>>>>>>>>>>>> -------------------------------------------------
>>>>>>>>>>>>> From: rorywalsh@ear.ie
>>>>>>>>>>>>> Date: Fri, 14 May 2010 21:27:02 +0100
>>>>>>>>>>>>> To: csound-devel@lists.sourceforge.net
>>>>>>>>>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>>>>>>>>>
>>>>>>>>>>>>> This should be quite possible with the current opcodes, even
>>>>>>>>>>>>> with
>>>>>>>>>>>>> tab
>>>>>>>>>>>>> and tabw, perhaps if you explain to us how you tried going
>>>>>>>>>>>>> about it
>>>>>>>>>>>>> we
>>>>>>>>>>>>> could help?
>>>>>>>>>>>>>
>>>>>>>>>>>>> On 14 May 2010 21:16, Josh Brown wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Please make a opcode which allows me to loop sampled sound
>>>>>>>>>>>>>> from a
>>>>>>>>>>>>>> function table with a pause in-between each cycle. Something
>>>>>>>>>>>>>> like
>>>>>>>>>>>>>> lposcil but with a gap of a specified length which can be
>>>>>>>>>>>>>> changed
>>>>>>>>>>>>>> at performance time.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> I am having difficulties in achieving this with the current
>>>>>>>>>>>>>> opcodes.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Cheers,
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Josh
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> _________________________________________________________________
>>>>>>>>>>>>>> http://clk.atdmt.com/UKM/go/195013117/direct/01/
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>>>
>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>>
>>>>>>>>>>>> _________________________________________________________________
>>>>>>>>>>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>>>>>>>>>>> Do you have a story that started on Hotmail? Tell us now
>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>>
>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>
>>>>>>>>>>> _______________________________________________
>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>
>>>>>>>>>> _________________________________________________________________
>>>>>>>>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>>>>>>>>> We want to hear all your funny, exciting and crazy Hotmail
>>>>>>>>>> stories.
>>>>>>>>>> Tell us now
>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>
>>>>>>>>>> _______________________________________________
>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>
>>>>>>>>> _______________________________________________
>>>>>>>>> Csound-devel mailing list
>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>
>>>>>>>> _________________________________________________________________
>>>>>>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>>>>>>> Do you have a story that started on Hotmail? Tell us now
>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> Csound-devel mailing list
>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>
>>>>>>>
>>>>>>> ------------------------------------------------------------------------------
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Csound-devel mailing list
>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>
>>>>>> _________________________________________________________________
>>>>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>>>>> We want to hear all your funny, exciting and crazy Hotmail stories.
>>>>>> Tell us now
>>>>>> ------------------------------------------------------------------------------
>>>>>>
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>>
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>>
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>>
>>> ------------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>> _________________________________________________________________
>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>> We want to hear all your funny, exciting and crazy Hotmail stories. Tell us now
>> ------------------------------------------------------------------------------
>>
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
 		 	   		  
_________________________________________________________________
http://clk.atdmt.com/UKM/go/197222280/direct/01/
We want to hear all your funny, exciting and crazy Hotmail stories. Tell us now
------------------------------------------------------------------------------

_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-05-15 03:19
FromJosh Brown
SubjectRe: [Cs-dev] loop with a pause inbetween
This works ok but I need to be able to change the start and end points.

----------------------------------------
> From: Victor.Lazzarini@nuim.ie
> To: csound-devel@lists.sourceforge.net
> Date: Fri, 14 May 2010 23:50:01 +0100
> Subject: Re: [Cs-dev] loop with a pause inbetween
>
> In that case, maybe this is the answer, a gating/envelope instrument.
>
> 
> 
> -odac
> 
> 
> 0dbfs = 1
> nchnls=1
> ksmps =32
> instr 1
> kgapsize line 1, p3, 2
> a1 phasor sr/ftlen(1)
> asig tab a1, 1, 1
> aenv table a1*kgapsize,2,1
> out asig*aenv
> endin
> 
> 
> f2 0 1024 7 1 512 1 1 0 512 0
> f1 0 -44100 1 "flutec3.wav" 0 0 1
> i1 0 15
> 
> 
>
>
>
>
> On 14 May 2010, at 23:13, Josh Brown wrote:
>
>>
>> I could but I'm using a drum loop... It's such a shame there isn't
>> an opcode for this! It would be great for live sampling.
>>
>> Josh
>>
>> ----------------------------------------
>>> From: Victor.Lazzarini@nuim.ie
>>> To: csound-devel@lists.sourceforge.net
>>> Date: Fri, 14 May 2010 23:07:55 +0100
>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>
>>> you can start the loop a little later and keep the end of the loop at
>>> the end of the table.
>>>
>>> Victor
>>> On 14 May 2010, at 22:56, Josh Brown wrote:
>>>
>>>>
>>>> Sorry, I see what you mean now ... but there is still a problem. Say
>>>> if I wanted to shorten the clip to 5 seconds. Like so:
>>>>
>>>> a1 flooper2 0.5, 1, 0, 5, 1, 1
>>>>
>>>> I wouldn't be able to add the silence because the rest of the table
>>>> wouldn't be empty.
>>>> ----------------------------------------
>>>>> From: Victor.Lazzarini@nuim.ie
>>>>> To: csound-devel@lists.sourceforge.net
>>>>> Date: Fri, 14 May 2010 22:53:15 +0100
>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>
>>>>> No, you don't need to edit the file. All you need is to make your
>>>>> table long enough to accommodate your file and
>>>>> the rest. That is what I did in that example.
>>>>>
>>>>> Say your file is 2 secs and you want a 1 sec rest. Make the table
>>>>> 3*sr points long. And so on.
>>>>>
>>>>> Victor
>>>>>
>>>>>
>>>>> On 14 May 2010, at 22:27, Josh Brown wrote:
>>>>>
>>>>>>
>>>>>> Yes, I want something similar to this only with a rest of say, 1
>>>>>> second, in-between each repeat. Of course I could edit the file
>>>>>> "flutec3.wav" manually and add the silence myself but I would
>>>>>> prefer
>>>>>> to use csound.
>>>>>>
>>>>>> ----------------------------------------
>>>>>>> From: Victor.Lazzarini@nuim.ie
>>>>>>> To: csound-devel@lists.sourceforge.net
>>>>>>> Date: Fri, 14 May 2010 22:13:31 +0100
>>>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>>>
>>>>>>> Here's an example that does what you want. Use this file with it
>>>>>>> http://music.nuim.ie/music/sites/cpaneltest.nuim.ie.music/files/music/flutec3.wav
>>>>>>>
>>>>>>> (or any file less than 10 sec long)
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> -odac
>>>>>>>
>>>>>>>
>>>>>>> 0dbfs = 1
>>>>>>> nchnls=1
>>>>>>> ksmps =32
>>>>>>> instr 1
>>>>>>> a1 flooper2 0.5, 1, 0, 10, 1, 1
>>>>>>> out a1
>>>>>>> endin
>>>>>>>
>>>>>>>
>>>>>>> f1 0 -441000 1 "flutec3.wav" 0 0 1
>>>>>>> i1 0 60
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On 14 May 2010, at 21:54, Josh Brown wrote:
>>>>>>>
>>>>>>>>
>>>>>>>> I fear the solution to this will be incredibly complex. I'm not
>>>>>>>> skilled in the art of csound and thus far, all my attempts have
>>>>>>>> failed. Looking at flooper, lposcil and many of the other loop
>>>>>>>> based
>>>>>>>> opcodes - they do not allow for a pause or gap inbetween.
>>>>>>>> I have tried extending the size of the function table but this
>>>>>>>> did
>>>>>>>> not allow me to make my sample smaller, with a gap inbetween. I
>>>>>>>> tried getting a oscillator in synch with conditionals to
>>>>>>>> create a
>>>>>>>> drop in the amplitude but this did not help. Finally, I looked
>>>>>>>> briefly at looping my sample within the score but couldn't
>>>>>>>> find an
>>>>>>>> opcode which lets me change the start and end points, whilst
>>>>>>>> playing
>>>>>>>> the sample once.
>>>>>>>> -------------------------------------------------
>>>>>>>>> From: rorywalsh@ear.ie
>>>>>>>>> Date: Fri, 14 May 2010 21:27:02 +0100
>>>>>>>>> To: csound-devel@lists.sourceforge.net
>>>>>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>>>>>
>>>>>>>>> This should be quite possible with the current opcodes, even
>>>>>>>>> with
>>>>>>>>> tab
>>>>>>>>> and tabw, perhaps if you explain to us how you tried going
>>>>>>>>> about it
>>>>>>>>> we
>>>>>>>>> could help?
>>>>>>>>>
>>>>>>>>> On 14 May 2010 21:16, Josh Brown wrote:
>>>>>>>>>>
>>>>>>>>>> Please make a opcode which allows me to loop sampled sound
>>>>>>>>>> from a
>>>>>>>>>> function table with a pause in-between each cycle. Something
>>>>>>>>>> like
>>>>>>>>>> lposcil but with a gap of a specified length which can be
>>>>>>>>>> changed
>>>>>>>>>> at performance time.
>>>>>>>>>>
>>>>>>>>>> I am having difficulties in achieving this with the current
>>>>>>>>>> opcodes.
>>>>>>>>>>
>>>>>>>>>> Cheers,
>>>>>>>>>>
>>>>>>>>>> Josh
>>>>>>>>>>
>>>>>>>>>> _________________________________________________________________
>>>>>>>>>> http://clk.atdmt.com/UKM/go/195013117/direct/01/
>>>>>>>>>>
>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>
>>>>>>>>>> _______________________________________________
>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>
>>>>>>>>> _______________________________________________
>>>>>>>>> Csound-devel mailing list
>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>
>>>>>>>> _________________________________________________________________
>>>>>>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>>>>>>> Do you have a story that started on Hotmail? Tell us now
>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> Csound-devel mailing list
>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>
>>>>>>>
>>>>>>> ------------------------------------------------------------------------------
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Csound-devel mailing list
>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>
>>>>>> _________________________________________________________________
>>>>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>>>>> We want to hear all your funny, exciting and crazy Hotmail
>>>>>> stories.
>>>>>> Tell us now
>>>>>> ------------------------------------------------------------------------------
>>>>>>
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>>
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>> _________________________________________________________________
>>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>>> Do you have a story that started on Hotmail? Tell us now
>>>> ------------------------------------------------------------------------------
>>>>
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>>
>>> ------------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>> _________________________________________________________________
>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>> We want to hear all your funny, exciting and crazy Hotmail stories.
>> Tell us now
>> ------------------------------------------------------------------------------
>>
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
 		 	   		  
_________________________________________________________________
http://clk.atdmt.com/UKM/go/197222280/direct/01/
We want to hear all your funny, exciting and crazy Hotmail stories. Tell us now
------------------------------------------------------------------------------

_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-05-15 14:15
FromOeyvind Brandtsegg
SubjectRe: [Cs-dev] loop with a pause inbetween
As the sound is read from table, indexed by the linseg (or phasor in
Victors example),
you just need to change the range of the index generator.

e.g. change this:
andx            linseg  0, ilength, 1, iskiptime, 1

to:
istartSeconds = 0.5
iendSeconds = 2.5
istart =  istartSeconds / ilength
iend =  iendSeconds / ilength
andx            linseg  istart, ilength, iend, iskiptime, 1

I haven't tested this code, but suppose it should just work.
Oeyvind

2010/5/15 Josh Brown :
>
> This works ok but I need to be able to change the start and end points.
>
> ----------------------------------------
>> From: Victor.Lazzarini@nuim.ie
>> To: csound-devel@lists.sourceforge.net
>> Date: Fri, 14 May 2010 23:50:01 +0100
>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>
>> In that case, maybe this is the answer, a gating/envelope instrument.
>>
>>
>>
>> -odac
>>
>>
>> 0dbfs = 1
>> nchnls=1
>> ksmps =32
>> instr 1
>> kgapsize line 1, p3, 2
>> a1 phasor sr/ftlen(1)
>> asig tab a1, 1, 1
>> aenv table a1*kgapsize,2,1
>> out asig*aenv
>> endin
>>
>>
>> f2 0 1024 7 1 512 1 1 0 512 0
>> f1 0 -44100 1 "flutec3.wav" 0 0 1
>> i1 0 15
>>
>>
>>
>>
>>
>>
>> On 14 May 2010, at 23:13, Josh Brown wrote:
>>
>>>
>>> I could but I'm using a drum loop... It's such a shame there isn't
>>> an opcode for this! It would be great for live sampling.
>>>
>>> Josh
>>>
>>> ----------------------------------------
>>>> From: Victor.Lazzarini@nuim.ie
>>>> To: csound-devel@lists.sourceforge.net
>>>> Date: Fri, 14 May 2010 23:07:55 +0100
>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>
>>>> you can start the loop a little later and keep the end of the loop at
>>>> the end of the table.
>>>>
>>>> Victor
>>>> On 14 May 2010, at 22:56, Josh Brown wrote:
>>>>
>>>>>
>>>>> Sorry, I see what you mean now ... but there is still a problem. Say
>>>>> if I wanted to shorten the clip to 5 seconds. Like so:
>>>>>
>>>>> a1 flooper2 0.5, 1, 0, 5, 1, 1
>>>>>
>>>>> I wouldn't be able to add the silence because the rest of the table
>>>>> wouldn't be empty.
>>>>> ----------------------------------------
>>>>>> From: Victor.Lazzarini@nuim.ie
>>>>>> To: csound-devel@lists.sourceforge.net
>>>>>> Date: Fri, 14 May 2010 22:53:15 +0100
>>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>>
>>>>>> No, you don't need to edit the file. All you need is to make your
>>>>>> table long enough to accommodate your file and
>>>>>> the rest. That is what I did in that example.
>>>>>>
>>>>>> Say your file is 2 secs and you want a 1 sec rest. Make the table
>>>>>> 3*sr points long. And so on.
>>>>>>
>>>>>> Victor
>>>>>>
>>>>>>
>>>>>> On 14 May 2010, at 22:27, Josh Brown wrote:
>>>>>>
>>>>>>>
>>>>>>> Yes, I want something similar to this only with a rest of say, 1
>>>>>>> second, in-between each repeat. Of course I could edit the file
>>>>>>> "flutec3.wav" manually and add the silence myself but I would
>>>>>>> prefer
>>>>>>> to use csound.
>>>>>>>
>>>>>>> ----------------------------------------
>>>>>>>> From: Victor.Lazzarini@nuim.ie
>>>>>>>> To: csound-devel@lists.sourceforge.net
>>>>>>>> Date: Fri, 14 May 2010 22:13:31 +0100
>>>>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>>>>
>>>>>>>> Here's an example that does what you want. Use this file with it
>>>>>>>> http://music.nuim.ie/music/sites/cpaneltest.nuim.ie.music/files/music/flutec3.wav
>>>>>>>>
>>>>>>>> (or any file less than 10 sec long)
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> -odac
>>>>>>>>
>>>>>>>>
>>>>>>>> 0dbfs = 1
>>>>>>>> nchnls=1
>>>>>>>> ksmps =32
>>>>>>>> instr 1
>>>>>>>> a1 flooper2 0.5, 1, 0, 10, 1, 1
>>>>>>>> out a1
>>>>>>>> endin
>>>>>>>>
>>>>>>>>
>>>>>>>> f1 0 -441000 1 "flutec3.wav" 0 0 1
>>>>>>>> i1 0 60
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> On 14 May 2010, at 21:54, Josh Brown wrote:
>>>>>>>>
>>>>>>>>>
>>>>>>>>> I fear the solution to this will be incredibly complex. I'm not
>>>>>>>>> skilled in the art of csound and thus far, all my attempts have
>>>>>>>>> failed. Looking at flooper, lposcil and many of the other loop
>>>>>>>>> based
>>>>>>>>> opcodes - they do not allow for a pause or gap inbetween.
>>>>>>>>> I have tried extending the size of the function table but this
>>>>>>>>> did
>>>>>>>>> not allow me to make my sample smaller, with a gap inbetween. I
>>>>>>>>> tried getting a oscillator in synch with conditionals to
>>>>>>>>> create a
>>>>>>>>> drop in the amplitude but this did not help. Finally, I looked
>>>>>>>>> briefly at looping my sample within the score but couldn't
>>>>>>>>> find an
>>>>>>>>> opcode which lets me change the start and end points, whilst
>>>>>>>>> playing
>>>>>>>>> the sample once.
>>>>>>>>> -------------------------------------------------
>>>>>>>>>> From: rorywalsh@ear.ie
>>>>>>>>>> Date: Fri, 14 May 2010 21:27:02 +0100
>>>>>>>>>> To: csound-devel@lists.sourceforge.net
>>>>>>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>>>>>>
>>>>>>>>>> This should be quite possible with the current opcodes, even
>>>>>>>>>> with
>>>>>>>>>> tab
>>>>>>>>>> and tabw, perhaps if you explain to us how you tried going
>>>>>>>>>> about it
>>>>>>>>>> we
>>>>>>>>>> could help?
>>>>>>>>>>
>>>>>>>>>> On 14 May 2010 21:16, Josh Brown wrote:
>>>>>>>>>>>
>>>>>>>>>>> Please make a opcode which allows me to loop sampled sound
>>>>>>>>>>> from a
>>>>>>>>>>> function table with a pause in-between each cycle. Something
>>>>>>>>>>> like
>>>>>>>>>>> lposcil but with a gap of a specified length which can be
>>>>>>>>>>> changed
>>>>>>>>>>> at performance time.
>>>>>>>>>>>
>>>>>>>>>>> I am having difficulties in achieving this with the current
>>>>>>>>>>> opcodes.
>>>>>>>>>>>
>>>>>>>>>>> Cheers,
>>>>>>>>>>>
>>>>>>>>>>> Josh
>>>>>>>>>>>
>>>>>>>>>>> _________________________________________________________________
>>>>>>>>>>> http://clk.atdmt.com/UKM/go/195013117/direct/01/
>>>>>>>>>>>
>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>
>>>>>>>>>>> _______________________________________________
>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>
>>>>>>>>>> _______________________________________________
>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>
>>>>>>>>> _________________________________________________________________
>>>>>>>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>>>>>>>> Do you have a story that started on Hotmail? Tell us now
>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>
>>>>>>>>> _______________________________________________
>>>>>>>>> Csound-devel mailing list
>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>
>>>>>>>>
>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> Csound-devel mailing list
>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>
>>>>>>> _________________________________________________________________
>>>>>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>>>>>> We want to hear all your funny, exciting and crazy Hotmail
>>>>>>> stories.
>>>>>>> Tell us now
>>>>>>> ------------------------------------------------------------------------------
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Csound-devel mailing list
>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>>
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>
>>>>> _________________________________________________________________
>>>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>>>> Do you have a story that started on Hotmail? Tell us now
>>>>> ------------------------------------------------------------------------------
>>>>>
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>>
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>> _________________________________________________________________
>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>> We want to hear all your funny, exciting and crazy Hotmail stories.
>>> Tell us now
>>> ------------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>
>> ------------------------------------------------------------------------------
>>
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> _________________________________________________________________
> http://clk.atdmt.com/UKM/go/197222280/direct/01/
> We want to hear all your funny, exciting and crazy Hotmail stories. Tell us now
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------

_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-05-15 18:58
FromJosh Brown
SubjectRe: [Cs-dev] loop with a pause inbetween
Thank you, this worked well. Do you know why the speed and pitch is higher than expected?

----------------------------------------
> Date: Sat, 15 May 2010 15:15:44 +0200
> From: obrandts@gmail.com
> To: csound-devel@lists.sourceforge.net
> Subject: Re: [Cs-dev] loop with a pause inbetween
>
> As the sound is read from table, indexed by the linseg (or phasor in
> Victors example),
> you just need to change the range of the index generator.
>
> e.g. change this:
> andx linseg 0, ilength, 1, iskiptime, 1
>
> to:
> istartSeconds = 0.5
> iendSeconds = 2.5
> istart = istartSeconds / ilength
> iend = iendSeconds / ilength
> andx linseg istart, ilength, iend, iskiptime, 1
>
> I haven't tested this code, but suppose it should just work.
> Oeyvind
>
> 2010/5/15 Josh Brown :
>>
>> This works ok but I need to be able to change the start and end points.
>>
>> ----------------------------------------
>>> From: Victor.Lazzarini@nuim.ie
>>> To: csound-devel@lists.sourceforge.net
>>> Date: Fri, 14 May 2010 23:50:01 +0100
>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>
>>> In that case, maybe this is the answer, a gating/envelope instrument.
>>>
>>>
>>>
>>> -odac
>>>
>>>
>>> 0dbfs = 1
>>> nchnls=1
>>> ksmps =32
>>> instr 1
>>> kgapsize line 1, p3, 2
>>> a1 phasor sr/ftlen(1)
>>> asig tab a1, 1, 1
>>> aenv table a1*kgapsize,2,1
>>> out asig*aenv
>>> endin
>>>
>>>
>>> f2 0 1024 7 1 512 1 1 0 512 0
>>> f1 0 -44100 1 "flutec3.wav" 0 0 1
>>> i1 0 15
>>>
>>>
>>>
>>>
>>>
>>>
>>> On 14 May 2010, at 23:13, Josh Brown wrote:
>>>
>>>>
>>>> I could but I'm using a drum loop... It's such a shame there isn't
>>>> an opcode for this! It would be great for live sampling.
>>>>
>>>> Josh
>>>>
>>>> ----------------------------------------
>>>>> From: Victor.Lazzarini@nuim.ie
>>>>> To: csound-devel@lists.sourceforge.net
>>>>> Date: Fri, 14 May 2010 23:07:55 +0100
>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>
>>>>> you can start the loop a little later and keep the end of the loop at
>>>>> the end of the table.
>>>>>
>>>>> Victor
>>>>> On 14 May 2010, at 22:56, Josh Brown wrote:
>>>>>
>>>>>>
>>>>>> Sorry, I see what you mean now ... but there is still a problem. Say
>>>>>> if I wanted to shorten the clip to 5 seconds. Like so:
>>>>>>
>>>>>> a1 flooper2 0.5, 1, 0, 5, 1, 1
>>>>>>
>>>>>> I wouldn't be able to add the silence because the rest of the table
>>>>>> wouldn't be empty.
>>>>>> ----------------------------------------
>>>>>>> From: Victor.Lazzarini@nuim.ie
>>>>>>> To: csound-devel@lists.sourceforge.net
>>>>>>> Date: Fri, 14 May 2010 22:53:15 +0100
>>>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>>>
>>>>>>> No, you don't need to edit the file. All you need is to make your
>>>>>>> table long enough to accommodate your file and
>>>>>>> the rest. That is what I did in that example.
>>>>>>>
>>>>>>> Say your file is 2 secs and you want a 1 sec rest. Make the table
>>>>>>> 3*sr points long. And so on.
>>>>>>>
>>>>>>> Victor
>>>>>>>
>>>>>>>
>>>>>>> On 14 May 2010, at 22:27, Josh Brown wrote:
>>>>>>>
>>>>>>>>
>>>>>>>> Yes, I want something similar to this only with a rest of say, 1
>>>>>>>> second, in-between each repeat. Of course I could edit the file
>>>>>>>> "flutec3.wav" manually and add the silence myself but I would
>>>>>>>> prefer
>>>>>>>> to use csound.
>>>>>>>>
>>>>>>>> ----------------------------------------
>>>>>>>>> From: Victor.Lazzarini@nuim.ie
>>>>>>>>> To: csound-devel@lists.sourceforge.net
>>>>>>>>> Date: Fri, 14 May 2010 22:13:31 +0100
>>>>>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>>>>>
>>>>>>>>> Here's an example that does what you want. Use this file with it
>>>>>>>>> http://music.nuim.ie/music/sites/cpaneltest.nuim.ie.music/files/music/flutec3.wav
>>>>>>>>>
>>>>>>>>> (or any file less than 10 sec long)
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> -odac
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> 0dbfs = 1
>>>>>>>>> nchnls=1
>>>>>>>>> ksmps =32
>>>>>>>>> instr 1
>>>>>>>>> a1 flooper2 0.5, 1, 0, 10, 1, 1
>>>>>>>>> out a1
>>>>>>>>> endin
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> f1 0 -441000 1 "flutec3.wav" 0 0 1
>>>>>>>>> i1 0 60
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On 14 May 2010, at 21:54, Josh Brown wrote:
>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> I fear the solution to this will be incredibly complex. I'm not
>>>>>>>>>> skilled in the art of csound and thus far, all my attempts have
>>>>>>>>>> failed. Looking at flooper, lposcil and many of the other loop
>>>>>>>>>> based
>>>>>>>>>> opcodes - they do not allow for a pause or gap inbetween.
>>>>>>>>>> I have tried extending the size of the function table but this
>>>>>>>>>> did
>>>>>>>>>> not allow me to make my sample smaller, with a gap inbetween. I
>>>>>>>>>> tried getting a oscillator in synch with conditionals to
>>>>>>>>>> create a
>>>>>>>>>> drop in the amplitude but this did not help. Finally, I looked
>>>>>>>>>> briefly at looping my sample within the score but couldn't
>>>>>>>>>> find an
>>>>>>>>>> opcode which lets me change the start and end points, whilst
>>>>>>>>>> playing
>>>>>>>>>> the sample once.
>>>>>>>>>> -------------------------------------------------
>>>>>>>>>>> From: rorywalsh@ear.ie
>>>>>>>>>>> Date: Fri, 14 May 2010 21:27:02 +0100
>>>>>>>>>>> To: csound-devel@lists.sourceforge.net
>>>>>>>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>>>>>>>
>>>>>>>>>>> This should be quite possible with the current opcodes, even
>>>>>>>>>>> with
>>>>>>>>>>> tab
>>>>>>>>>>> and tabw, perhaps if you explain to us how you tried going
>>>>>>>>>>> about it
>>>>>>>>>>> we
>>>>>>>>>>> could help?
>>>>>>>>>>>
>>>>>>>>>>> On 14 May 2010 21:16, Josh Brown wrote:
>>>>>>>>>>>>
>>>>>>>>>>>> Please make a opcode which allows me to loop sampled sound
>>>>>>>>>>>> from a
>>>>>>>>>>>> function table with a pause in-between each cycle. Something
>>>>>>>>>>>> like
>>>>>>>>>>>> lposcil but with a gap of a specified length which can be
>>>>>>>>>>>> changed
>>>>>>>>>>>> at performance time.
>>>>>>>>>>>>
>>>>>>>>>>>> I am having difficulties in achieving this with the current
>>>>>>>>>>>> opcodes.
>>>>>>>>>>>>
>>>>>>>>>>>> Cheers,
>>>>>>>>>>>>
>>>>>>>>>>>> Josh
>>>>>>>>>>>>
>>>>>>>>>>>> _________________________________________________________________
>>>>>>>>>>>> http://clk.atdmt.com/UKM/go/195013117/direct/01/
>>>>>>>>>>>>
>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>>
>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>
>>>>>>>>>>> _______________________________________________
>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>
>>>>>>>>>> _________________________________________________________________
>>>>>>>>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>>>>>>>>> Do you have a story that started on Hotmail? Tell us now
>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>
>>>>>>>>>> _______________________________________________
>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>
>>>>>>>>> _______________________________________________
>>>>>>>>> Csound-devel mailing list
>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>
>>>>>>>> _________________________________________________________________
>>>>>>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>>>>>>> We want to hear all your funny, exciting and crazy Hotmail
>>>>>>>> stories.
>>>>>>>> Tell us now
>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> Csound-devel mailing list
>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>
>>>>>>>
>>>>>>> ------------------------------------------------------------------------------
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Csound-devel mailing list
>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>
>>>>>> _________________________________________________________________
>>>>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>>>>> Do you have a story that started on Hotmail? Tell us now
>>>>>> ------------------------------------------------------------------------------
>>>>>>
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>>
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>> _________________________________________________________________
>>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>>> We want to hear all your funny, exciting and crazy Hotmail stories.
>>>> Tell us now
>>>> ------------------------------------------------------------------------------
>>>>
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>>
>>> ------------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>> _________________________________________________________________
>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>> We want to hear all your funny, exciting and crazy Hotmail stories. Tell us now
>> ------------------------------------------------------------------------------
>>
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
 		 	   		  
_________________________________________________________________
http://clk.atdmt.com/UKM/go/195013117/direct/01/

------------------------------------------------------------------------------

_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-05-16 13:34
FromOeyvind Brandtsegg
SubjectRe: [Cs-dev] loop with a pause inbetween
ah, you probably need to adjust ilength in the andx line to reflect
the actual duration from istartSeconds iendSeconds, instead of
reflecting the duration of the whole sample.
Oeyvind

2010/5/15 Josh Brown :
>
> Thank you, this worked well. Do you know why the speed and pitch is higher than expected?
>
> ----------------------------------------
>> Date: Sat, 15 May 2010 15:15:44 +0200
>> From: obrandts@gmail.com
>> To: csound-devel@lists.sourceforge.net
>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>
>> As the sound is read from table, indexed by the linseg (or phasor in
>> Victors example),
>> you just need to change the range of the index generator.
>>
>> e.g. change this:
>> andx linseg 0, ilength, 1, iskiptime, 1
>>
>> to:
>> istartSeconds = 0.5
>> iendSeconds = 2.5
>> istart = istartSeconds / ilength
>> iend = iendSeconds / ilength
>> andx linseg istart, ilength, iend, iskiptime, 1
>>
>> I haven't tested this code, but suppose it should just work.
>> Oeyvind
>>
>> 2010/5/15 Josh Brown :
>>>
>>> This works ok but I need to be able to change the start and end points.
>>>
>>> ----------------------------------------
>>>> From: Victor.Lazzarini@nuim.ie
>>>> To: csound-devel@lists.sourceforge.net
>>>> Date: Fri, 14 May 2010 23:50:01 +0100
>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>
>>>> In that case, maybe this is the answer, a gating/envelope instrument.
>>>>
>>>>
>>>>
>>>> -odac
>>>>
>>>>
>>>> 0dbfs = 1
>>>> nchnls=1
>>>> ksmps =32
>>>> instr 1
>>>> kgapsize line 1, p3, 2
>>>> a1 phasor sr/ftlen(1)
>>>> asig tab a1, 1, 1
>>>> aenv table a1*kgapsize,2,1
>>>> out asig*aenv
>>>> endin
>>>>
>>>>
>>>> f2 0 1024 7 1 512 1 1 0 512 0
>>>> f1 0 -44100 1 "flutec3.wav" 0 0 1
>>>> i1 0 15
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> On 14 May 2010, at 23:13, Josh Brown wrote:
>>>>
>>>>>
>>>>> I could but I'm using a drum loop... It's such a shame there isn't
>>>>> an opcode for this! It would be great for live sampling.
>>>>>
>>>>> Josh
>>>>>
>>>>> ----------------------------------------
>>>>>> From: Victor.Lazzarini@nuim.ie
>>>>>> To: csound-devel@lists.sourceforge.net
>>>>>> Date: Fri, 14 May 2010 23:07:55 +0100
>>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>>
>>>>>> you can start the loop a little later and keep the end of the loop at
>>>>>> the end of the table.
>>>>>>
>>>>>> Victor
>>>>>> On 14 May 2010, at 22:56, Josh Brown wrote:
>>>>>>
>>>>>>>
>>>>>>> Sorry, I see what you mean now ... but there is still a problem. Say
>>>>>>> if I wanted to shorten the clip to 5 seconds. Like so:
>>>>>>>
>>>>>>> a1 flooper2 0.5, 1, 0, 5, 1, 1
>>>>>>>
>>>>>>> I wouldn't be able to add the silence because the rest of the table
>>>>>>> wouldn't be empty.
>>>>>>> ----------------------------------------
>>>>>>>> From: Victor.Lazzarini@nuim.ie
>>>>>>>> To: csound-devel@lists.sourceforge.net
>>>>>>>> Date: Fri, 14 May 2010 22:53:15 +0100
>>>>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>>>>
>>>>>>>> No, you don't need to edit the file. All you need is to make your
>>>>>>>> table long enough to accommodate your file and
>>>>>>>> the rest. That is what I did in that example.
>>>>>>>>
>>>>>>>> Say your file is 2 secs and you want a 1 sec rest. Make the table
>>>>>>>> 3*sr points long. And so on.
>>>>>>>>
>>>>>>>> Victor
>>>>>>>>
>>>>>>>>
>>>>>>>> On 14 May 2010, at 22:27, Josh Brown wrote:
>>>>>>>>
>>>>>>>>>
>>>>>>>>> Yes, I want something similar to this only with a rest of say, 1
>>>>>>>>> second, in-between each repeat. Of course I could edit the file
>>>>>>>>> "flutec3.wav" manually and add the silence myself but I would
>>>>>>>>> prefer
>>>>>>>>> to use csound.
>>>>>>>>>
>>>>>>>>> ----------------------------------------
>>>>>>>>>> From: Victor.Lazzarini@nuim.ie
>>>>>>>>>> To: csound-devel@lists.sourceforge.net
>>>>>>>>>> Date: Fri, 14 May 2010 22:13:31 +0100
>>>>>>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>>>>>>
>>>>>>>>>> Here's an example that does what you want. Use this file with it
>>>>>>>>>> http://music.nuim.ie/music/sites/cpaneltest.nuim.ie.music/files/music/flutec3.wav
>>>>>>>>>>
>>>>>>>>>> (or any file less than 10 sec long)
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> -odac
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> 0dbfs = 1
>>>>>>>>>> nchnls=1
>>>>>>>>>> ksmps =32
>>>>>>>>>> instr 1
>>>>>>>>>> a1 flooper2 0.5, 1, 0, 10, 1, 1
>>>>>>>>>> out a1
>>>>>>>>>> endin
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> f1 0 -441000 1 "flutec3.wav" 0 0 1
>>>>>>>>>> i1 0 60
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On 14 May 2010, at 21:54, Josh Brown wrote:
>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> I fear the solution to this will be incredibly complex. I'm not
>>>>>>>>>>> skilled in the art of csound and thus far, all my attempts have
>>>>>>>>>>> failed. Looking at flooper, lposcil and many of the other loop
>>>>>>>>>>> based
>>>>>>>>>>> opcodes - they do not allow for a pause or gap inbetween.
>>>>>>>>>>> I have tried extending the size of the function table but this
>>>>>>>>>>> did
>>>>>>>>>>> not allow me to make my sample smaller, with a gap inbetween. I
>>>>>>>>>>> tried getting a oscillator in synch with conditionals to
>>>>>>>>>>> create a
>>>>>>>>>>> drop in the amplitude but this did not help. Finally, I looked
>>>>>>>>>>> briefly at looping my sample within the score but couldn't
>>>>>>>>>>> find an
>>>>>>>>>>> opcode which lets me change the start and end points, whilst
>>>>>>>>>>> playing
>>>>>>>>>>> the sample once.
>>>>>>>>>>> -------------------------------------------------
>>>>>>>>>>>> From: rorywalsh@ear.ie
>>>>>>>>>>>> Date: Fri, 14 May 2010 21:27:02 +0100
>>>>>>>>>>>> To: csound-devel@lists.sourceforge.net
>>>>>>>>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>>>>>>>>
>>>>>>>>>>>> This should be quite possible with the current opcodes, even
>>>>>>>>>>>> with
>>>>>>>>>>>> tab
>>>>>>>>>>>> and tabw, perhaps if you explain to us how you tried going
>>>>>>>>>>>> about it
>>>>>>>>>>>> we
>>>>>>>>>>>> could help?
>>>>>>>>>>>>
>>>>>>>>>>>> On 14 May 2010 21:16, Josh Brown wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>> Please make a opcode which allows me to loop sampled sound
>>>>>>>>>>>>> from a
>>>>>>>>>>>>> function table with a pause in-between each cycle. Something
>>>>>>>>>>>>> like
>>>>>>>>>>>>> lposcil but with a gap of a specified length which can be
>>>>>>>>>>>>> changed
>>>>>>>>>>>>> at performance time.
>>>>>>>>>>>>>
>>>>>>>>>>>>> I am having difficulties in achieving this with the current
>>>>>>>>>>>>> opcodes.
>>>>>>>>>>>>>
>>>>>>>>>>>>> Cheers,
>>>>>>>>>>>>>
>>>>>>>>>>>>> Josh
>>>>>>>>>>>>>
>>>>>>>>>>>>> _________________________________________________________________
>>>>>>>>>>>>> http://clk.atdmt.com/UKM/go/195013117/direct/01/
>>>>>>>>>>>>>
>>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>>>
>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>>
>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>
>>>>>>>>>>> _________________________________________________________________
>>>>>>>>>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>>>>>>>>>> Do you have a story that started on Hotmail? Tell us now
>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>
>>>>>>>>>>> _______________________________________________
>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>
>>>>>>>>>> _______________________________________________
>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>
>>>>>>>>> _________________________________________________________________
>>>>>>>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>>>>>>>> We want to hear all your funny, exciting and crazy Hotmail
>>>>>>>>> stories.
>>>>>>>>> Tell us now
>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>
>>>>>>>>> _______________________________________________
>>>>>>>>> Csound-devel mailing list
>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>
>>>>>>>>
>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> Csound-devel mailing list
>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>
>>>>>>> _________________________________________________________________
>>>>>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>>>>>> Do you have a story that started on Hotmail? Tell us now
>>>>>>> ------------------------------------------------------------------------------
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Csound-devel mailing list
>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>>
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>
>>>>> _________________________________________________________________
>>>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>>>> We want to hear all your funny, exciting and crazy Hotmail stories.
>>>>> Tell us now
>>>>> ------------------------------------------------------------------------------
>>>>>
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>>
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>> _________________________________________________________________
>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>> We want to hear all your funny, exciting and crazy Hotmail stories. Tell us now
>>> ------------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>
>> ------------------------------------------------------------------------------
>>
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> _________________________________________________________________
> http://clk.atdmt.com/UKM/go/195013117/direct/01/
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------

_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-05-16 17:37
FromJosh Brown
SubjectRe: [Cs-dev] loop with a pause inbetween
I tried this:

ilen = iend - istart
andx            linseg  istart, ilen, iend, iskiptime, 1

... but it still played fast with a higher pitch. Still no luck with this,

Josh 

----------------------------------------
> Date: Sun, 16 May 2010 14:34:45 +0200
> From: obrandts@gmail.com
> To: csound-devel@lists.sourceforge.net
> Subject: Re: [Cs-dev] loop with a pause inbetween
>
> ah, you probably need to adjust ilength in the andx line to reflect
> the actual duration from istartSeconds iendSeconds, instead of
> reflecting the duration of the whole sample.
> Oeyvind
>
> 2010/5/15 Josh Brown :
>>
>> Thank you, this worked well. Do you know why the speed and pitch is higher than expected?
>>
>> ----------------------------------------
>>> Date: Sat, 15 May 2010 15:15:44 +0200
>>> From: obrandts@gmail.com
>>> To: csound-devel@lists.sourceforge.net
>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>
>>> As the sound is read from table, indexed by the linseg (or phasor in
>>> Victors example),
>>> you just need to change the range of the index generator.
>>>
>>> e.g. change this:
>>> andx linseg 0, ilength, 1, iskiptime, 1
>>>
>>> to:
>>> istartSeconds = 0.5
>>> iendSeconds = 2.5
>>> istart = istartSeconds / ilength
>>> iend = iendSeconds / ilength
>>> andx linseg istart, ilength, iend, iskiptime, 1
>>>
>>> I haven't tested this code, but suppose it should just work.
>>> Oeyvind
>>>
>>> 2010/5/15 Josh Brown :
>>>>
>>>> This works ok but I need to be able to change the start and end points.
>>>>
>>>> ----------------------------------------
>>>>> From: Victor.Lazzarini@nuim.ie
>>>>> To: csound-devel@lists.sourceforge.net
>>>>> Date: Fri, 14 May 2010 23:50:01 +0100
>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>
>>>>> In that case, maybe this is the answer, a gating/envelope instrument.
>>>>>
>>>>>
>>>>>
>>>>> -odac
>>>>>
>>>>>
>>>>> 0dbfs = 1
>>>>> nchnls=1
>>>>> ksmps =32
>>>>> instr 1
>>>>> kgapsize line 1, p3, 2
>>>>> a1 phasor sr/ftlen(1)
>>>>> asig tab a1, 1, 1
>>>>> aenv table a1*kgapsize,2,1
>>>>> out asig*aenv
>>>>> endin
>>>>>
>>>>>
>>>>> f2 0 1024 7 1 512 1 1 0 512 0
>>>>> f1 0 -44100 1 "flutec3.wav" 0 0 1
>>>>> i1 0 15
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On 14 May 2010, at 23:13, Josh Brown wrote:
>>>>>
>>>>>>
>>>>>> I could but I'm using a drum loop... It's such a shame there isn't
>>>>>> an opcode for this! It would be great for live sampling.
>>>>>>
>>>>>> Josh
>>>>>>
>>>>>> ----------------------------------------
>>>>>>> From: Victor.Lazzarini@nuim.ie
>>>>>>> To: csound-devel@lists.sourceforge.net
>>>>>>> Date: Fri, 14 May 2010 23:07:55 +0100
>>>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>>>
>>>>>>> you can start the loop a little later and keep the end of the loop at
>>>>>>> the end of the table.
>>>>>>>
>>>>>>> Victor
>>>>>>> On 14 May 2010, at 22:56, Josh Brown wrote:
>>>>>>>
>>>>>>>>
>>>>>>>> Sorry, I see what you mean now ... but there is still a problem. Say
>>>>>>>> if I wanted to shorten the clip to 5 seconds. Like so:
>>>>>>>>
>>>>>>>> a1 flooper2 0.5, 1, 0, 5, 1, 1
>>>>>>>>
>>>>>>>> I wouldn't be able to add the silence because the rest of the table
>>>>>>>> wouldn't be empty.
>>>>>>>> ----------------------------------------
>>>>>>>>> From: Victor.Lazzarini@nuim.ie
>>>>>>>>> To: csound-devel@lists.sourceforge.net
>>>>>>>>> Date: Fri, 14 May 2010 22:53:15 +0100
>>>>>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>>>>>
>>>>>>>>> No, you don't need to edit the file. All you need is to make your
>>>>>>>>> table long enough to accommodate your file and
>>>>>>>>> the rest. That is what I did in that example.
>>>>>>>>>
>>>>>>>>> Say your file is 2 secs and you want a 1 sec rest. Make the table
>>>>>>>>> 3*sr points long. And so on.
>>>>>>>>>
>>>>>>>>> Victor
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On 14 May 2010, at 22:27, Josh Brown wrote:
>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Yes, I want something similar to this only with a rest of say, 1
>>>>>>>>>> second, in-between each repeat. Of course I could edit the file
>>>>>>>>>> "flutec3.wav" manually and add the silence myself but I would
>>>>>>>>>> prefer
>>>>>>>>>> to use csound.
>>>>>>>>>>
>>>>>>>>>> ----------------------------------------
>>>>>>>>>>> From: Victor.Lazzarini@nuim.ie
>>>>>>>>>>> To: csound-devel@lists.sourceforge.net
>>>>>>>>>>> Date: Fri, 14 May 2010 22:13:31 +0100
>>>>>>>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>>>>>>>
>>>>>>>>>>> Here's an example that does what you want. Use this file with it
>>>>>>>>>>> http://music.nuim.ie/music/sites/cpaneltest.nuim.ie.music/files/music/flutec3.wav
>>>>>>>>>>>
>>>>>>>>>>> (or any file less than 10 sec long)
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> -odac
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> 0dbfs = 1
>>>>>>>>>>> nchnls=1
>>>>>>>>>>> ksmps =32
>>>>>>>>>>> instr 1
>>>>>>>>>>> a1 flooper2 0.5, 1, 0, 10, 1, 1
>>>>>>>>>>> out a1
>>>>>>>>>>> endin
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> f1 0 -441000 1 "flutec3.wav" 0 0 1
>>>>>>>>>>> i1 0 60
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> On 14 May 2010, at 21:54, Josh Brown wrote:
>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> I fear the solution to this will be incredibly complex. I'm not
>>>>>>>>>>>> skilled in the art of csound and thus far, all my attempts have
>>>>>>>>>>>> failed. Looking at flooper, lposcil and many of the other loop
>>>>>>>>>>>> based
>>>>>>>>>>>> opcodes - they do not allow for a pause or gap inbetween.
>>>>>>>>>>>> I have tried extending the size of the function table but this
>>>>>>>>>>>> did
>>>>>>>>>>>> not allow me to make my sample smaller, with a gap inbetween. I
>>>>>>>>>>>> tried getting a oscillator in synch with conditionals to
>>>>>>>>>>>> create a
>>>>>>>>>>>> drop in the amplitude but this did not help. Finally, I looked
>>>>>>>>>>>> briefly at looping my sample within the score but couldn't
>>>>>>>>>>>> find an
>>>>>>>>>>>> opcode which lets me change the start and end points, whilst
>>>>>>>>>>>> playing
>>>>>>>>>>>> the sample once.
>>>>>>>>>>>> -------------------------------------------------
>>>>>>>>>>>>> From: rorywalsh@ear.ie
>>>>>>>>>>>>> Date: Fri, 14 May 2010 21:27:02 +0100
>>>>>>>>>>>>> To: csound-devel@lists.sourceforge.net
>>>>>>>>>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>>>>>>>>>
>>>>>>>>>>>>> This should be quite possible with the current opcodes, even
>>>>>>>>>>>>> with
>>>>>>>>>>>>> tab
>>>>>>>>>>>>> and tabw, perhaps if you explain to us how you tried going
>>>>>>>>>>>>> about it
>>>>>>>>>>>>> we
>>>>>>>>>>>>> could help?
>>>>>>>>>>>>>
>>>>>>>>>>>>> On 14 May 2010 21:16, Josh Brown wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Please make a opcode which allows me to loop sampled sound
>>>>>>>>>>>>>> from a
>>>>>>>>>>>>>> function table with a pause in-between each cycle. Something
>>>>>>>>>>>>>> like
>>>>>>>>>>>>>> lposcil but with a gap of a specified length which can be
>>>>>>>>>>>>>> changed
>>>>>>>>>>>>>> at performance time.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> I am having difficulties in achieving this with the current
>>>>>>>>>>>>>> opcodes.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Cheers,
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Josh
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> _________________________________________________________________
>>>>>>>>>>>>>> http://clk.atdmt.com/UKM/go/195013117/direct/01/
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>>>
>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>>
>>>>>>>>>>>> _________________________________________________________________
>>>>>>>>>>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>>>>>>>>>>> Do you have a story that started on Hotmail? Tell us now
>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>>
>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>
>>>>>>>>>>> _______________________________________________
>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>
>>>>>>>>>> _________________________________________________________________
>>>>>>>>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>>>>>>>>> We want to hear all your funny, exciting and crazy Hotmail
>>>>>>>>>> stories.
>>>>>>>>>> Tell us now
>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>
>>>>>>>>>> _______________________________________________
>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>
>>>>>>>>> _______________________________________________
>>>>>>>>> Csound-devel mailing list
>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>
>>>>>>>> _________________________________________________________________
>>>>>>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>>>>>>> Do you have a story that started on Hotmail? Tell us now
>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> Csound-devel mailing list
>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>
>>>>>>>
>>>>>>> ------------------------------------------------------------------------------
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Csound-devel mailing list
>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>
>>>>>> _________________________________________________________________
>>>>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>>>>> We want to hear all your funny, exciting and crazy Hotmail stories.
>>>>>> Tell us now
>>>>>> ------------------------------------------------------------------------------
>>>>>>
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>>
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>> _________________________________________________________________
>>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>>> We want to hear all your funny, exciting and crazy Hotmail stories. Tell us now
>>>> ------------------------------------------------------------------------------
>>>>
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>
>>> ------------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>> _________________________________________________________________
>> http://clk.atdmt.com/UKM/go/195013117/direct/01/
>>
>> ------------------------------------------------------------------------------
>>
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
 		 	   		  
_________________________________________________________________
http://clk.atdmt.com/UKM/go/197222280/direct/01/
Do you have a story that started on Hotmail? Tell us now
------------------------------------------------------------------------------

_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-05-16 20:36
FromOeyvind Brandtsegg
SubjectRe: [Cs-dev] loop with a pause inbetween
You could zip you csd with the soundfile and upload it somewhere so we
can test it,
or (just a shot in the dark) try ilen*0.5

also remember to put iend as the last argument to linseg (not 1)

andx            linseg  istart, ilen*0.5, iend, iskiptime, iend

Oeyvind

2010/5/16 Josh Brown :
>
> I tried this:
>
> ilen = iend - istart
> andx            linseg  istart, ilen, iend, iskiptime, 1
>
> ... but it still played fast with a higher pitch. Still no luck with this,
>
> Josh
>
> ----------------------------------------
>> Date: Sun, 16 May 2010 14:34:45 +0200
>> From: obrandts@gmail.com
>> To: csound-devel@lists.sourceforge.net
>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>
>> ah, you probably need to adjust ilength in the andx line to reflect
>> the actual duration from istartSeconds iendSeconds, instead of
>> reflecting the duration of the whole sample.
>> Oeyvind
>>
>> 2010/5/15 Josh Brown :
>>>
>>> Thank you, this worked well. Do you know why the speed and pitch is higher than expected?
>>>
>>> ----------------------------------------
>>>> Date: Sat, 15 May 2010 15:15:44 +0200
>>>> From: obrandts@gmail.com
>>>> To: csound-devel@lists.sourceforge.net
>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>
>>>> As the sound is read from table, indexed by the linseg (or phasor in
>>>> Victors example),
>>>> you just need to change the range of the index generator.
>>>>
>>>> e.g. change this:
>>>> andx linseg 0, ilength, 1, iskiptime, 1
>>>>
>>>> to:
>>>> istartSeconds = 0.5
>>>> iendSeconds = 2.5
>>>> istart = istartSeconds / ilength
>>>> iend = iendSeconds / ilength
>>>> andx linseg istart, ilength, iend, iskiptime, 1
>>>>
>>>> I haven't tested this code, but suppose it should just work.
>>>> Oeyvind
>>>>
>>>> 2010/5/15 Josh Brown :
>>>>>
>>>>> This works ok but I need to be able to change the start and end points.
>>>>>
>>>>> ----------------------------------------
>>>>>> From: Victor.Lazzarini@nuim.ie
>>>>>> To: csound-devel@lists.sourceforge.net
>>>>>> Date: Fri, 14 May 2010 23:50:01 +0100
>>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>>
>>>>>> In that case, maybe this is the answer, a gating/envelope instrument.
>>>>>>
>>>>>>
>>>>>>
>>>>>> -odac
>>>>>>
>>>>>>
>>>>>> 0dbfs = 1
>>>>>> nchnls=1
>>>>>> ksmps =32
>>>>>> instr 1
>>>>>> kgapsize line 1, p3, 2
>>>>>> a1 phasor sr/ftlen(1)
>>>>>> asig tab a1, 1, 1
>>>>>> aenv table a1*kgapsize,2,1
>>>>>> out asig*aenv
>>>>>> endin
>>>>>>
>>>>>>
>>>>>> f2 0 1024 7 1 512 1 1 0 512 0
>>>>>> f1 0 -44100 1 "flutec3.wav" 0 0 1
>>>>>> i1 0 15
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> On 14 May 2010, at 23:13, Josh Brown wrote:
>>>>>>
>>>>>>>
>>>>>>> I could but I'm using a drum loop... It's such a shame there isn't
>>>>>>> an opcode for this! It would be great for live sampling.
>>>>>>>
>>>>>>> Josh
>>>>>>>
>>>>>>> ----------------------------------------
>>>>>>>> From: Victor.Lazzarini@nuim.ie
>>>>>>>> To: csound-devel@lists.sourceforge.net
>>>>>>>> Date: Fri, 14 May 2010 23:07:55 +0100
>>>>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>>>>
>>>>>>>> you can start the loop a little later and keep the end of the loop at
>>>>>>>> the end of the table.
>>>>>>>>
>>>>>>>> Victor
>>>>>>>> On 14 May 2010, at 22:56, Josh Brown wrote:
>>>>>>>>
>>>>>>>>>
>>>>>>>>> Sorry, I see what you mean now ... but there is still a problem. Say
>>>>>>>>> if I wanted to shorten the clip to 5 seconds. Like so:
>>>>>>>>>
>>>>>>>>> a1 flooper2 0.5, 1, 0, 5, 1, 1
>>>>>>>>>
>>>>>>>>> I wouldn't be able to add the silence because the rest of the table
>>>>>>>>> wouldn't be empty.
>>>>>>>>> ----------------------------------------
>>>>>>>>>> From: Victor.Lazzarini@nuim.ie
>>>>>>>>>> To: csound-devel@lists.sourceforge.net
>>>>>>>>>> Date: Fri, 14 May 2010 22:53:15 +0100
>>>>>>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>>>>>>
>>>>>>>>>> No, you don't need to edit the file. All you need is to make your
>>>>>>>>>> table long enough to accommodate your file and
>>>>>>>>>> the rest. That is what I did in that example.
>>>>>>>>>>
>>>>>>>>>> Say your file is 2 secs and you want a 1 sec rest. Make the table
>>>>>>>>>> 3*sr points long. And so on.
>>>>>>>>>>
>>>>>>>>>> Victor
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On 14 May 2010, at 22:27, Josh Brown wrote:
>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> Yes, I want something similar to this only with a rest of say, 1
>>>>>>>>>>> second, in-between each repeat. Of course I could edit the file
>>>>>>>>>>> "flutec3.wav" manually and add the silence myself but I would
>>>>>>>>>>> prefer
>>>>>>>>>>> to use csound.
>>>>>>>>>>>
>>>>>>>>>>> ----------------------------------------
>>>>>>>>>>>> From: Victor.Lazzarini@nuim.ie
>>>>>>>>>>>> To: csound-devel@lists.sourceforge.net
>>>>>>>>>>>> Date: Fri, 14 May 2010 22:13:31 +0100
>>>>>>>>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>>>>>>>>
>>>>>>>>>>>> Here's an example that does what you want. Use this file with it
>>>>>>>>>>>> http://music.nuim.ie/music/sites/cpaneltest.nuim.ie.music/files/music/flutec3.wav
>>>>>>>>>>>>
>>>>>>>>>>>> (or any file less than 10 sec long)
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> -odac
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> 0dbfs = 1
>>>>>>>>>>>> nchnls=1
>>>>>>>>>>>> ksmps =32
>>>>>>>>>>>> instr 1
>>>>>>>>>>>> a1 flooper2 0.5, 1, 0, 10, 1, 1
>>>>>>>>>>>> out a1
>>>>>>>>>>>> endin
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> f1 0 -441000 1 "flutec3.wav" 0 0 1
>>>>>>>>>>>> i1 0 60
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> On 14 May 2010, at 21:54, Josh Brown wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> I fear the solution to this will be incredibly complex. I'm not
>>>>>>>>>>>>> skilled in the art of csound and thus far, all my attempts have
>>>>>>>>>>>>> failed. Looking at flooper, lposcil and many of the other loop
>>>>>>>>>>>>> based
>>>>>>>>>>>>> opcodes - they do not allow for a pause or gap inbetween.
>>>>>>>>>>>>> I have tried extending the size of the function table but this
>>>>>>>>>>>>> did
>>>>>>>>>>>>> not allow me to make my sample smaller, with a gap inbetween. I
>>>>>>>>>>>>> tried getting a oscillator in synch with conditionals to
>>>>>>>>>>>>> create a
>>>>>>>>>>>>> drop in the amplitude but this did not help. Finally, I looked
>>>>>>>>>>>>> briefly at looping my sample within the score but couldn't
>>>>>>>>>>>>> find an
>>>>>>>>>>>>> opcode which lets me change the start and end points, whilst
>>>>>>>>>>>>> playing
>>>>>>>>>>>>> the sample once.
>>>>>>>>>>>>> -------------------------------------------------
>>>>>>>>>>>>>> From: rorywalsh@ear.ie
>>>>>>>>>>>>>> Date: Fri, 14 May 2010 21:27:02 +0100
>>>>>>>>>>>>>> To: csound-devel@lists.sourceforge.net
>>>>>>>>>>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> This should be quite possible with the current opcodes, even
>>>>>>>>>>>>>> with
>>>>>>>>>>>>>> tab
>>>>>>>>>>>>>> and tabw, perhaps if you explain to us how you tried going
>>>>>>>>>>>>>> about it
>>>>>>>>>>>>>> we
>>>>>>>>>>>>>> could help?
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On 14 May 2010 21:16, Josh Brown wrote:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Please make a opcode which allows me to loop sampled sound
>>>>>>>>>>>>>>> from a
>>>>>>>>>>>>>>> function table with a pause in-between each cycle. Something
>>>>>>>>>>>>>>> like
>>>>>>>>>>>>>>> lposcil but with a gap of a specified length which can be
>>>>>>>>>>>>>>> changed
>>>>>>>>>>>>>>> at performance time.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> I am having difficulties in achieving this with the current
>>>>>>>>>>>>>>> opcodes.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Cheers,
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Josh
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> _________________________________________________________________
>>>>>>>>>>>>>>> http://clk.atdmt.com/UKM/go/195013117/direct/01/
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>>>
>>>>>>>>>>>>> _________________________________________________________________
>>>>>>>>>>>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>>>>>>>>>>>> Do you have a story that started on Hotmail? Tell us now
>>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>>>
>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>>
>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>
>>>>>>>>>>> _________________________________________________________________
>>>>>>>>>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>>>>>>>>>> We want to hear all your funny, exciting and crazy Hotmail
>>>>>>>>>>> stories.
>>>>>>>>>>> Tell us now
>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>
>>>>>>>>>>> _______________________________________________
>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>
>>>>>>>>>> _______________________________________________
>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>
>>>>>>>>> _________________________________________________________________
>>>>>>>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>>>>>>>> Do you have a story that started on Hotmail? Tell us now
>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>
>>>>>>>>> _______________________________________________
>>>>>>>>> Csound-devel mailing list
>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>
>>>>>>>>
>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> Csound-devel mailing list
>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>
>>>>>>> _________________________________________________________________
>>>>>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>>>>>> We want to hear all your funny, exciting and crazy Hotmail stories.
>>>>>>> Tell us now
>>>>>>> ------------------------------------------------------------------------------
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Csound-devel mailing list
>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>>
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>
>>>>> _________________________________________________________________
>>>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>>>> We want to hear all your funny, exciting and crazy Hotmail stories. Tell us now
>>>>> ------------------------------------------------------------------------------
>>>>>
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>>
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>> _________________________________________________________________
>>> http://clk.atdmt.com/UKM/go/195013117/direct/01/
>>>
>>> ------------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>
>> ------------------------------------------------------------------------------
>>
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> _________________________________________________________________
> http://clk.atdmt.com/UKM/go/197222280/direct/01/
> Do you have a story that started on Hotmail? Tell us now
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------

_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-05-16 21:01
FromJosh Brown
SubjectRe: [Cs-dev] loop with a pause inbetween
It's all code you have written but I will post a link anyway: http://www.joshyyy.com/loopwithskip.html

----------------------------------------
> Date: Sun, 16 May 2010 21:36:11 +0200
> From: obrandts@gmail.com
> To: csound-devel@lists.sourceforge.net
> Subject: Re: [Cs-dev] loop with a pause inbetween
>
> You could zip you csd with the soundfile and upload it somewhere so we
> can test it,
> or (just a shot in the dark) try ilen*0.5
>
> also remember to put iend as the last argument to linseg (not 1)
>
> andx linseg istart, ilen*0.5, iend, iskiptime, iend
>
> Oeyvind
>
> 2010/5/16 Josh Brown :
>>
>> I tried this:
>>
>> ilen = iend - istart
>> andx            linseg  istart, ilen, iend, iskiptime, 1
>>
>> ... but it still played fast with a higher pitch. Still no luck with this,
>>
>> Josh
>>
>> ----------------------------------------
>>> Date: Sun, 16 May 2010 14:34:45 +0200
>>> From: obrandts@gmail.com
>>> To: csound-devel@lists.sourceforge.net
>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>
>>> ah, you probably need to adjust ilength in the andx line to reflect
>>> the actual duration from istartSeconds iendSeconds, instead of
>>> reflecting the duration of the whole sample.
>>> Oeyvind
>>>
>>> 2010/5/15 Josh Brown :
>>>>
>>>> Thank you, this worked well. Do you know why the speed and pitch is higher than expected?
>>>>
>>>> ----------------------------------------
>>>>> Date: Sat, 15 May 2010 15:15:44 +0200
>>>>> From: obrandts@gmail.com
>>>>> To: csound-devel@lists.sourceforge.net
>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>
>>>>> As the sound is read from table, indexed by the linseg (or phasor in
>>>>> Victors example),
>>>>> you just need to change the range of the index generator.
>>>>>
>>>>> e.g. change this:
>>>>> andx linseg 0, ilength, 1, iskiptime, 1
>>>>>
>>>>> to:
>>>>> istartSeconds = 0.5
>>>>> iendSeconds = 2.5
>>>>> istart = istartSeconds / ilength
>>>>> iend = iendSeconds / ilength
>>>>> andx linseg istart, ilength, iend, iskiptime, 1
>>>>>
>>>>> I haven't tested this code, but suppose it should just work.
>>>>> Oeyvind
>>>>>
>>>>> 2010/5/15 Josh Brown :
>>>>>>
>>>>>> This works ok but I need to be able to change the start and end points.
>>>>>>
>>>>>> ----------------------------------------
>>>>>>> From: Victor.Lazzarini@nuim.ie
>>>>>>> To: csound-devel@lists.sourceforge.net
>>>>>>> Date: Fri, 14 May 2010 23:50:01 +0100
>>>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>>>
>>>>>>> In that case, maybe this is the answer, a gating/envelope instrument.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> -odac
>>>>>>>
>>>>>>>
>>>>>>> 0dbfs = 1
>>>>>>> nchnls=1
>>>>>>> ksmps =32
>>>>>>> instr 1
>>>>>>> kgapsize line 1, p3, 2
>>>>>>> a1 phasor sr/ftlen(1)
>>>>>>> asig tab a1, 1, 1
>>>>>>> aenv table a1*kgapsize,2,1
>>>>>>> out asig*aenv
>>>>>>> endin
>>>>>>>
>>>>>>>
>>>>>>> f2 0 1024 7 1 512 1 1 0 512 0
>>>>>>> f1 0 -44100 1 "flutec3.wav" 0 0 1
>>>>>>> i1 0 15
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On 14 May 2010, at 23:13, Josh Brown wrote:
>>>>>>>
>>>>>>>>
>>>>>>>> I could but I'm using a drum loop... It's such a shame there isn't
>>>>>>>> an opcode for this! It would be great for live sampling.
>>>>>>>>
>>>>>>>> Josh
>>>>>>>>
>>>>>>>> ----------------------------------------
>>>>>>>>> From: Victor.Lazzarini@nuim.ie
>>>>>>>>> To: csound-devel@lists.sourceforge.net
>>>>>>>>> Date: Fri, 14 May 2010 23:07:55 +0100
>>>>>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>>>>>
>>>>>>>>> you can start the loop a little later and keep the end of the loop at
>>>>>>>>> the end of the table.
>>>>>>>>>
>>>>>>>>> Victor
>>>>>>>>> On 14 May 2010, at 22:56, Josh Brown wrote:
>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Sorry, I see what you mean now ... but there is still a problem. Say
>>>>>>>>>> if I wanted to shorten the clip to 5 seconds. Like so:
>>>>>>>>>>
>>>>>>>>>> a1 flooper2 0.5, 1, 0, 5, 1, 1
>>>>>>>>>>
>>>>>>>>>> I wouldn't be able to add the silence because the rest of the table
>>>>>>>>>> wouldn't be empty.
>>>>>>>>>> ----------------------------------------
>>>>>>>>>>> From: Victor.Lazzarini@nuim.ie
>>>>>>>>>>> To: csound-devel@lists.sourceforge.net
>>>>>>>>>>> Date: Fri, 14 May 2010 22:53:15 +0100
>>>>>>>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>>>>>>>
>>>>>>>>>>> No, you don't need to edit the file. All you need is to make your
>>>>>>>>>>> table long enough to accommodate your file and
>>>>>>>>>>> the rest. That is what I did in that example.
>>>>>>>>>>>
>>>>>>>>>>> Say your file is 2 secs and you want a 1 sec rest. Make the table
>>>>>>>>>>> 3*sr points long. And so on.
>>>>>>>>>>>
>>>>>>>>>>> Victor
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> On 14 May 2010, at 22:27, Josh Brown wrote:
>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> Yes, I want something similar to this only with a rest of say, 1
>>>>>>>>>>>> second, in-between each repeat. Of course I could edit the file
>>>>>>>>>>>> "flutec3.wav" manually and add the silence myself but I would
>>>>>>>>>>>> prefer
>>>>>>>>>>>> to use csound.
>>>>>>>>>>>>
>>>>>>>>>>>> ----------------------------------------
>>>>>>>>>>>>> From: Victor.Lazzarini@nuim.ie
>>>>>>>>>>>>> To: csound-devel@lists.sourceforge.net
>>>>>>>>>>>>> Date: Fri, 14 May 2010 22:13:31 +0100
>>>>>>>>>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>>>>>>>>>
>>>>>>>>>>>>> Here's an example that does what you want. Use this file with it
>>>>>>>>>>>>> http://music.nuim.ie/music/sites/cpaneltest.nuim.ie.music/files/music/flutec3.wav
>>>>>>>>>>>>>
>>>>>>>>>>>>> (or any file less than 10 sec long)
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> -odac
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> 0dbfs = 1
>>>>>>>>>>>>> nchnls=1
>>>>>>>>>>>>> ksmps =32
>>>>>>>>>>>>> instr 1
>>>>>>>>>>>>> a1 flooper2 0.5, 1, 0, 10, 1, 1
>>>>>>>>>>>>> out a1
>>>>>>>>>>>>> endin
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> f1 0 -441000 1 "flutec3.wav" 0 0 1
>>>>>>>>>>>>> i1 0 60
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> On 14 May 2010, at 21:54, Josh Brown wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> I fear the solution to this will be incredibly complex. I'm not
>>>>>>>>>>>>>> skilled in the art of csound and thus far, all my attempts have
>>>>>>>>>>>>>> failed. Looking at flooper, lposcil and many of the other loop
>>>>>>>>>>>>>> based
>>>>>>>>>>>>>> opcodes - they do not allow for a pause or gap inbetween.
>>>>>>>>>>>>>> I have tried extending the size of the function table but this
>>>>>>>>>>>>>> did
>>>>>>>>>>>>>> not allow me to make my sample smaller, with a gap inbetween. I
>>>>>>>>>>>>>> tried getting a oscillator in synch with conditionals to
>>>>>>>>>>>>>> create a
>>>>>>>>>>>>>> drop in the amplitude but this did not help. Finally, I looked
>>>>>>>>>>>>>> briefly at looping my sample within the score but couldn't
>>>>>>>>>>>>>> find an
>>>>>>>>>>>>>> opcode which lets me change the start and end points, whilst
>>>>>>>>>>>>>> playing
>>>>>>>>>>>>>> the sample once.
>>>>>>>>>>>>>> -------------------------------------------------
>>>>>>>>>>>>>>> From: rorywalsh@ear.ie
>>>>>>>>>>>>>>> Date: Fri, 14 May 2010 21:27:02 +0100
>>>>>>>>>>>>>>> To: csound-devel@lists.sourceforge.net
>>>>>>>>>>>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> This should be quite possible with the current opcodes, even
>>>>>>>>>>>>>>> with
>>>>>>>>>>>>>>> tab
>>>>>>>>>>>>>>> and tabw, perhaps if you explain to us how you tried going
>>>>>>>>>>>>>>> about it
>>>>>>>>>>>>>>> we
>>>>>>>>>>>>>>> could help?
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> On 14 May 2010 21:16, Josh Brown wrote:
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Please make a opcode which allows me to loop sampled sound
>>>>>>>>>>>>>>>> from a
>>>>>>>>>>>>>>>> function table with a pause in-between each cycle. Something
>>>>>>>>>>>>>>>> like
>>>>>>>>>>>>>>>> lposcil but with a gap of a specified length which can be
>>>>>>>>>>>>>>>> changed
>>>>>>>>>>>>>>>> at performance time.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> I am having difficulties in achieving this with the current
>>>>>>>>>>>>>>>> opcodes.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Cheers,
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Josh
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> _________________________________________________________________
>>>>>>>>>>>>>>>> http://clk.atdmt.com/UKM/go/195013117/direct/01/
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> _________________________________________________________________
>>>>>>>>>>>>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>>>>>>>>>>>>> Do you have a story that started on Hotmail? Tell us now
>>>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>>>
>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>>
>>>>>>>>>>>> _________________________________________________________________
>>>>>>>>>>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>>>>>>>>>>> We want to hear all your funny, exciting and crazy Hotmail
>>>>>>>>>>>> stories.
>>>>>>>>>>>> Tell us now
>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>>
>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>
>>>>>>>>>>> _______________________________________________
>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>
>>>>>>>>>> _________________________________________________________________
>>>>>>>>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>>>>>>>>> Do you have a story that started on Hotmail? Tell us now
>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>
>>>>>>>>>> _______________________________________________
>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>
>>>>>>>>> _______________________________________________
>>>>>>>>> Csound-devel mailing list
>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>
>>>>>>>> _________________________________________________________________
>>>>>>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>>>>>>> We want to hear all your funny, exciting and crazy Hotmail stories.
>>>>>>>> Tell us now
>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> Csound-devel mailing list
>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>
>>>>>>>
>>>>>>> ------------------------------------------------------------------------------
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Csound-devel mailing list
>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>
>>>>>> _________________________________________________________________
>>>>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>>>>> We want to hear all your funny, exciting and crazy Hotmail stories. Tell us now
>>>>>> ------------------------------------------------------------------------------
>>>>>>
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>>
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>> _________________________________________________________________
>>>> http://clk.atdmt.com/UKM/go/195013117/direct/01/
>>>>
>>>> ------------------------------------------------------------------------------
>>>>
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>
>>> ------------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>> _________________________________________________________________
>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>> Do you have a story that started on Hotmail? Tell us now
>> ------------------------------------------------------------------------------
>>
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
 		 	   		  
_________________________________________________________________
http://clk.atdmt.com/UKM/go/197222280/direct/01/
Do you have a story that started on Hotmail? Tell us now
------------------------------------------------------------------------------

_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-05-16 21:39
FromOeyvind Brandtsegg
SubjectRe: [Cs-dev] loop with a pause inbetween
ah, ok, I had done
ilength		= ftlen(giSample)/sr
but should have been
ilength		tableng giSamplePow
ilength		= ilength/sr

... to take into account the larger ftable when converting the table
to pow-of-two size

instr 2 should now look like this:

ilength		tableng giSamplePow
ilength		= ilength/sr
doLoop:
iskiptime	= 1
istartSeconds = 0
iendSeconds = 2
istart =  istartSeconds / ilength
iend =  iendSeconds / ilength

ilen = iendSeconds - istartSeconds
andx            linseg  istart, ilen, iend, iskiptime, iend
a1		tablei	andx, giSamplePow, 1
ktime		line 0, ilen+iskiptime, 1
if ktime < 1 kgoto done
reinit doLoop
done:
		outs a1, a1

best
Oeyvind

2010/5/16 Josh Brown :
>
> It's all code you have written but I will post a link anyway: http://www.joshyyy.com/loopwithskip.html
>
> ----------------------------------------
>> Date: Sun, 16 May 2010 21:36:11 +0200
>> From: obrandts@gmail.com
>> To: csound-devel@lists.sourceforge.net
>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>
>> You could zip you csd with the soundfile and upload it somewhere so we
>> can test it,
>> or (just a shot in the dark) try ilen*0.5
>>
>> also remember to put iend as the last argument to linseg (not 1)
>>
>> andx linseg istart, ilen*0.5, iend, iskiptime, iend
>>
>> Oeyvind
>>
>> 2010/5/16 Josh Brown :
>>>
>>> I tried this:
>>>
>>> ilen = iend - istart
>>> andx            linseg  istart, ilen, iend, iskiptime, 1
>>>
>>> ... but it still played fast with a higher pitch. Still no luck with this,
>>>
>>> Josh
>>>
>>> ----------------------------------------
>>>> Date: Sun, 16 May 2010 14:34:45 +0200
>>>> From: obrandts@gmail.com
>>>> To: csound-devel@lists.sourceforge.net
>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>
>>>> ah, you probably need to adjust ilength in the andx line to reflect
>>>> the actual duration from istartSeconds iendSeconds, instead of
>>>> reflecting the duration of the whole sample.
>>>> Oeyvind
>>>>
>>>> 2010/5/15 Josh Brown :
>>>>>
>>>>> Thank you, this worked well. Do you know why the speed and pitch is higher than expected?
>>>>>
>>>>> ----------------------------------------
>>>>>> Date: Sat, 15 May 2010 15:15:44 +0200
>>>>>> From: obrandts@gmail.com
>>>>>> To: csound-devel@lists.sourceforge.net
>>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>>
>>>>>> As the sound is read from table, indexed by the linseg (or phasor in
>>>>>> Victors example),
>>>>>> you just need to change the range of the index generator.
>>>>>>
>>>>>> e.g. change this:
>>>>>> andx linseg 0, ilength, 1, iskiptime, 1
>>>>>>
>>>>>> to:
>>>>>> istartSeconds = 0.5
>>>>>> iendSeconds = 2.5
>>>>>> istart = istartSeconds / ilength
>>>>>> iend = iendSeconds / ilength
>>>>>> andx linseg istart, ilength, iend, iskiptime, 1
>>>>>>
>>>>>> I haven't tested this code, but suppose it should just work.
>>>>>> Oeyvind
>>>>>>
>>>>>> 2010/5/15 Josh Brown :
>>>>>>>
>>>>>>> This works ok but I need to be able to change the start and end points.
>>>>>>>
>>>>>>> ----------------------------------------
>>>>>>>> From: Victor.Lazzarini@nuim.ie
>>>>>>>> To: csound-devel@lists.sourceforge.net
>>>>>>>> Date: Fri, 14 May 2010 23:50:01 +0100
>>>>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>>>>
>>>>>>>> In that case, maybe this is the answer, a gating/envelope instrument.
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> -odac
>>>>>>>>
>>>>>>>>
>>>>>>>> 0dbfs = 1
>>>>>>>> nchnls=1
>>>>>>>> ksmps =32
>>>>>>>> instr 1
>>>>>>>> kgapsize line 1, p3, 2
>>>>>>>> a1 phasor sr/ftlen(1)
>>>>>>>> asig tab a1, 1, 1
>>>>>>>> aenv table a1*kgapsize,2,1
>>>>>>>> out asig*aenv
>>>>>>>> endin
>>>>>>>>
>>>>>>>>
>>>>>>>> f2 0 1024 7 1 512 1 1 0 512 0
>>>>>>>> f1 0 -44100 1 "flutec3.wav" 0 0 1
>>>>>>>> i1 0 15
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> On 14 May 2010, at 23:13, Josh Brown wrote:
>>>>>>>>
>>>>>>>>>
>>>>>>>>> I could but I'm using a drum loop... It's such a shame there isn't
>>>>>>>>> an opcode for this! It would be great for live sampling.
>>>>>>>>>
>>>>>>>>> Josh
>>>>>>>>>
>>>>>>>>> ----------------------------------------
>>>>>>>>>> From: Victor.Lazzarini@nuim.ie
>>>>>>>>>> To: csound-devel@lists.sourceforge.net
>>>>>>>>>> Date: Fri, 14 May 2010 23:07:55 +0100
>>>>>>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>>>>>>
>>>>>>>>>> you can start the loop a little later and keep the end of the loop at
>>>>>>>>>> the end of the table.
>>>>>>>>>>
>>>>>>>>>> Victor
>>>>>>>>>> On 14 May 2010, at 22:56, Josh Brown wrote:
>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> Sorry, I see what you mean now ... but there is still a problem. Say
>>>>>>>>>>> if I wanted to shorten the clip to 5 seconds. Like so:
>>>>>>>>>>>
>>>>>>>>>>> a1 flooper2 0.5, 1, 0, 5, 1, 1
>>>>>>>>>>>
>>>>>>>>>>> I wouldn't be able to add the silence because the rest of the table
>>>>>>>>>>> wouldn't be empty.
>>>>>>>>>>> ----------------------------------------
>>>>>>>>>>>> From: Victor.Lazzarini@nuim.ie
>>>>>>>>>>>> To: csound-devel@lists.sourceforge.net
>>>>>>>>>>>> Date: Fri, 14 May 2010 22:53:15 +0100
>>>>>>>>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>>>>>>>>
>>>>>>>>>>>> No, you don't need to edit the file. All you need is to make your
>>>>>>>>>>>> table long enough to accommodate your file and
>>>>>>>>>>>> the rest. That is what I did in that example.
>>>>>>>>>>>>
>>>>>>>>>>>> Say your file is 2 secs and you want a 1 sec rest. Make the table
>>>>>>>>>>>> 3*sr points long. And so on.
>>>>>>>>>>>>
>>>>>>>>>>>> Victor
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> On 14 May 2010, at 22:27, Josh Brown wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> Yes, I want something similar to this only with a rest of say, 1
>>>>>>>>>>>>> second, in-between each repeat. Of course I could edit the file
>>>>>>>>>>>>> "flutec3.wav" manually and add the silence myself but I would
>>>>>>>>>>>>> prefer
>>>>>>>>>>>>> to use csound.
>>>>>>>>>>>>>
>>>>>>>>>>>>> ----------------------------------------
>>>>>>>>>>>>>> From: Victor.Lazzarini@nuim.ie
>>>>>>>>>>>>>> To: csound-devel@lists.sourceforge.net
>>>>>>>>>>>>>> Date: Fri, 14 May 2010 22:13:31 +0100
>>>>>>>>>>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Here's an example that does what you want. Use this file with it
>>>>>>>>>>>>>> http://music.nuim.ie/music/sites/cpaneltest.nuim.ie.music/files/music/flutec3.wav
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> (or any file less than 10 sec long)
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> -odac
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> 0dbfs = 1
>>>>>>>>>>>>>> nchnls=1
>>>>>>>>>>>>>> ksmps =32
>>>>>>>>>>>>>> instr 1
>>>>>>>>>>>>>> a1 flooper2 0.5, 1, 0, 10, 1, 1
>>>>>>>>>>>>>> out a1
>>>>>>>>>>>>>> endin
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> f1 0 -441000 1 "flutec3.wav" 0 0 1
>>>>>>>>>>>>>> i1 0 60
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On 14 May 2010, at 21:54, Josh Brown wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> I fear the solution to this will be incredibly complex. I'm not
>>>>>>>>>>>>>>> skilled in the art of csound and thus far, all my attempts have
>>>>>>>>>>>>>>> failed. Looking at flooper, lposcil and many of the other loop
>>>>>>>>>>>>>>> based
>>>>>>>>>>>>>>> opcodes - they do not allow for a pause or gap inbetween.
>>>>>>>>>>>>>>> I have tried extending the size of the function table but this
>>>>>>>>>>>>>>> did
>>>>>>>>>>>>>>> not allow me to make my sample smaller, with a gap inbetween. I
>>>>>>>>>>>>>>> tried getting a oscillator in synch with conditionals to
>>>>>>>>>>>>>>> create a
>>>>>>>>>>>>>>> drop in the amplitude but this did not help. Finally, I looked
>>>>>>>>>>>>>>> briefly at looping my sample within the score but couldn't
>>>>>>>>>>>>>>> find an
>>>>>>>>>>>>>>> opcode which lets me change the start and end points, whilst
>>>>>>>>>>>>>>> playing
>>>>>>>>>>>>>>> the sample once.
>>>>>>>>>>>>>>> -------------------------------------------------
>>>>>>>>>>>>>>>> From: rorywalsh@ear.ie
>>>>>>>>>>>>>>>> Date: Fri, 14 May 2010 21:27:02 +0100
>>>>>>>>>>>>>>>> To: csound-devel@lists.sourceforge.net
>>>>>>>>>>>>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> This should be quite possible with the current opcodes, even
>>>>>>>>>>>>>>>> with
>>>>>>>>>>>>>>>> tab
>>>>>>>>>>>>>>>> and tabw, perhaps if you explain to us how you tried going
>>>>>>>>>>>>>>>> about it
>>>>>>>>>>>>>>>> we
>>>>>>>>>>>>>>>> could help?
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> On 14 May 2010 21:16, Josh Brown wrote:
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> Please make a opcode which allows me to loop sampled sound
>>>>>>>>>>>>>>>>> from a
>>>>>>>>>>>>>>>>> function table with a pause in-between each cycle. Something
>>>>>>>>>>>>>>>>> like
>>>>>>>>>>>>>>>>> lposcil but with a gap of a specified length which can be
>>>>>>>>>>>>>>>>> changed
>>>>>>>>>>>>>>>>> at performance time.
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> I am having difficulties in achieving this with the current
>>>>>>>>>>>>>>>>> opcodes.
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> Cheers,
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> Josh
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> _________________________________________________________________
>>>>>>>>>>>>>>>>> http://clk.atdmt.com/UKM/go/195013117/direct/01/
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> _________________________________________________________________
>>>>>>>>>>>>>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>>>>>>>>>>>>>> Do you have a story that started on Hotmail? Tell us now
>>>>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>>>
>>>>>>>>>>>>> _________________________________________________________________
>>>>>>>>>>>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>>>>>>>>>>>> We want to hear all your funny, exciting and crazy Hotmail
>>>>>>>>>>>>> stories.
>>>>>>>>>>>>> Tell us now
>>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>>>
>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>>
>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>
>>>>>>>>>>> _________________________________________________________________
>>>>>>>>>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>>>>>>>>>> Do you have a story that started on Hotmail? Tell us now
>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>
>>>>>>>>>>> _______________________________________________
>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>
>>>>>>>>>> _______________________________________________
>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>
>>>>>>>>> _________________________________________________________________
>>>>>>>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>>>>>>>> We want to hear all your funny, exciting and crazy Hotmail stories.
>>>>>>>>> Tell us now
>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>
>>>>>>>>> _______________________________________________
>>>>>>>>> Csound-devel mailing list
>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>
>>>>>>>>
>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> Csound-devel mailing list
>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>
>>>>>>> _________________________________________________________________
>>>>>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>>>>>> We want to hear all your funny, exciting and crazy Hotmail stories. Tell us now
>>>>>>> ------------------------------------------------------------------------------
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Csound-devel mailing list
>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>>
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>
>>>>> _________________________________________________________________
>>>>> http://clk.atdmt.com/UKM/go/195013117/direct/01/
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>>
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>>
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>> _________________________________________________________________
>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>> Do you have a story that started on Hotmail? Tell us now
>>> ------------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>
>> ------------------------------------------------------------------------------
>>
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> _________________________________________________________________
> http://clk.atdmt.com/UKM/go/197222280/direct/01/
> Do you have a story that started on Hotmail? Tell us now
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------

_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-05-16 21:47
FromJosh Brown
SubjectRe: [Cs-dev] loop with a pause inbetween
Thank you for all your help. Very much appreciated.

Josh

----------------------------------------
> Date: Sun, 16 May 2010 22:39:42 +0200
> From: obrandts@gmail.com
> To: csound-devel@lists.sourceforge.net
> Subject: Re: [Cs-dev] loop with a pause inbetween
>
> ah, ok, I had done
> ilength = ftlen(giSample)/sr
> but should have been
> ilength tableng giSamplePow
> ilength = ilength/sr
>
> ... to take into account the larger ftable when converting the table
> to pow-of-two size
>
> instr 2 should now look like this:
>
> ilength tableng giSamplePow
> ilength = ilength/sr
> doLoop:
> iskiptime = 1
> istartSeconds = 0
> iendSeconds = 2
> istart = istartSeconds / ilength
> iend = iendSeconds / ilength
>
> ilen = iendSeconds - istartSeconds
> andx linseg istart, ilen, iend, iskiptime, iend
> a1 tablei andx, giSamplePow, 1
> ktime line 0, ilen+iskiptime, 1
> if ktime < 1 kgoto done
> reinit doLoop
> done:
> outs a1, a1
>
> best
> Oeyvind
>
> 2010/5/16 Josh Brown :
>>
>> It's all code you have written but I will post a link anyway: http://www.joshyyy.com/loopwithskip.html
>>
>> ----------------------------------------
>>> Date: Sun, 16 May 2010 21:36:11 +0200
>>> From: obrandts@gmail.com
>>> To: csound-devel@lists.sourceforge.net
>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>
>>> You could zip you csd with the soundfile and upload it somewhere so we
>>> can test it,
>>> or (just a shot in the dark) try ilen*0.5
>>>
>>> also remember to put iend as the last argument to linseg (not 1)
>>>
>>> andx linseg istart, ilen*0.5, iend, iskiptime, iend
>>>
>>> Oeyvind
>>>
>>> 2010/5/16 Josh Brown :
>>>>
>>>> I tried this:
>>>>
>>>> ilen = iend - istart
>>>> andx            linseg  istart, ilen, iend, iskiptime, 1
>>>>
>>>> ... but it still played fast with a higher pitch. Still no luck with this,
>>>>
>>>> Josh
>>>>
>>>> ----------------------------------------
>>>>> Date: Sun, 16 May 2010 14:34:45 +0200
>>>>> From: obrandts@gmail.com
>>>>> To: csound-devel@lists.sourceforge.net
>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>
>>>>> ah, you probably need to adjust ilength in the andx line to reflect
>>>>> the actual duration from istartSeconds iendSeconds, instead of
>>>>> reflecting the duration of the whole sample.
>>>>> Oeyvind
>>>>>
>>>>> 2010/5/15 Josh Brown :
>>>>>>
>>>>>> Thank you, this worked well. Do you know why the speed and pitch is higher than expected?
>>>>>>
>>>>>> ----------------------------------------
>>>>>>> Date: Sat, 15 May 2010 15:15:44 +0200
>>>>>>> From: obrandts@gmail.com
>>>>>>> To: csound-devel@lists.sourceforge.net
>>>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>>>
>>>>>>> As the sound is read from table, indexed by the linseg (or phasor in
>>>>>>> Victors example),
>>>>>>> you just need to change the range of the index generator.
>>>>>>>
>>>>>>> e.g. change this:
>>>>>>> andx linseg 0, ilength, 1, iskiptime, 1
>>>>>>>
>>>>>>> to:
>>>>>>> istartSeconds = 0.5
>>>>>>> iendSeconds = 2.5
>>>>>>> istart = istartSeconds / ilength
>>>>>>> iend = iendSeconds / ilength
>>>>>>> andx linseg istart, ilength, iend, iskiptime, 1
>>>>>>>
>>>>>>> I haven't tested this code, but suppose it should just work.
>>>>>>> Oeyvind
>>>>>>>
>>>>>>> 2010/5/15 Josh Brown :
>>>>>>>>
>>>>>>>> This works ok but I need to be able to change the start and end points.
>>>>>>>>
>>>>>>>> ----------------------------------------
>>>>>>>>> From: Victor.Lazzarini@nuim.ie
>>>>>>>>> To: csound-devel@lists.sourceforge.net
>>>>>>>>> Date: Fri, 14 May 2010 23:50:01 +0100
>>>>>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>>>>>
>>>>>>>>> In that case, maybe this is the answer, a gating/envelope instrument.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> -odac
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> 0dbfs = 1
>>>>>>>>> nchnls=1
>>>>>>>>> ksmps =32
>>>>>>>>> instr 1
>>>>>>>>> kgapsize line 1, p3, 2
>>>>>>>>> a1 phasor sr/ftlen(1)
>>>>>>>>> asig tab a1, 1, 1
>>>>>>>>> aenv table a1*kgapsize,2,1
>>>>>>>>> out asig*aenv
>>>>>>>>> endin
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> f2 0 1024 7 1 512 1 1 0 512 0
>>>>>>>>> f1 0 -44100 1 "flutec3.wav" 0 0 1
>>>>>>>>> i1 0 15
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On 14 May 2010, at 23:13, Josh Brown wrote:
>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> I could but I'm using a drum loop... It's such a shame there isn't
>>>>>>>>>> an opcode for this! It would be great for live sampling.
>>>>>>>>>>
>>>>>>>>>> Josh
>>>>>>>>>>
>>>>>>>>>> ----------------------------------------
>>>>>>>>>>> From: Victor.Lazzarini@nuim.ie
>>>>>>>>>>> To: csound-devel@lists.sourceforge.net
>>>>>>>>>>> Date: Fri, 14 May 2010 23:07:55 +0100
>>>>>>>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>>>>>>>
>>>>>>>>>>> you can start the loop a little later and keep the end of the loop at
>>>>>>>>>>> the end of the table.
>>>>>>>>>>>
>>>>>>>>>>> Victor
>>>>>>>>>>> On 14 May 2010, at 22:56, Josh Brown wrote:
>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> Sorry, I see what you mean now ... but there is still a problem. Say
>>>>>>>>>>>> if I wanted to shorten the clip to 5 seconds. Like so:
>>>>>>>>>>>>
>>>>>>>>>>>> a1 flooper2 0.5, 1, 0, 5, 1, 1
>>>>>>>>>>>>
>>>>>>>>>>>> I wouldn't be able to add the silence because the rest of the table
>>>>>>>>>>>> wouldn't be empty.
>>>>>>>>>>>> ----------------------------------------
>>>>>>>>>>>>> From: Victor.Lazzarini@nuim.ie
>>>>>>>>>>>>> To: csound-devel@lists.sourceforge.net
>>>>>>>>>>>>> Date: Fri, 14 May 2010 22:53:15 +0100
>>>>>>>>>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>>>>>>>>>
>>>>>>>>>>>>> No, you don't need to edit the file. All you need is to make your
>>>>>>>>>>>>> table long enough to accommodate your file and
>>>>>>>>>>>>> the rest. That is what I did in that example.
>>>>>>>>>>>>>
>>>>>>>>>>>>> Say your file is 2 secs and you want a 1 sec rest. Make the table
>>>>>>>>>>>>> 3*sr points long. And so on.
>>>>>>>>>>>>>
>>>>>>>>>>>>> Victor
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> On 14 May 2010, at 22:27, Josh Brown wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Yes, I want something similar to this only with a rest of say, 1
>>>>>>>>>>>>>> second, in-between each repeat. Of course I could edit the file
>>>>>>>>>>>>>> "flutec3.wav" manually and add the silence myself but I would
>>>>>>>>>>>>>> prefer
>>>>>>>>>>>>>> to use csound.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> ----------------------------------------
>>>>>>>>>>>>>>> From: Victor.Lazzarini@nuim.ie
>>>>>>>>>>>>>>> To: csound-devel@lists.sourceforge.net
>>>>>>>>>>>>>>> Date: Fri, 14 May 2010 22:13:31 +0100
>>>>>>>>>>>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Here's an example that does what you want. Use this file with it
>>>>>>>>>>>>>>> http://music.nuim.ie/music/sites/cpaneltest.nuim.ie.music/files/music/flutec3.wav
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> (or any file less than 10 sec long)
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> -odac
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> 0dbfs = 1
>>>>>>>>>>>>>>> nchnls=1
>>>>>>>>>>>>>>> ksmps =32
>>>>>>>>>>>>>>> instr 1
>>>>>>>>>>>>>>> a1 flooper2 0.5, 1, 0, 10, 1, 1
>>>>>>>>>>>>>>> out a1
>>>>>>>>>>>>>>> endin
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> f1 0 -441000 1 "flutec3.wav" 0 0 1
>>>>>>>>>>>>>>> i1 0 60
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> On 14 May 2010, at 21:54, Josh Brown wrote:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> I fear the solution to this will be incredibly complex. I'm not
>>>>>>>>>>>>>>>> skilled in the art of csound and thus far, all my attempts have
>>>>>>>>>>>>>>>> failed. Looking at flooper, lposcil and many of the other loop
>>>>>>>>>>>>>>>> based
>>>>>>>>>>>>>>>> opcodes - they do not allow for a pause or gap inbetween.
>>>>>>>>>>>>>>>> I have tried extending the size of the function table but this
>>>>>>>>>>>>>>>> did
>>>>>>>>>>>>>>>> not allow me to make my sample smaller, with a gap inbetween. I
>>>>>>>>>>>>>>>> tried getting a oscillator in synch with conditionals to
>>>>>>>>>>>>>>>> create a
>>>>>>>>>>>>>>>> drop in the amplitude but this did not help. Finally, I looked
>>>>>>>>>>>>>>>> briefly at looping my sample within the score but couldn't
>>>>>>>>>>>>>>>> find an
>>>>>>>>>>>>>>>> opcode which lets me change the start and end points, whilst
>>>>>>>>>>>>>>>> playing
>>>>>>>>>>>>>>>> the sample once.
>>>>>>>>>>>>>>>> -------------------------------------------------
>>>>>>>>>>>>>>>>> From: rorywalsh@ear.ie
>>>>>>>>>>>>>>>>> Date: Fri, 14 May 2010 21:27:02 +0100
>>>>>>>>>>>>>>>>> To: csound-devel@lists.sourceforge.net
>>>>>>>>>>>>>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> This should be quite possible with the current opcodes, even
>>>>>>>>>>>>>>>>> with
>>>>>>>>>>>>>>>>> tab
>>>>>>>>>>>>>>>>> and tabw, perhaps if you explain to us how you tried going
>>>>>>>>>>>>>>>>> about it
>>>>>>>>>>>>>>>>> we
>>>>>>>>>>>>>>>>> could help?
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> On 14 May 2010 21:16, Josh Brown wrote:
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Please make a opcode which allows me to loop sampled sound
>>>>>>>>>>>>>>>>>> from a
>>>>>>>>>>>>>>>>>> function table with a pause in-between each cycle. Something
>>>>>>>>>>>>>>>>>> like
>>>>>>>>>>>>>>>>>> lposcil but with a gap of a specified length which can be
>>>>>>>>>>>>>>>>>> changed
>>>>>>>>>>>>>>>>>> at performance time.
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> I am having difficulties in achieving this with the current
>>>>>>>>>>>>>>>>>> opcodes.
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Cheers,
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Josh
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> _________________________________________________________________
>>>>>>>>>>>>>>>>>> http://clk.atdmt.com/UKM/go/195013117/direct/01/
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> _________________________________________________________________
>>>>>>>>>>>>>>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>>>>>>>>>>>>>>> Do you have a story that started on Hotmail? Tell us now
>>>>>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> _________________________________________________________________
>>>>>>>>>>>>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>>>>>>>>>>>>> We want to hear all your funny, exciting and crazy Hotmail
>>>>>>>>>>>>>> stories.
>>>>>>>>>>>>>> Tell us now
>>>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>>>
>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>>
>>>>>>>>>>>> _________________________________________________________________
>>>>>>>>>>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>>>>>>>>>>> Do you have a story that started on Hotmail? Tell us now
>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>>
>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>
>>>>>>>>>>> _______________________________________________
>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>
>>>>>>>>>> _________________________________________________________________
>>>>>>>>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>>>>>>>>> We want to hear all your funny, exciting and crazy Hotmail stories.
>>>>>>>>>> Tell us now
>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>
>>>>>>>>>> _______________________________________________
>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>
>>>>>>>>> _______________________________________________
>>>>>>>>> Csound-devel mailing list
>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>
>>>>>>>> _________________________________________________________________
>>>>>>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>>>>>>> We want to hear all your funny, exciting and crazy Hotmail stories. Tell us now
>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> Csound-devel mailing list
>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>
>>>>>>>
>>>>>>> ------------------------------------------------------------------------------
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Csound-devel mailing list
>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>
>>>>>> _________________________________________________________________
>>>>>> http://clk.atdmt.com/UKM/go/195013117/direct/01/
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>>
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>>
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>> _________________________________________________________________
>>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>>> Do you have a story that started on Hotmail? Tell us now
>>>> ------------------------------------------------------------------------------
>>>>
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>
>>> ------------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>> _________________________________________________________________
>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>> Do you have a story that started on Hotmail? Tell us now
>> ------------------------------------------------------------------------------
>>
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
 		 	   		  
_________________________________________________________________
http://clk.atdmt.com/UKM/go/197222280/direct/01/
Do you have a story that started on Hotmail? Tell us now
------------------------------------------------------------------------------

_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-05-16 21:47
From"Dr. Richard Boulanger"
SubjectRe: [Cs-dev] loop with a pause inbetween
Wonderful instrument Oeyvind.

Thanks for working on it and sharing with all of us.

Dr. B.


On May 16, 2010, at 4:39 PM, Oeyvind Brandtsegg wrote:

> ah, ok, I had done
> ilength		= ftlen(giSample)/sr
> but should have been
> ilength		tableng giSamplePow
> ilength		= ilength/sr
>
> ... to take into account the larger ftable when converting the table
> to pow-of-two size
>
> instr 2 should now look like this:
>
> ilength		tableng giSamplePow
> ilength		= ilength/sr
> doLoop:
> iskiptime	= 1
> istartSeconds = 0
> iendSeconds = 2
> istart =  istartSeconds / ilength
> iend =  iendSeconds / ilength
>
> ilen = iendSeconds - istartSeconds
> andx            linseg  istart, ilen, iend, iskiptime, iend
> a1		tablei	andx, giSamplePow, 1
> ktime		line 0, ilen+iskiptime, 1
> if ktime < 1 kgoto done
> reinit doLoop
> done:
> 		outs a1, a1
>
> best
> Oeyvind
>
> 2010/5/16 Josh Brown :
>>
>> It's all code you have written but I will post a link anyway: http://www.joshyyy.com/loopwithskip.html
>>
>> ----------------------------------------
>>> Date: Sun, 16 May 2010 21:36:11 +0200
>>> From: obrandts@gmail.com
>>> To: csound-devel@lists.sourceforge.net
>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>
>>> You could zip you csd with the soundfile and upload it somewhere  
>>> so we
>>> can test it,
>>> or (just a shot in the dark) try ilen*0.5
>>>
>>> also remember to put iend as the last argument to linseg (not 1)
>>>
>>> andx linseg istart, ilen*0.5, iend, iskiptime, iend
>>>
>>> Oeyvind
>>>
>>> 2010/5/16 Josh Brown :
>>>>
>>>> I tried this:
>>>>
>>>> ilen = iend - istart
>>>> andx            linseg  istart, ilen, iend, iskiptime, 1
>>>>
>>>> ... but it still played fast with a higher pitch. Still no luck  
>>>> with this,
>>>>
>>>> Josh
>>>>
>>>> ----------------------------------------
>>>>> Date: Sun, 16 May 2010 14:34:45 +0200
>>>>> From: obrandts@gmail.com
>>>>> To: csound-devel@lists.sourceforge.net
>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>
>>>>> ah, you probably need to adjust ilength in the andx line to  
>>>>> reflect
>>>>> the actual duration from istartSeconds iendSeconds, instead of
>>>>> reflecting the duration of the whole sample.
>>>>> Oeyvind
>>>>>
>>>>> 2010/5/15 Josh Brown :
>>>>>>
>>>>>> Thank you, this worked well. Do you know why the speed and  
>>>>>> pitch is higher than expected?
>>>>>>
>>>>>> ----------------------------------------
>>>>>>> Date: Sat, 15 May 2010 15:15:44 +0200
>>>>>>> From: obrandts@gmail.com
>>>>>>> To: csound-devel@lists.sourceforge.net
>>>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>>>
>>>>>>> As the sound is read from table, indexed by the linseg (or  
>>>>>>> phasor in
>>>>>>> Victors example),
>>>>>>> you just need to change the range of the index generator.
>>>>>>>
>>>>>>> e.g. change this:
>>>>>>> andx linseg 0, ilength, 1, iskiptime, 1
>>>>>>>
>>>>>>> to:
>>>>>>> istartSeconds = 0.5
>>>>>>> iendSeconds = 2.5
>>>>>>> istart = istartSeconds / ilength
>>>>>>> iend = iendSeconds / ilength
>>>>>>> andx linseg istart, ilength, iend, iskiptime, 1
>>>>>>>
>>>>>>> I haven't tested this code, but suppose it should just work.
>>>>>>> Oeyvind
>>>>>>>
>>>>>>> 2010/5/15 Josh Brown :
>>>>>>>>
>>>>>>>> This works ok but I need to be able to change the start and  
>>>>>>>> end points.
>>>>>>>>
>>>>>>>> ----------------------------------------
>>>>>>>>> From: Victor.Lazzarini@nuim.ie
>>>>>>>>> To: csound-devel@lists.sourceforge.net
>>>>>>>>> Date: Fri, 14 May 2010 23:50:01 +0100
>>>>>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>>>>>
>>>>>>>>> In that case, maybe this is the answer, a gating/envelope  
>>>>>>>>> instrument.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> -odac
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> 0dbfs = 1
>>>>>>>>> nchnls=1
>>>>>>>>> ksmps =32
>>>>>>>>> instr 1
>>>>>>>>> kgapsize line 1, p3, 2
>>>>>>>>> a1 phasor sr/ftlen(1)
>>>>>>>>> asig tab a1, 1, 1
>>>>>>>>> aenv table a1*kgapsize,2,1
>>>>>>>>> out asig*aenv
>>>>>>>>> endin
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> f2 0 1024 7 1 512 1 1 0 512 0
>>>>>>>>> f1 0 -44100 1 "flutec3.wav" 0 0 1
>>>>>>>>> i1 0 15
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On 14 May 2010, at 23:13, Josh Brown wrote:
>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> I could but I'm using a drum loop... It's such a shame  
>>>>>>>>>> there isn't
>>>>>>>>>> an opcode for this! It would be great for live sampling.
>>>>>>>>>>
>>>>>>>>>> Josh
>>>>>>>>>>
>>>>>>>>>> ----------------------------------------
>>>>>>>>>>> From: Victor.Lazzarini@nuim.ie
>>>>>>>>>>> To: csound-devel@lists.sourceforge.net
>>>>>>>>>>> Date: Fri, 14 May 2010 23:07:55 +0100
>>>>>>>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>>>>>>>
>>>>>>>>>>> you can start the loop a little later and keep the end of  
>>>>>>>>>>> the loop at
>>>>>>>>>>> the end of the table.
>>>>>>>>>>>
>>>>>>>>>>> Victor
>>>>>>>>>>> On 14 May 2010, at 22:56, Josh Brown wrote:
>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> Sorry, I see what you mean now ... but there is still a  
>>>>>>>>>>>> problem. Say
>>>>>>>>>>>> if I wanted to shorten the clip to 5 seconds. Like so:
>>>>>>>>>>>>
>>>>>>>>>>>> a1 flooper2 0.5, 1, 0, 5, 1, 1
>>>>>>>>>>>>
>>>>>>>>>>>> I wouldn't be able to add the silence because the rest of  
>>>>>>>>>>>> the table
>>>>>>>>>>>> wouldn't be empty.
>>>>>>>>>>>> ----------------------------------------
>>>>>>>>>>>>> From: Victor.Lazzarini@nuim.ie
>>>>>>>>>>>>> To: csound-devel@lists.sourceforge.net
>>>>>>>>>>>>> Date: Fri, 14 May 2010 22:53:15 +0100
>>>>>>>>>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>>>>>>>>>
>>>>>>>>>>>>> No, you don't need to edit the file. All you need is to  
>>>>>>>>>>>>> make your
>>>>>>>>>>>>> table long enough to accommodate your file and
>>>>>>>>>>>>> the rest. That is what I did in that example.
>>>>>>>>>>>>>
>>>>>>>>>>>>> Say your file is 2 secs and you want a 1 sec rest. Make  
>>>>>>>>>>>>> the table
>>>>>>>>>>>>> 3*sr points long. And so on.
>>>>>>>>>>>>>
>>>>>>>>>>>>> Victor
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> On 14 May 2010, at 22:27, Josh Brown wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Yes, I want something similar to this only with a rest  
>>>>>>>>>>>>>> of say, 1
>>>>>>>>>>>>>> second, in-between each repeat. Of course I could edit  
>>>>>>>>>>>>>> the file
>>>>>>>>>>>>>> "flutec3.wav" manually and add the silence myself but I  
>>>>>>>>>>>>>> would
>>>>>>>>>>>>>> prefer
>>>>>>>>>>>>>> to use csound.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> ----------------------------------------
>>>>>>>>>>>>>>> From: Victor.Lazzarini@nuim.ie
>>>>>>>>>>>>>>> To: csound-devel@lists.sourceforge.net
>>>>>>>>>>>>>>> Date: Fri, 14 May 2010 22:13:31 +0100
>>>>>>>>>>>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Here's an example that does what you want. Use this  
>>>>>>>>>>>>>>> file with it
>>>>>>>>>>>>>>> http://music.nuim.ie/music/sites/cpaneltest.nuim.ie.music/files/music/flutec3.wav
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> (or any file less than 10 sec long)
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> -odac
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> 0dbfs = 1
>>>>>>>>>>>>>>> nchnls=1
>>>>>>>>>>>>>>> ksmps =32
>>>>>>>>>>>>>>> instr 1
>>>>>>>>>>>>>>> a1 flooper2 0.5, 1, 0, 10, 1, 1
>>>>>>>>>>>>>>> out a1
>>>>>>>>>>>>>>> endin
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> f1 0 -441000 1 "flutec3.wav" 0 0 1
>>>>>>>>>>>>>>> i1 0 60
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> On 14 May 2010, at 21:54, Josh Brown wrote:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> I fear the solution to this will be incredibly  
>>>>>>>>>>>>>>>> complex. I'm not
>>>>>>>>>>>>>>>> skilled in the art of csound and thus far, all my  
>>>>>>>>>>>>>>>> attempts have
>>>>>>>>>>>>>>>> failed. Looking at flooper, lposcil and many of the  
>>>>>>>>>>>>>>>> other loop
>>>>>>>>>>>>>>>> based
>>>>>>>>>>>>>>>> opcodes - they do not allow for a pause or gap  
>>>>>>>>>>>>>>>> inbetween.
>>>>>>>>>>>>>>>> I have tried extending the size of the function table  
>>>>>>>>>>>>>>>> but this
>>>>>>>>>>>>>>>> did
>>>>>>>>>>>>>>>> not allow me to make my sample smaller, with a gap  
>>>>>>>>>>>>>>>> inbetween. I
>>>>>>>>>>>>>>>> tried getting a oscillator in synch with conditionals  
>>>>>>>>>>>>>>>> to
>>>>>>>>>>>>>>>> create a
>>>>>>>>>>>>>>>> drop in the amplitude but this did not help. Finally,  
>>>>>>>>>>>>>>>> I looked
>>>>>>>>>>>>>>>> briefly at looping my sample within the score but  
>>>>>>>>>>>>>>>> couldn't
>>>>>>>>>>>>>>>> find an
>>>>>>>>>>>>>>>> opcode which lets me change the start and end points,  
>>>>>>>>>>>>>>>> whilst
>>>>>>>>>>>>>>>> playing
>>>>>>>>>>>>>>>> the sample once.
>>>>>>>>>>>>>>>> -------------------------------------------------
>>>>>>>>>>>>>>>>> From: rorywalsh@ear.ie
>>>>>>>>>>>>>>>>> Date: Fri, 14 May 2010 21:27:02 +0100
>>>>>>>>>>>>>>>>> To: csound-devel@lists.sourceforge.net
>>>>>>>>>>>>>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> This should be quite possible with the current  
>>>>>>>>>>>>>>>>> opcodes, even
>>>>>>>>>>>>>>>>> with
>>>>>>>>>>>>>>>>> tab
>>>>>>>>>>>>>>>>> and tabw, perhaps if you explain to us how you tried  
>>>>>>>>>>>>>>>>> going
>>>>>>>>>>>>>>>>> about it
>>>>>>>>>>>>>>>>> we
>>>>>>>>>>>>>>>>> could help?
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> On 14 May 2010 21:16, Josh Brown wrote:
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Please make a opcode which allows me to loop  
>>>>>>>>>>>>>>>>>> sampled sound
>>>>>>>>>>>>>>>>>> from a
>>>>>>>>>>>>>>>>>> function table with a pause in-between each cycle.  
>>>>>>>>>>>>>>>>>> Something
>>>>>>>>>>>>>>>>>> like
>>>>>>>>>>>>>>>>>> lposcil but with a gap of a specified length which  
>>>>>>>>>>>>>>>>>> can be
>>>>>>>>>>>>>>>>>> changed
>>>>>>>>>>>>>>>>>> at performance time.
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> I am having difficulties in achieving this with the  
>>>>>>>>>>>>>>>>>> current
>>>>>>>>>>>>>>>>>> opcodes.
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Cheers,
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Josh
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> _________________________________________________________________
>>>>>>>>>>>>>>>>>> http://clk.atdmt.com/UKM/go/195013117/direct/01/
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> _________________________________________________________________
>>>>>>>>>>>>>>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>>>>>>>>>>>>>>> Do you have a story that started on Hotmail? Tell us  
>>>>>>>>>>>>>>>> now
>>>>>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound- 
>>>>>>>>>>>>>>> devel
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> _________________________________________________________________
>>>>>>>>>>>>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>>>>>>>>>>>>> We want to hear all your funny, exciting and crazy  
>>>>>>>>>>>>>> Hotmail
>>>>>>>>>>>>>> stories.
>>>>>>>>>>>>>> Tell us now
>>>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>>>
>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>>
>>>>>>>>>>>> _________________________________________________________________
>>>>>>>>>>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>>>>>>>>>>> Do you have a story that started on Hotmail? Tell us now
>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>>
>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>
>>>>>>>>>>> _______________________________________________
>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>
>>>>>>>>>> _________________________________________________________________
>>>>>>>>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>>>>>>>>> We want to hear all your funny, exciting and crazy Hotmail  
>>>>>>>>>> stories.
>>>>>>>>>> Tell us now
>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>
>>>>>>>>>> _______________________________________________
>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>
>>>>>>>>> _______________________________________________
>>>>>>>>> Csound-devel mailing list
>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>
>>>>>>>> _________________________________________________________________
>>>>>>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>>>>>>> We want to hear all your funny, exciting and crazy Hotmail  
>>>>>>>> stories. Tell us now
>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> Csound-devel mailing list
>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>
>>>>>>>
>>>>>>> ------------------------------------------------------------------------------
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Csound-devel mailing list
>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>
>>>>>> _________________________________________________________________
>>>>>> http://clk.atdmt.com/UKM/go/195013117/direct/01/
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>>
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>>
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>> _________________________________________________________________
>>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>>> Do you have a story that started on Hotmail? Tell us now
>>>> ------------------------------------------------------------------------------
>>>>
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>
>>> ------------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>> _________________________________________________________________
>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>> Do you have a story that started on Hotmail? Tell us now
>> ------------------------------------------------------------------------------
>>
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------

_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-05-16 22:34
FromOeyvind Brandtsegg
SubjectRe: [Cs-dev] loop with a pause inbetween
thanks ;-)

2010/5/16 Dr. Richard Boulanger :
> Wonderful instrument Oeyvind.
>
> Thanks for working on it and sharing with all of us.
>
> Dr. B.
>
>
> On May 16, 2010, at 4:39 PM, Oeyvind Brandtsegg wrote:
>
>> ah, ok, I had done
>> ilength               = ftlen(giSample)/sr
>> but should have been
>> ilength               tableng giSamplePow
>> ilength               = ilength/sr
>>
>> ... to take into account the larger ftable when converting the table
>> to pow-of-two size
>>
>> instr 2 should now look like this:
>>
>> ilength               tableng giSamplePow
>> ilength               = ilength/sr
>> doLoop:
>> iskiptime     = 1
>> istartSeconds = 0
>> iendSeconds = 2
>> istart =  istartSeconds / ilength
>> iend =  iendSeconds / ilength
>>
>> ilen = iendSeconds - istartSeconds
>> andx            linseg  istart, ilen, iend, iskiptime, iend
>> a1            tablei  andx, giSamplePow, 1
>> ktime         line 0, ilen+iskiptime, 1
>> if ktime < 1 kgoto done
>> reinit doLoop
>> done:
>>               outs a1, a1
>>
>> best
>> Oeyvind
>>
>> 2010/5/16 Josh Brown :
>>>
>>> It's all code you have written but I will post a link anyway: http://www.joshyyy.com/loopwithskip.html
>>>
>>> ----------------------------------------
>>>> Date: Sun, 16 May 2010 21:36:11 +0200
>>>> From: obrandts@gmail.com
>>>> To: csound-devel@lists.sourceforge.net
>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>
>>>> You could zip you csd with the soundfile and upload it somewhere
>>>> so we
>>>> can test it,
>>>> or (just a shot in the dark) try ilen*0.5
>>>>
>>>> also remember to put iend as the last argument to linseg (not 1)
>>>>
>>>> andx linseg istart, ilen*0.5, iend, iskiptime, iend
>>>>
>>>> Oeyvind
>>>>
>>>> 2010/5/16 Josh Brown :
>>>>>
>>>>> I tried this:
>>>>>
>>>>> ilen = iend - istart
>>>>> andx            linseg  istart, ilen, iend, iskiptime, 1
>>>>>
>>>>> ... but it still played fast with a higher pitch. Still no luck
>>>>> with this,
>>>>>
>>>>> Josh
>>>>>
>>>>> ----------------------------------------
>>>>>> Date: Sun, 16 May 2010 14:34:45 +0200
>>>>>> From: obrandts@gmail.com
>>>>>> To: csound-devel@lists.sourceforge.net
>>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>>
>>>>>> ah, you probably need to adjust ilength in the andx line to
>>>>>> reflect
>>>>>> the actual duration from istartSeconds iendSeconds, instead of
>>>>>> reflecting the duration of the whole sample.
>>>>>> Oeyvind
>>>>>>
>>>>>> 2010/5/15 Josh Brown :
>>>>>>>
>>>>>>> Thank you, this worked well. Do you know why the speed and
>>>>>>> pitch is higher than expected?
>>>>>>>
>>>>>>> ----------------------------------------
>>>>>>>> Date: Sat, 15 May 2010 15:15:44 +0200
>>>>>>>> From: obrandts@gmail.com
>>>>>>>> To: csound-devel@lists.sourceforge.net
>>>>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>>>>
>>>>>>>> As the sound is read from table, indexed by the linseg (or
>>>>>>>> phasor in
>>>>>>>> Victors example),
>>>>>>>> you just need to change the range of the index generator.
>>>>>>>>
>>>>>>>> e.g. change this:
>>>>>>>> andx linseg 0, ilength, 1, iskiptime, 1
>>>>>>>>
>>>>>>>> to:
>>>>>>>> istartSeconds = 0.5
>>>>>>>> iendSeconds = 2.5
>>>>>>>> istart = istartSeconds / ilength
>>>>>>>> iend = iendSeconds / ilength
>>>>>>>> andx linseg istart, ilength, iend, iskiptime, 1
>>>>>>>>
>>>>>>>> I haven't tested this code, but suppose it should just work.
>>>>>>>> Oeyvind
>>>>>>>>
>>>>>>>> 2010/5/15 Josh Brown :
>>>>>>>>>
>>>>>>>>> This works ok but I need to be able to change the start and
>>>>>>>>> end points.
>>>>>>>>>
>>>>>>>>> ----------------------------------------
>>>>>>>>>> From: Victor.Lazzarini@nuim.ie
>>>>>>>>>> To: csound-devel@lists.sourceforge.net
>>>>>>>>>> Date: Fri, 14 May 2010 23:50:01 +0100
>>>>>>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>>>>>>
>>>>>>>>>> In that case, maybe this is the answer, a gating/envelope
>>>>>>>>>> instrument.
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> -odac
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> 0dbfs = 1
>>>>>>>>>> nchnls=1
>>>>>>>>>> ksmps =32
>>>>>>>>>> instr 1
>>>>>>>>>> kgapsize line 1, p3, 2
>>>>>>>>>> a1 phasor sr/ftlen(1)
>>>>>>>>>> asig tab a1, 1, 1
>>>>>>>>>> aenv table a1*kgapsize,2,1
>>>>>>>>>> out asig*aenv
>>>>>>>>>> endin
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> f2 0 1024 7 1 512 1 1 0 512 0
>>>>>>>>>> f1 0 -44100 1 "flutec3.wav" 0 0 1
>>>>>>>>>> i1 0 15
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On 14 May 2010, at 23:13, Josh Brown wrote:
>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> I could but I'm using a drum loop... It's such a shame
>>>>>>>>>>> there isn't
>>>>>>>>>>> an opcode for this! It would be great for live sampling.
>>>>>>>>>>>
>>>>>>>>>>> Josh
>>>>>>>>>>>
>>>>>>>>>>> ----------------------------------------
>>>>>>>>>>>> From: Victor.Lazzarini@nuim.ie
>>>>>>>>>>>> To: csound-devel@lists.sourceforge.net
>>>>>>>>>>>> Date: Fri, 14 May 2010 23:07:55 +0100
>>>>>>>>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>>>>>>>>
>>>>>>>>>>>> you can start the loop a little later and keep the end of
>>>>>>>>>>>> the loop at
>>>>>>>>>>>> the end of the table.
>>>>>>>>>>>>
>>>>>>>>>>>> Victor
>>>>>>>>>>>> On 14 May 2010, at 22:56, Josh Brown wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> Sorry, I see what you mean now ... but there is still a
>>>>>>>>>>>>> problem. Say
>>>>>>>>>>>>> if I wanted to shorten the clip to 5 seconds. Like so:
>>>>>>>>>>>>>
>>>>>>>>>>>>> a1 flooper2 0.5, 1, 0, 5, 1, 1
>>>>>>>>>>>>>
>>>>>>>>>>>>> I wouldn't be able to add the silence because the rest of
>>>>>>>>>>>>> the table
>>>>>>>>>>>>> wouldn't be empty.
>>>>>>>>>>>>> ----------------------------------------
>>>>>>>>>>>>>> From: Victor.Lazzarini@nuim.ie
>>>>>>>>>>>>>> To: csound-devel@lists.sourceforge.net
>>>>>>>>>>>>>> Date: Fri, 14 May 2010 22:53:15 +0100
>>>>>>>>>>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> No, you don't need to edit the file. All you need is to
>>>>>>>>>>>>>> make your
>>>>>>>>>>>>>> table long enough to accommodate your file and
>>>>>>>>>>>>>> the rest. That is what I did in that example.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Say your file is 2 secs and you want a 1 sec rest. Make
>>>>>>>>>>>>>> the table
>>>>>>>>>>>>>> 3*sr points long. And so on.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Victor
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On 14 May 2010, at 22:27, Josh Brown wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Yes, I want something similar to this only with a rest
>>>>>>>>>>>>>>> of say, 1
>>>>>>>>>>>>>>> second, in-between each repeat. Of course I could edit
>>>>>>>>>>>>>>> the file
>>>>>>>>>>>>>>> "flutec3.wav" manually and add the silence myself but I
>>>>>>>>>>>>>>> would
>>>>>>>>>>>>>>> prefer
>>>>>>>>>>>>>>> to use csound.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> ----------------------------------------
>>>>>>>>>>>>>>>> From: Victor.Lazzarini@nuim.ie
>>>>>>>>>>>>>>>> To: csound-devel@lists.sourceforge.net
>>>>>>>>>>>>>>>> Date: Fri, 14 May 2010 22:13:31 +0100
>>>>>>>>>>>>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Here's an example that does what you want. Use this
>>>>>>>>>>>>>>>> file with it
>>>>>>>>>>>>>>>> http://music.nuim.ie/music/sites/cpaneltest.nuim.ie.music/files/music/flutec3.wav
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> (or any file less than 10 sec long)
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> -odac
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> 0dbfs = 1
>>>>>>>>>>>>>>>> nchnls=1
>>>>>>>>>>>>>>>> ksmps =32
>>>>>>>>>>>>>>>> instr 1
>>>>>>>>>>>>>>>> a1 flooper2 0.5, 1, 0, 10, 1, 1
>>>>>>>>>>>>>>>> out a1
>>>>>>>>>>>>>>>> endin
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> f1 0 -441000 1 "flutec3.wav" 0 0 1
>>>>>>>>>>>>>>>> i1 0 60
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> On 14 May 2010, at 21:54, Josh Brown wrote:
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> I fear the solution to this will be incredibly
>>>>>>>>>>>>>>>>> complex. I'm not
>>>>>>>>>>>>>>>>> skilled in the art of csound and thus far, all my
>>>>>>>>>>>>>>>>> attempts have
>>>>>>>>>>>>>>>>> failed. Looking at flooper, lposcil and many of the
>>>>>>>>>>>>>>>>> other loop
>>>>>>>>>>>>>>>>> based
>>>>>>>>>>>>>>>>> opcodes - they do not allow for a pause or gap
>>>>>>>>>>>>>>>>> inbetween.
>>>>>>>>>>>>>>>>> I have tried extending the size of the function table
>>>>>>>>>>>>>>>>> but this
>>>>>>>>>>>>>>>>> did
>>>>>>>>>>>>>>>>> not allow me to make my sample smaller, with a gap
>>>>>>>>>>>>>>>>> inbetween. I
>>>>>>>>>>>>>>>>> tried getting a oscillator in synch with conditionals
>>>>>>>>>>>>>>>>> to
>>>>>>>>>>>>>>>>> create a
>>>>>>>>>>>>>>>>> drop in the amplitude but this did not help. Finally,
>>>>>>>>>>>>>>>>> I looked
>>>>>>>>>>>>>>>>> briefly at looping my sample within the score but
>>>>>>>>>>>>>>>>> couldn't
>>>>>>>>>>>>>>>>> find an
>>>>>>>>>>>>>>>>> opcode which lets me change the start and end points,
>>>>>>>>>>>>>>>>> whilst
>>>>>>>>>>>>>>>>> playing
>>>>>>>>>>>>>>>>> the sample once.
>>>>>>>>>>>>>>>>> -------------------------------------------------
>>>>>>>>>>>>>>>>>> From: rorywalsh@ear.ie
>>>>>>>>>>>>>>>>>> Date: Fri, 14 May 2010 21:27:02 +0100
>>>>>>>>>>>>>>>>>> To: csound-devel@lists.sourceforge.net
>>>>>>>>>>>>>>>>>> Subject: Re: [Cs-dev] loop with a pause inbetween
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> This should be quite possible with the current
>>>>>>>>>>>>>>>>>> opcodes, even
>>>>>>>>>>>>>>>>>> with
>>>>>>>>>>>>>>>>>> tab
>>>>>>>>>>>>>>>>>> and tabw, perhaps if you explain to us how you tried
>>>>>>>>>>>>>>>>>> going
>>>>>>>>>>>>>>>>>> about it
>>>>>>>>>>>>>>>>>> we
>>>>>>>>>>>>>>>>>> could help?
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> On 14 May 2010 21:16, Josh Brown wrote:
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> Please make a opcode which allows me to loop
>>>>>>>>>>>>>>>>>>> sampled sound
>>>>>>>>>>>>>>>>>>> from a
>>>>>>>>>>>>>>>>>>> function table with a pause in-between each cycle.
>>>>>>>>>>>>>>>>>>> Something
>>>>>>>>>>>>>>>>>>> like
>>>>>>>>>>>>>>>>>>> lposcil but with a gap of a specified length which
>>>>>>>>>>>>>>>>>>> can be
>>>>>>>>>>>>>>>>>>> changed
>>>>>>>>>>>>>>>>>>> at performance time.
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> I am having difficulties in achieving this with the
>>>>>>>>>>>>>>>>>>> current
>>>>>>>>>>>>>>>>>>> opcodes.
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> Cheers,
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> Josh
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> _________________________________________________________________
>>>>>>>>>>>>>>>>>>> http://clk.atdmt.com/UKM/go/195013117/direct/01/
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> _________________________________________________________________
>>>>>>>>>>>>>>>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>>>>>>>>>>>>>>>> Do you have a story that started on Hotmail? Tell us
>>>>>>>>>>>>>>>>> now
>>>>>>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-
>>>>>>>>>>>>>>>> devel
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> _________________________________________________________________
>>>>>>>>>>>>>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>>>>>>>>>>>>>> We want to hear all your funny, exciting and crazy
>>>>>>>>>>>>>>> Hotmail
>>>>>>>>>>>>>>> stories.
>>>>>>>>>>>>>>> Tell us now
>>>>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>>>
>>>>>>>>>>>>> _________________________________________________________________
>>>>>>>>>>>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>>>>>>>>>>>> Do you have a story that started on Hotmail? Tell us now
>>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>>>
>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>>
>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>
>>>>>>>>>>> _________________________________________________________________
>>>>>>>>>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>>>>>>>>>> We want to hear all your funny, exciting and crazy Hotmail
>>>>>>>>>>> stories.
>>>>>>>>>>> Tell us now
>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>
>>>>>>>>>>> _______________________________________________
>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>
>>>>>>>>>> _______________________________________________
>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>
>>>>>>>>> _________________________________________________________________
>>>>>>>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>>>>>>>> We want to hear all your funny, exciting and crazy Hotmail
>>>>>>>>> stories. Tell us now
>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>
>>>>>>>>> _______________________________________________
>>>>>>>>> Csound-devel mailing list
>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>
>>>>>>>>
>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> Csound-devel mailing list
>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>
>>>>>>> _________________________________________________________________
>>>>>>> http://clk.atdmt.com/UKM/go/195013117/direct/01/
>>>>>>>
>>>>>>> ------------------------------------------------------------------------------
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Csound-devel mailing list
>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>>
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>
>>>>> _________________________________________________________________
>>>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>>>> Do you have a story that started on Hotmail? Tell us now
>>>>> ------------------------------------------------------------------------------
>>>>>
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>>
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>> _________________________________________________________________
>>> http://clk.atdmt.com/UKM/go/197222280/direct/01/
>>> Do you have a story that started on Hotmail? Tell us now
>>> ------------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>
>> ------------------------------------------------------------------------------
>>
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------

_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net