Csound Csound-dev Csound-tekno Search About

[Csnd] best way to jump in a song

Date2011-11-24 18:33
FromMichele Nasti
Subject[Csnd] best way to jump in a song
Hi there, I resolved my problems with the loop. 
suppose I have a song loaded in a Functon Table. 
Suppose that I want to dinamically change the start of the song in this piece. My problem is, if I'm playing a song, I want to jump to a specified second of the song and play from there. 

there should be a variable "gkCurrentPosition", and if I change it (via chnget) , I should hear the change. 
Suggestions? what is the best code? 

Michele 

Date2011-11-24 18:37
Frompeiman khosravi
SubjectRe: [Csnd] best way to jump in a song
that shouldn't be a problem but depends on the method you're using to
read the table. If you post this part of your CSD I can give some
suggestions.

P

On 24 November 2011 18:33, Michele Nasti  wrote:
> Hi there, I resolved my problems with the loop.
> suppose I have a song loaded in a Functon Table.
> Suppose that I want to dinamically change the start of the song in this
> piece. My problem is, if I'm playing a song, I want to jump to a specified
> second of the song and play from there.
> there should be a variable "gkCurrentPosition", and if I change it (via
> chnget) , I should hear the change.
> Suggestions? what is the best code?
> Michele


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2011-11-24 18:37
FromRory Walsh
SubjectRe: [Csnd] best way to jump in a song
If you have a song in a function table you can jump to whatever point
you like using a table opcode which allows direct indexing?


On 24 November 2011 18:33, Michele Nasti  wrote:
> Hi there, I resolved my problems with the loop.
> suppose I have a song loaded in a Functon Table.
> Suppose that I want to dinamically change the start of the song in this
> piece. My problem is, if I'm playing a song, I want to jump to a specified
> second of the song and play from there.
> there should be a variable "gkCurrentPosition", and if I change it (via
> chnget) , I should hear the change.
> Suggestions? what is the best code?
> Michele


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2011-11-24 19:13
FromMichele Nasti
SubjectRe: [Csnd] best way to jump in a song
This is part of my code: 

<CsInstruments>

gifil0 ftgen 0, 0, 0, 1, "/home/michele/Dropbox/Anonimo-GiochiProibiti/GioPro01.aif", 0, 0, 1


;general values for the pvstanal opcode

giamp = 1 ;amplitude scaling

gipitch = 1 ;pitch scaling

gidet = 0 ;onset detection

giwrap = 0 ;no loop reading

giskip = 0 ;start at the beginning

gifftsiz = 1024 ;fft size

giovlp = gifftsiz/8 ;overlap size

githresh = 0 ;threshold



instr 1


kvol0 = 1;

kstretch = 1;



fsig0 pvstanal kstretch, giamp, gipitch, gifil0, gidet, giwrap, giskip, gifftsiz, giovlp, githresh

aout0 pvsynth fsig0


outch 1, aout0*kvol0,

endin


</CsInstruments>

<CsScore>

i 1 0 3600

</CsScore>


2011/11/24 Rory Walsh <rorywalsh@ear.ie>
If you have a song in a function table you can jump to whatever point
you like using a table opcode which allows direct indexing?


On 24 November 2011 18:33, Michele Nasti <michele.nasti@gmail.com> wrote:
> Hi there, I resolved my problems with the loop.
> suppose I have a song loaded in a Functon Table.
> Suppose that I want to dinamically change the start of the song in this
> piece. My problem is, if I'm playing a song, I want to jump to a specified
> second of the song and play from there.
> there should be a variable "gkCurrentPosition", and if I change it (via
> chnget) , I should hear the change.
> Suggestions? what is the best code?
> Michele


Send bugs reports to the Sourceforge bug tracker
           https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"



Date2011-11-24 19:25
Frompeiman khosravi
SubjectRe: [Csnd] best way to jump in a song
OK then just re-initiate the instrument using something like this:


ktrig           changed     koffset
if ktrig = 1 then
                reinit      pass
endif

pass:

ioffset = i(koffset)

;your code here:
;fsig pvstanal ktimescal, kamp, kpitch, ktab, kdetect, kwrap, ioffset


Best,

Peiman


On 24 November 2011 19:13, Michele Nasti  wrote:
> This is part of my code:
>
> 
>
> gifil0 ftgen 0, 0, 0, 1,
> "/home/michele/Dropbox/Anonimo-GiochiProibiti/GioPro01.aif", 0, 0, 1
>
> ;general values for the pvstanal opcode
>
> giamp = 1 ;amplitude scaling
>
> gipitch = 1 ;pitch scaling
>
> gidet = 0 ;onset detection
>
> giwrap = 0 ;no loop reading
>
> giskip = 0 ;start at the beginning
>
> gifftsiz = 1024 ;fft size
>
> giovlp = gifftsiz/8 ;overlap size
>
> githresh = 0 ;threshold
>
> instr 1
>
> kvol0 = 1;
>
> kstretch = 1;
>
> fsig0 pvstanal kstretch, giamp, gipitch, gifil0, gidet, giwrap, giskip,
> gifftsiz, giovlp, githresh
>
> aout0 pvsynth fsig0
>
> outch 1, aout0*kvol0,
>
> endin
>
> 
>
> 
>
> i 1 0 3600
>
> 
>
> 2011/11/24 Rory Walsh 
>>
>> If you have a song in a function table you can jump to whatever point
>> you like using a table opcode which allows direct indexing?
>>
>>
>> On 24 November 2011 18:33, Michele Nasti  wrote:
>> > Hi there, I resolved my problems with the loop.
>> > suppose I have a song loaded in a Functon Table.
>> > Suppose that I want to dinamically change the start of the song in this
>> > piece. My problem is, if I'm playing a song, I want to jump to a
>> > specified
>> > second of the song and play from there.
>> > there should be a variable "gkCurrentPosition", and if I change it (via
>> > chnget) , I should hear the change.
>> > Suggestions? what is the best code?
>> > Michele
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>>
>
>


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


Date2011-11-25 09:53
Frompeiman khosravi
SubjectRe: [Csnd] best way to jump in a song
But note that you probably don't want to define your table in the
"pass" section but either globally or earlier in the same instrument.
Otherwise the table will be recreated every time you jump, which is
unnecessary.

Best,

P

On 24 November 2011 19:25, peiman khosravi  wrote:
> OK then just re-initiate the instrument using something like this:
>
>
> ktrig           changed     koffset
> if ktrig = 1 then
>                reinit      pass
> endif
>
> pass:
>
> ioffset = i(koffset)
>
> ;your code here:
> ;fsig pvstanal ktimescal, kamp, kpitch, ktab, kdetect, kwrap, ioffset
>
>
> Best,
>
> Peiman
>
>
> On 24 November 2011 19:13, Michele Nasti  wrote:
>> This is part of my code:
>>
>> 
>>
>> gifil0 ftgen 0, 0, 0, 1,
>> "/home/michele/Dropbox/Anonimo-GiochiProibiti/GioPro01.aif", 0, 0, 1
>>
>> ;general values for the pvstanal opcode
>>
>> giamp = 1 ;amplitude scaling
>>
>> gipitch = 1 ;pitch scaling
>>
>> gidet = 0 ;onset detection
>>
>> giwrap = 0 ;no loop reading
>>
>> giskip = 0 ;start at the beginning
>>
>> gifftsiz = 1024 ;fft size
>>
>> giovlp = gifftsiz/8 ;overlap size
>>
>> githresh = 0 ;threshold
>>
>> instr 1
>>
>> kvol0 = 1;
>>
>> kstretch = 1;
>>
>> fsig0 pvstanal kstretch, giamp, gipitch, gifil0, gidet, giwrap, giskip,
>> gifftsiz, giovlp, githresh
>>
>> aout0 pvsynth fsig0
>>
>> outch 1, aout0*kvol0,
>>
>> endin
>>
>> 
>>
>> 
>>
>> i 1 0 3600
>>
>> 
>>
>> 2011/11/24 Rory Walsh 
>>>
>>> If you have a song in a function table you can jump to whatever point
>>> you like using a table opcode which allows direct indexing?
>>>
>>>
>>> On 24 November 2011 18:33, Michele Nasti  wrote:
>>> > Hi there, I resolved my problems with the loop.
>>> > suppose I have a song loaded in a Functon Table.
>>> > Suppose that I want to dinamically change the start of the song in this
>>> > piece. My problem is, if I'm playing a song, I want to jump to a
>>> > specified
>>> > second of the song and play from there.
>>> > there should be a variable "gkCurrentPosition", and if I change it (via
>>> > chnget) , I should hear the change.
>>> > Suggestions? what is the best code?
>>> > Michele
>>>
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>> csound"
>>>
>>
>>
>


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


Date2011-11-25 16:40
FromMichele Nasti
SubjectRe: [Csnd] best way to jump in a song
Thanks ! If I don't ask I will never discover this opcodes. 

more difficoult question ... what if I want to change also the ending point? 
I thought that I can delete the old function table and create a new one : 

isize = (iend - istart)*sr 
ftfree gir; 
gir ftgen 0, itime, isize, 1, "filename.ogg", istart, 0, 0

but this requires at least 1 second, and I need something faster and easier: the "iend" parameter is dynamic.
Ideas?

2011/11/25 peiman khosravi <peimankhosravi@gmail.com>
But note that you probably don't want to define your table in the
"pass" section but either globally or earlier in the same instrument.
Otherwise the table will be recreated every time you jump, which is
unnecessary.

Best,

P

On 24 November 2011 19:25, peiman khosravi <peimankhosravi@gmail.com> wrote:
> OK then just re-initiate the instrument using something like this:
>
>
> ktrig           changed     koffset
> if ktrig = 1 then
>                reinit      pass
> endif
>
> pass:
>
> ioffset = i(koffset)
>
> ;your code here:
> ;fsig pvstanal ktimescal, kamp, kpitch, ktab, kdetect, kwrap, ioffset
>
>
> Best,
>
> Peiman
>
>
> On 24 November 2011 19:13, Michele Nasti <michele.nasti@gmail.com> wrote:
>> This is part of my code:
>>
>> <CsInstruments>
>>
>> gifil0 ftgen 0, 0, 0, 1,
>> "/home/michele/Dropbox/Anonimo-GiochiProibiti/GioPro01.aif", 0, 0, 1
>>
>> ;general values for the pvstanal opcode
>>
>> giamp = 1 ;amplitude scaling
>>
>> gipitch = 1 ;pitch scaling
>>
>> gidet = 0 ;onset detection
>>
>> giwrap = 0 ;no loop reading
>>
>> giskip = 0 ;start at the beginning
>>
>> gifftsiz = 1024 ;fft size
>>
>> giovlp = gifftsiz/8 ;overlap size
>>
>> githresh = 0 ;threshold
>>
>> instr 1
>>
>> kvol0 = 1;
>>
>> kstretch = 1;
>>
>> fsig0 pvstanal kstretch, giamp, gipitch, gifil0, gidet, giwrap, giskip,
>> gifftsiz, giovlp, githresh
>>
>> aout0 pvsynth fsig0
>>
>> outch 1, aout0*kvol0,
>>
>> endin
>>
>> </CsInstruments>
>>
>> <CsScore>
>>
>> i 1 0 3600
>>
>> </CsScore>
>>
>> 2011/11/24 Rory Walsh <rorywalsh@ear.ie>
>>>
>>> If you have a song in a function table you can jump to whatever point
>>> you like using a table opcode which allows direct indexing?
>>>
>>>
>>> On 24 November 2011 18:33, Michele Nasti <michele.nasti@gmail.com> wrote:
>>> > Hi there, I resolved my problems with the loop.
>>> > suppose I have a song loaded in a Functon Table.
>>> > Suppose that I want to dinamically change the start of the song in this
>>> > piece. My problem is, if I'm playing a song, I want to jump to a
>>> > specified
>>> > second of the song and play from there.
>>> > there should be a variable "gkCurrentPosition", and if I change it (via
>>> > chnget) , I should hear the change.
>>> > Suggestions? what is the best code?
>>> > Michele
>>>
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>> csound"
>>>
>>
>>
>


Send bugs reports to the Sourceforge bug tracker
           https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"



Date2011-11-25 17:16
Frompeiman khosravi
SubjectRe: [Csnd] best way to jump in a song
On 25 November 2011 16:40, Michele Nasti  wrote:
> Thanks ! If I don't ask I will never discover this opcodes.

That's what the list is for :-)

> more difficoult question ... what if I want to change also the ending
> point?

With pvstanal th eonly other option I can think of is having two
tables. reading the file in the new table and then changing the table
number dynamically. Still this will take time and won't be immediate.
Maybe Victor can add a loopend variable to the opcode?

P

> I thought that I can delete the old function table and create a new one :
> isize = (iend - istart)*sr
> ftfree gir;
> gir ftgen 0, itime, isize, 1, "filename.ogg", istart, 0, 0
> but this requires at least 1 second, and I need something faster and easier:
> the "iend" parameter is dynamic.
> Ideas?
> 2011/11/25 peiman khosravi 
>>
>> But note that you probably don't want to define your table in the
>> "pass" section but either globally or earlier in the same instrument.
>> Otherwise the table will be recreated every time you jump, which is
>> unnecessary.
>>
>> Best,
>>
>> P
>>
>> On 24 November 2011 19:25, peiman khosravi 
>> wrote:
>> > OK then just re-initiate the instrument using something like this:
>> >
>> >
>> > ktrig           changed     koffset
>> > if ktrig = 1 then
>> >                reinit      pass
>> > endif
>> >
>> > pass:
>> >
>> > ioffset = i(koffset)
>> >
>> > ;your code here:
>> > ;fsig pvstanal ktimescal, kamp, kpitch, ktab, kdetect, kwrap, ioffset
>> >
>> >
>> > Best,
>> >
>> > Peiman
>> >
>> >
>> > On 24 November 2011 19:13, Michele Nasti 
>> > wrote:
>> >> This is part of my code:
>> >>
>> >> 
>> >>
>> >> gifil0 ftgen 0, 0, 0, 1,
>> >> "/home/michele/Dropbox/Anonimo-GiochiProibiti/GioPro01.aif", 0, 0, 1
>> >>
>> >> ;general values for the pvstanal opcode
>> >>
>> >> giamp = 1 ;amplitude scaling
>> >>
>> >> gipitch = 1 ;pitch scaling
>> >>
>> >> gidet = 0 ;onset detection
>> >>
>> >> giwrap = 0 ;no loop reading
>> >>
>> >> giskip = 0 ;start at the beginning
>> >>
>> >> gifftsiz = 1024 ;fft size
>> >>
>> >> giovlp = gifftsiz/8 ;overlap size
>> >>
>> >> githresh = 0 ;threshold
>> >>
>> >> instr 1
>> >>
>> >> kvol0 = 1;
>> >>
>> >> kstretch = 1;
>> >>
>> >> fsig0 pvstanal kstretch, giamp, gipitch, gifil0, gidet, giwrap, giskip,
>> >> gifftsiz, giovlp, githresh
>> >>
>> >> aout0 pvsynth fsig0
>> >>
>> >> outch 1, aout0*kvol0,
>> >>
>> >> endin
>> >>
>> >> 
>> >>
>> >> 
>> >>
>> >> i 1 0 3600
>> >>
>> >> 
>> >>
>> >> 2011/11/24 Rory Walsh 
>> >>>
>> >>> If you have a song in a function table you can jump to whatever point
>> >>> you like using a table opcode which allows direct indexing?
>> >>>
>> >>>
>> >>> On 24 November 2011 18:33, Michele Nasti 
>> >>> wrote:
>> >>> > Hi there, I resolved my problems with the loop.
>> >>> > suppose I have a song loaded in a Functon Table.
>> >>> > Suppose that I want to dinamically change the start of the song in
>> >>> > this
>> >>> > piece. My problem is, if I'm playing a song, I want to jump to a
>> >>> > specified
>> >>> > second of the song and play from there.
>> >>> > there should be a variable "gkCurrentPosition", and if I change it
>> >>> > (via
>> >>> > chnget) , I should hear the change.
>> >>> > Suggestions? what is the best code?
>> >>> > Michele
>> >>>
>> >>>
>> >>> Send bugs reports to the Sourceforge bug tracker
>> >>>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> >>> Discussions of bugs and features can be posted here
>> >>> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>> >>> "unsubscribe
>> >>> csound"
>> >>>
>> >>
>> >>
>> >
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>>
>
>


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


Date2011-11-25 19:06
FromMichele Nasti
SubjectRe: [Csnd] best way to jump in a song
At the end I resolved in this way: when the loop is activated, I jump to instrument 2 that will use the mincer opcode (it can change start and stop dinamically) and I turn the instrument 1 down. If the loop is deactivated, I do the reverse: move from instrument 2 to instrument 1. 
I don't think this is the best option, but until now this is the only solution I have. I will use this code for a software for blind people, so I'll make it clear that if they activate the loop they have to press play again. 
If there is another solution please continue this thread! I'm learning a lot about csound from all of you. 
Michele 

2011/11/25 peiman khosravi <peimankhosravi@gmail.com>
On 25 November 2011 16:40, Michele Nasti <michele.nasti@gmail.com> wrote:
> Thanks ! If I don't ask I will never discover this opcodes.

That's what the list is for :-)

> more difficoult question ... what if I want to change also the ending
> point?

With pvstanal th eonly other option I can think of is having two
tables. reading the file in the new table and then changing the table
number dynamically. Still this will take time and won't be immediate.
Maybe Victor can add a loopend variable to the opcode?

P

> I thought that I can delete the old function table and create a new one :
> isize = (iend - istart)*sr
> ftfree gir;
> gir ftgen 0, itime, isize, 1, "filename.ogg", istart, 0, 0
> but this requires at least 1 second, and I need something faster and easier:
> the "iend" parameter is dynamic.
> Ideas?
> 2011/11/25 peiman khosravi <peimankhosravi@gmail.com>
>>
>> But note that you probably don't want to define your table in the
>> "pass" section but either globally or earlier in the same instrument.
>> Otherwise the table will be recreated every time you jump, which is
>> unnecessary.
>>
>> Best,
>>
>> P
>>
>> On 24 November 2011 19:25, peiman khosravi <peimankhosravi@gmail.com>
>> wrote:
>> > OK then just re-initiate the instrument using something like this:
>> >
>> >
>> > ktrig           changed     koffset
>> > if ktrig = 1 then
>> >                reinit      pass
>> > endif
>> >
>> > pass:
>> >
>> > ioffset = i(koffset)
>> >
>> > ;your code here:
>> > ;fsig pvstanal ktimescal, kamp, kpitch, ktab, kdetect, kwrap, ioffset
>> >
>> >
>> > Best,
>> >
>> > Peiman
>> >
>> >
>> > On 24 November 2011 19:13, Michele Nasti <michele.nasti@gmail.com>
>> > wrote:
>> >> This is part of my code:
>> >>
>> >> <CsInstruments>
>> >>
>> >> gifil0 ftgen 0, 0, 0, 1,
>> >> "/home/michele/Dropbox/Anonimo-GiochiProibiti/GioPro01.aif", 0, 0, 1
>> >>
>> >> ;general values for the pvstanal opcode
>> >>
>> >> giamp = 1 ;amplitude scaling
>> >>
>> >> gipitch = 1 ;pitch scaling
>> >>
>> >> gidet = 0 ;onset detection
>> >>
>> >> giwrap = 0 ;no loop reading
>> >>
>> >> giskip = 0 ;start at the beginning
>> >>
>> >> gifftsiz = 1024 ;fft size
>> >>
>> >> giovlp = gifftsiz/8 ;overlap size
>> >>
>> >> githresh = 0 ;threshold
>> >>
>> >> instr 1
>> >>
>> >> kvol0 = 1;
>> >>
>> >> kstretch = 1;
>> >>
>> >> fsig0 pvstanal kstretch, giamp, gipitch, gifil0, gidet, giwrap, giskip,
>> >> gifftsiz, giovlp, githresh
>> >>
>> >> aout0 pvsynth fsig0
>> >>
>> >> outch 1, aout0*kvol0,
>> >>
>> >> endin
>> >>
>> >> </CsInstruments>
>> >>
>> >> <CsScore>
>> >>
>> >> i 1 0 3600
>> >>
>> >> </CsScore>
>> >>
>> >> 2011/11/24 Rory Walsh <rorywalsh@ear.ie>
>> >>>
>> >>> If you have a song in a function table you can jump to whatever point
>> >>> you like using a table opcode which allows direct indexing?
>> >>>
>> >>>
>> >>> On 24 November 2011 18:33, Michele Nasti <michele.nasti@gmail.com>
>> >>> wrote:
>> >>> > Hi there, I resolved my problems with the loop.
>> >>> > suppose I have a song loaded in a Functon Table.
>> >>> > Suppose that I want to dinamically change the start of the song in
>> >>> > this
>> >>> > piece. My problem is, if I'm playing a song, I want to jump to a
>> >>> > specified
>> >>> > second of the song and play from there.
>> >>> > there should be a variable "gkCurrentPosition", and if I change it
>> >>> > (via
>> >>> > chnget) , I should hear the change.
>> >>> > Suggestions? what is the best code?
>> >>> > Michele
>> >>>
>> >>>
>> >>> Send bugs reports to the Sourceforge bug tracker
>> >>>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> >>> Discussions of bugs and features can be posted here
>> >>> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>> >>> "unsubscribe
>> >>> csound"
>> >>>
>> >>
>> >>
>> >
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>>
>
>


Send bugs reports to the Sourceforge bug tracker
           https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"



Date2011-11-26 11:20
Fromjoachim heintz
SubjectRe: [Csnd] best way to jump in a song
sorry, i didn't follow this thread from the beginning, but why don't you
stay at instrument 2? i'd think you then just have to organize the
atimpt parameter to do anything with different loops or without any loop.
	joachim


Am 25.11.2011 20:06, schrieb Michele Nasti:
> At the end I resolved in this way: when the loop is activated, I jump to
> instrument 2 that will use the mincer opcode (it can change start and
> stop dinamically) and I turn the instrument 1 down. If the loop is
> deactivated, I do the reverse: move from instrument 2 to instrument 1. 
> I don't think this is the best option, but until now this is the only
> solution I have. I will use this code for a software for blind people,
> so I'll make it clear that if they activate the loop they have to press
> play again. 
> If there is another solution please continue this thread! I'm learning a
> lot about csound from all of you. 
> Michele 
> 
> 2011/11/25 peiman khosravi  >
> 
>     On 25 November 2011 16:40, Michele Nasti      > wrote:
>     > Thanks ! If I don't ask I will never discover this opcodes.
> 
>     That's what the list is for :-)
> 
>     > more difficoult question ... what if I want to change also the ending
>     > point?
> 
>     With pvstanal th eonly other option I can think of is having two
>     tables. reading the file in the new table and then changing the table
>     number dynamically. Still this will take time and won't be immediate.
>     Maybe Victor can add a loopend variable to the opcode?
> 
>     P
> 
>     > I thought that I can delete the old function table and create a
>     new one :
>     > isize = (iend - istart)*sr
>     > ftfree gir;
>     > gir ftgen 0, itime, isize, 1, "filename.ogg", istart, 0, 0
>     > but this requires at least 1 second, and I need something faster
>     and easier:
>     > the "iend" parameter is dynamic.
>     > Ideas?
>     > 2011/11/25 peiman khosravi      >
>     >>
>     >> But note that you probably don't want to define your table in the
>     >> "pass" section but either globally or earlier in the same instrument.
>     >> Otherwise the table will be recreated every time you jump, which is
>     >> unnecessary.
>     >>
>     >> Best,
>     >>
>     >> P
>     >>
>     >> On 24 November 2011 19:25, peiman khosravi
>     >
>     >> wrote:
>     >> > OK then just re-initiate the instrument using something like this:
>     >> >
>     >> >
>     >> > ktrig           changed     koffset
>     >> > if ktrig = 1 then
>     >> >                reinit      pass
>     >> > endif
>     >> >
>     >> > pass:
>     >> >
>     >> > ioffset = i(koffset)
>     >> >
>     >> > ;your code here:
>     >> > ;fsig pvstanal ktimescal, kamp, kpitch, ktab, kdetect, kwrap,
>     ioffset
>     >> >
>     >> >
>     >> > Best,
>     >> >
>     >> > Peiman
>     >> >
>     >> >
>     >> > On 24 November 2011 19:13, Michele Nasti
>     >
>     >> > wrote:
>     >> >> This is part of my code:
>     >> >>
>     >> >> 
>     >> >>
>     >> >> gifil0 ftgen 0, 0, 0, 1,
>     >> >> "/home/michele/Dropbox/Anonimo-GiochiProibiti/GioPro01.aif",
>     0, 0, 1
>     >> >>
>     >> >> ;general values for the pvstanal opcode
>     >> >>
>     >> >> giamp = 1 ;amplitude scaling
>     >> >>
>     >> >> gipitch = 1 ;pitch scaling
>     >> >>
>     >> >> gidet = 0 ;onset detection
>     >> >>
>     >> >> giwrap = 0 ;no loop reading
>     >> >>
>     >> >> giskip = 0 ;start at the beginning
>     >> >>
>     >> >> gifftsiz = 1024 ;fft size
>     >> >>
>     >> >> giovlp = gifftsiz/8 ;overlap size
>     >> >>
>     >> >> githresh = 0 ;threshold
>     >> >>
>     >> >> instr 1
>     >> >>
>     >> >> kvol0 = 1;
>     >> >>
>     >> >> kstretch = 1;
>     >> >>
>     >> >> fsig0 pvstanal kstretch, giamp, gipitch, gifil0, gidet,
>     giwrap, giskip,
>     >> >> gifftsiz, giovlp, githresh
>     >> >>
>     >> >> aout0 pvsynth fsig0
>     >> >>
>     >> >> outch 1, aout0*kvol0,
>     >> >>
>     >> >> endin
>     >> >>
>     >> >> 
>     >> >>
>     >> >> 
>     >> >>
>     >> >> i 1 0 3600
>     >> >>
>     >> >> 
>     >> >>
>     >> >> 2011/11/24 Rory Walsh >
>     >> >>>
>     >> >>> If you have a song in a function table you can jump to
>     whatever point
>     >> >>> you like using a table opcode which allows direct indexing?
>     >> >>>
>     >> >>>
>     >> >>> On 24 November 2011 18:33, Michele Nasti
>     >
>     >> >>> wrote:
>     >> >>> > Hi there, I resolved my problems with the loop.
>     >> >>> > suppose I have a song loaded in a Functon Table.
>     >> >>> > Suppose that I want to dinamically change the start of the
>     song in
>     >> >>> > this
>     >> >>> > piece. My problem is, if I'm playing a song, I want to jump
>     to a
>     >> >>> > specified
>     >> >>> > second of the song and play from there.
>     >> >>> > there should be a variable "gkCurrentPosition", and if I
>     change it
>     >> >>> > (via
>     >> >>> > chnget) , I should hear the change.
>     >> >>> > Suggestions? what is the best code?
>     >> >>> > Michele
>     >> >>>
>     >> >>>
>     >> >>> Send bugs reports to the Sourceforge bug tracker
>     >> >>>          
>      https://sourceforge.net/tracker/?group_id=81968&atid=564599
>     
>     >> >>> Discussions of bugs and features can be posted here
>     >> >>> To unsubscribe, send email sympa@lists.bath.ac.uk
>      with body
>     >> >>> "unsubscribe
>     >> >>> csound"
>     >> >>>
>     >> >>
>     >> >>
>     >> >
>     >>
>     >>
>     >> Send bugs reports to the Sourceforge bug tracker
>     >>          
>      https://sourceforge.net/tracker/?group_id=81968&atid=564599
>     
>     >> Discussions of bugs and features can be posted here
>     >> To unsubscribe, send email sympa@lists.bath.ac.uk
>      with body "unsubscribe
>     >> csound"
>     >>
>     >
>     >
> 
> 
>     Send bugs reports to the Sourceforge bug tracker
>              
>      https://sourceforge.net/tracker/?group_id=81968&atid=564599
>     
>     Discussions of bugs and features can be posted here
>     To unsubscribe, send email sympa@lists.bath.ac.uk
>      with body "unsubscribe csound"
> 
> 


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2011-11-26 12:26
FromMichele Nasti
SubjectRe: [Csnd] best way to jump in a song
Thanks for the reply, however I'm not that expert so that I can change the atimpt parameter by myself...The fact is that I am still studying CSound (I bought the book) so I can only customize what I'm capable to understand. Victor tried to explain me the best way to use the mincer opcode but that's all I have understood until now. 


2011/11/26 joachim heintz <jh@joachimheintz.de>
sorry, i didn't follow this thread from the beginning, but why don't you
stay at instrument 2? i'd think you then just have to organize the
atimpt parameter to do anything with different loops or without any loop.
       joachim


Date2011-11-26 13:35
Fromjoachim heintz
SubjectRe: [Csnd] best way to jump in a song
i might be able to help you here. are you using csoundqt, or how do you
send the messages about looping to csound?


Am 26.11.2011 13:26, schrieb Michele Nasti:
> Thanks for the reply, however I'm not that expert so that I can change
> the atimpt parameter by myself...The fact is that I am still studying
> CSound (I bought the book) so I can only customize what I'm capable to
> understand. Victor tried to explain me the best way to use the mincer
> opcode but that's all I have understood until now. 
> 
> 
> 2011/11/26 joachim heintz >
> 
>     sorry, i didn't follow this thread from the beginning, but why don't you
>     stay at instrument 2? i'd think you then just have to organize the
>     atimpt parameter to do anything with different loops or without any
>     loop.
>            joachim
> 
> 


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2011-11-26 14:47
FromMichele Nasti
SubjectRe: [Csnd] best way to jump in a song
Yes, I'm sending messages with Qutecsound (I think it is the same), I set the variables via "invalue". However, in my program I use chnget (I don't know if Java permits the use of invalue, and all the tutorials I've found are about chnget). 
Do you want to see the script ?


2011/11/26 joachim heintz <jh@joachimheintz.de>
i might be able to help you here. are you using csoundqt, or how do you
send the messages about looping to csound?


Am 26.11.2011 13:26, schrieb Michele Nasti:
> Thanks for the reply, however I'm not that expert so that I can change
> the atimpt parameter by myself...The fact is that I am still studying
> CSound (I bought the book) so I can only customize what I'm capable to
> understand. Victor tried to explain me the best way to use the mincer
> opcode but that's all I have understood until now.
>
>
> 2011/11/26 joachim heintz <jh@joachimheintz.de <mailto:jh@joachimheintz.de>>
>
>     sorry, i didn't follow this thread from the beginning, but why don't you
>     stay at instrument 2? i'd think you then just have to organize the
>     atimpt parameter to do anything with different loops or without any
>     loop.
>            joachim
>
>


Send bugs reports to the Sourceforge bug tracker
           https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"



Date2011-11-26 19:40
Fromjoachim heintz
SubjectRe: [Csnd] best way to jump in a song
Attachments111128mincer_loop.csd  
hi michele -
i have attached a first version in csoundqt (the new name for
qutecsound). it shows how you can use a phasor to create the atimpt for
any loops in mincer.
in this version, you have to push the button for activating any new
values. as far as i understood, this is what you want. it'd easier
without this feature.
can you have a look and tell me if it's working for you and what you
still miss?
best -
	joachim



Am 26.11.2011 15:47, schrieb Michele Nasti:
> Yes, I'm sending messages with Qutecsound (I think it is the same), I
> set the variables via "invalue". However, in my program I use chnget (I
> don't know if Java permits the use of invalue, and all the tutorials
> I've found are about chnget). 
> Do you want to see the script ?
> 
> 
> 2011/11/26 joachim heintz >
> 
>     i might be able to help you here. are you using csoundqt, or how do you
>     send the messages about looping to csound?
> 
> 
>     Am 26.11.2011 13:26, schrieb Michele Nasti:
>     > Thanks for the reply, however I'm not that expert so that I can change
>     > the atimpt parameter by myself...The fact is that I am still studying
>     > CSound (I bought the book) so I can only customize what I'm capable to
>     > understand. Victor tried to explain me the best way to use the mincer
>     > opcode but that's all I have understood until now.
>     >
>     >
>     > 2011/11/26 joachim heintz            >>
>     >
>     >     sorry, i didn't follow this thread from the beginning, but why
>     don't you
>     >     stay at instrument 2? i'd think you then just have to organize the
>     >     atimpt parameter to do anything with different loops or
>     without any
>     >     loop.
>     >            joachim
>     >
>     >
> 
> 
>     Send bugs reports to the Sourceforge bug tracker
>              
>      https://sourceforge.net/tracker/?group_id=81968&atid=564599
>     
>     Discussions of bugs and features can be posted here
>     To unsubscribe, send email sympa@lists.bath.ac.uk
>      with body "unsubscribe csound"
> 
> 

Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


Date2011-11-26 20:13
From"Dr. Richard Boulanger"
SubjectRe: [Csnd] best way to jump in a song
Joachim,

A wonderful example.  Hopefully it will be release with the next CsoundQt.

dr.B.
___________________________________

Dr. Richard Boulanger, Ph.D.

Professor of Electronic Production and Design
Professional Writing and Music Technology Division
Berklee College of Music
1140 Boylston Street
Boston, MA 02215-3693

617-747-2485 (office)
774-488-9166 (cell)

____________________________________

____________________________________

____________________________________

On Nov 26, 2011, at 2:40 PM, joachim heintz wrote:

hi michele -
i have attached a first version in csoundqt (the new name for
qutecsound). it shows how you can use a phasor to create the atimpt for
any loops in mincer.
in this version, you have to push the button for activating any new
values. as far as i understood, this is what you want. it'd easier
without this feature.
can you have a look and tell me if it's working for you and what you
still miss?
best -
joachim



Am 26.11.2011 15:47, schrieb Michele Nasti:
Yes, I'm sending messages with Qutecsound (I think it is the same), I
set the variables via "invalue". However, in my program I use chnget (I
don't know if Java permits the use of invalue, and all the tutorials
I've found are about chnget).
Do you want to see the script ?


2011/11/26 joachim heintz <jh@joachimheintz.de <mailto:jh@joachimheintz.de>>

   i might be able to help you here. are you using csoundqt, or how do you
   send the messages about looping to csound?


   Am 26.11.2011 13:26, schrieb Michele Nasti:
Thanks for the reply, however I'm not that expert so that I can change
the atimpt parameter by myself...The fact is that I am still studying
CSound (I bought the book) so I can only customize what I'm capable to
understand. Victor tried to explain me the best way to use the mincer
opcode but that's all I have understood until now.


2011/11/26 joachim heintz <jh@joachimheintz.de
   <mailto:jh@joachimheintz.de> <mailto:jh@joachimheintz.de
   <mailto:jh@joachimheintz.de>>>

   sorry, i didn't follow this thread from the beginning, but why
   don't you
   stay at instrument 2? i'd think you then just have to organize the
   atimpt parameter to do anything with different loops or
   without any
   loop.
          joachim




   Send bugs reports to the Sourceforge bug tracker

    https://sourceforge.net/tracker/?group_id=81968&atid=564599
   <https://sourceforge.net/tracker/?group_id=81968&atid=564599>
   Discussions of bugs and features can be posted here
   To unsubscribe, send email sympa@lists.bath.ac.uk
   <mailto:sympa@lists.bath.ac.uk> with body "unsubscribe csound"



Send bugs reports to the Sourceforge bug tracker
           https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

<111128mincer_loop.csd>


Date2011-11-26 21:14
Fromjoachim heintz
SubjectRe: [Csnd] best way to jump in a song
Attachments111128mincer_loop2.csd  
thanks, richard. yes, i can include an extended version which covers
also pitch and time scaling, and backwards playing. can you - or anyone
else - try the attached version and tell me if something is not working
or should be added?
best -
	joachim


Am 26.11.2011 21:13, schrieb Dr. Richard Boulanger:
> Joachim,
> 
> A wonderful example.  Hopefully it will be release with the next CsoundQt.
> 
> dr.B.
> *___________________________________*
> *
> *
> *Dr. Richard Boulanger, Ph.D.*
> *
> *
> Professor of Electronic Production and Design
> Professional Writing and Music Technology Division
> Berklee College of Music
> 1140 Boylston Street
> Boston, MA 02215-3693
> 
> 617-747-2485 (office)
> 774-488-9166 (cell)
> 
> rboulanger@berklee.edu 
> http://csounds.com/boulanger
> ____________________________________
> 
> http://csounds.com 
> http://csoundforlive.com 
> ____________________________________
> 
> http://csounds.com/mathews
> ____________________________________
> 
> On Nov 26, 2011, at 2:40 PM, joachim heintz wrote:
> 
>> hi michele -
>> i have attached a first version in csoundqt (the new name for
>> qutecsound). it shows how you can use a phasor to create the atimpt for
>> any loops in mincer.
>> in this version, you have to push the button for activating any new
>> values. as far as i understood, this is what you want. it'd easier
>> without this feature.
>> can you have a look and tell me if it's working for you and what you
>> still miss?
>> best -
>> joachim
>>
>>
>>
>> Am 26.11.2011 15:47, schrieb Michele Nasti:
>>> Yes, I'm sending messages with Qutecsound (I think it is the same), I
>>> set the variables via "invalue". However, in my program I use chnget (I
>>> don't know if Java permits the use of invalue, and all the tutorials
>>> I've found are about chnget).
>>> Do you want to see the script ?
>>>
>>>
>>> 2011/11/26 joachim heintz >>  >
>>>
>>>    i might be able to help you here. are you using csoundqt, or how
>>> do you
>>>    send the messages about looping to csound?
>>>
>>>
>>>    Am 26.11.2011 13:26, schrieb Michele Nasti:
>>>> Thanks for the reply, however I'm not that expert so that I can change
>>>> the atimpt parameter by myself...The fact is that I am still studying
>>>> CSound (I bought the book) so I can only customize what I'm capable to
>>>> understand. Victor tried to explain me the best way to use the mincer
>>>> opcode but that's all I have understood until now.
>>>>
>>>>
>>>> 2011/11/26 joachim heintz >>> 
>>>     >>    >>
>>>>
>>>>    sorry, i didn't follow this thread from the beginning, but why
>>>    don't you
>>>>    stay at instrument 2? i'd think you then just have to organize the
>>>>    atimpt parameter to do anything with different loops or
>>>    without any
>>>>    loop.
>>>>           joachim
>>>>
>>>>
>>>
>>>
>>>    Send bugs reports to the Sourceforge bug tracker
>>>
>>>     https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> 
>>>    >> >
>>>    Discussions of bugs and features can be posted here
>>>    To unsubscribe, send email sympa@lists.bath.ac.uk
>>> 
>>>     with body "unsubscribe csound"
>>>
>>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> 
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk
>>  with body "unsubscribe csound"
>>
>> <111128mincer_loop.csd>
> 

Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


Date2011-11-28 13:10
From"Dr. Richard Boulanger"
SubjectRe: [Csnd] best way to jump in a song
Joachim,

WOW.  This one is really "smooth" and beautiful.
Another wonderful and inspiring example.

Thanks so much for writing it.  And thanks to Michelle
for focusing on this and helping to focus your attention
on this.

Dr.B.
___________________________________

Dr. Richard Boulanger, Ph.D.

Professor of Electronic Production and Design
Professional Writing and Music Technology Division
Berklee College of Music
1140 Boylston Street
Boston, MA 02215-3693

617-747-2485 (office)
774-488-9166 (cell)

____________________________________

____________________________________

____________________________________

On Nov 26, 2011, at 4:14 PM, joachim heintz wrote:

thanks, richard. yes, i can include an extended version which covers
also pitch and time scaling, and backwards playing. can you - or anyone
else - try the attached version and tell me if something is not working
or should be added?
best -
joachim


Am 26.11.2011 21:13, schrieb Dr. Richard Boulanger:
Joachim,

A wonderful example.  Hopefully it will be release with the next CsoundQt.

dr.B.
*___________________________________*
*
*
*Dr. Richard Boulanger, Ph.D.*
*
*
Professor of Electronic Production and Design
Professional Writing and Music Technology Division
Berklee College of Music
1140 Boylston Street
Boston, MA 02215-3693

617-747-2485 (office)
774-488-9166 (cell)

rboulanger@berklee.edu <mailto:rboulanger@berklee.edu>
http://csounds.com/boulanger
____________________________________

http://csounds.com <http://csounds.com/>
http://csoundforlive.com <http://csoundforlive.com/>
____________________________________

http://csounds.com/mathews
____________________________________

On Nov 26, 2011, at 2:40 PM, joachim heintz wrote:

hi michele -
i have attached a first version in csoundqt (the new name for
qutecsound). it shows how you can use a phasor to create the atimpt for
any loops in mincer.
in this version, you have to push the button for activating any new
values. as far as i understood, this is what you want. it'd easier
without this feature.
can you have a look and tell me if it's working for you and what you
still miss?
best -
joachim



Am 26.11.2011 15:47, schrieb Michele Nasti:
Yes, I'm sending messages with Qutecsound (I think it is the same), I
set the variables via "invalue". However, in my program I use chnget (I
don't know if Java permits the use of invalue, and all the tutorials
I've found are about chnget).
Do you want to see the script ?


2011/11/26 joachim heintz <jh@joachimheintz.de
<mailto:jh@joachimheintz.de> <mailto:jh@joachimheintz.de>>

  i might be able to help you here. are you using csoundqt, or how
do you
  send the messages about looping to csound?


  Am 26.11.2011 13:26, schrieb Michele Nasti:
Thanks for the reply, however I'm not that expert so that I can change
the atimpt parameter by myself...The fact is that I am still studying
CSound (I bought the book) so I can only customize what I'm capable to
understand. Victor tried to explain me the best way to use the mincer
opcode but that's all I have understood until now.


2011/11/26 joachim heintz <jh@joachimheintz.de
<mailto:jh@joachimheintz.de>
  <mailto:jh@joachimheintz.de> <mailto:jh@joachimheintz.de
  <mailto:jh@joachimheintz.de>>>

  sorry, i didn't follow this thread from the beginning, but why
  don't you
  stay at instrument 2? i'd think you then just have to organize the
  atimpt parameter to do anything with different loops or
  without any
  loop.
         joachim




  Send bugs reports to the Sourceforge bug tracker

   https://sourceforge.net/tracker/?group_id=81968&atid=564599
<https://sourceforge.net/tracker/?group_id=81968&atid=564599>
  <https://sourceforge.net/tracker/?group_id=81968&atid=564599
<https://sourceforge.net/tracker/?group_id=81968&atid=564599>>
  Discussions of bugs and features can be posted here
  To unsubscribe, send email sympa@lists.bath.ac.uk
<mailto:sympa@lists.bath.ac.uk>
  <mailto:sympa@lists.bath.ac.uk> with body "unsubscribe csound"



Send bugs reports to the Sourceforge bug tracker
          https://sourceforge.net/tracker/?group_id=81968&atid=564599
<https://sourceforge.net/tracker/?group_id=81968&atid=564599>
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk
<mailto:sympa@lists.bath.ac.uk> with body "unsubscribe csound"

<111128mincer_loop.csd>


Send bugs reports to the Sourceforge bug tracker
           https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

<111128mincer_loop2.csd>


Date2011-11-29 10:04
FromMichele Nasti
SubjectRe: [Csnd] best way to jump in a song
Hi all, 
Thanks for the replies, I didn't respond because I was out with my girlfriend this weekend. 
However I can't see the switch to disable the loop... it only loops perpetually :/ (If the loop is disabled it should play only once).
also I have some other problems that maybe depend on my platform, The audio file that I use as example doesn't always play; this is getting me crazy. 
Michele 

2011/11/28 Dr. Richard Boulanger <rboulanger@berklee.edu>
Joachim,

WOW.  This one is really "smooth" and beautiful.
Another wonderful and inspiring example.

Thanks so much for writing it.  And thanks to Michelle
for focusing on this and helping to focus your attention
on this.

Dr.B.
___________________________________

Dr. Richard Boulanger, Ph.D.

Professor of Electronic Production and Design
Professional Writing and Music Technology Division
Berklee College of Music
1140 Boylston Street
Boston, MA 02215-3693

617-747-2485 (office)
774-488-9166 (cell)

____________________________________

____________________________________

____________________________________

On Nov 26, 2011, at 4:14 PM, joachim heintz wrote:

thanks, richard. yes, i can include an extended version which covers
also pitch and time scaling, and backwards playing. can you - or anyone
else - try the attached version and tell me if something is not working
or should be added?
best -
joachim


Am 26.11.2011 21:13, schrieb Dr. Richard Boulanger:
Joachim,

A wonderful example.  Hopefully it will be release with the next CsoundQt.

dr.B.
*___________________________________*
*
*
*Dr. Richard Boulanger, Ph.D.*
*
*
Professor of Electronic Production and Design
Professional Writing and Music Technology Division
Berklee College of Music
1140 Boylston Street
Boston, MA 02215-3693

617-747-2485 (office)
774-488-9166 (cell)

rboulanger@berklee.edu <mailto:rboulanger@berklee.edu>
http://csounds.com/boulanger
____________________________________

http://csounds.com <http://csounds.com/>
http://csoundforlive.com <http://csoundforlive.com/>
____________________________________

http://csounds.com/mathews
____________________________________

On Nov 26, 2011, at 2:40 PM, joachim heintz wrote:

hi michele -
i have attached a first version in csoundqt (the new name for
qutecsound). it shows how you can use a phasor to create the atimpt for
any loops in mincer.
in this version, you have to push the button for activating any new
values. as far as i understood, this is what you want. it'd easier
without this feature.
can you have a look and tell me if it's working for you and what you
still miss?
best -
joachim



Am 26.11.2011 15:47, schrieb Michele Nasti:
Yes, I'm sending messages with Qutecsound (I think it is the same), I
set the variables via "invalue". However, in my program I use chnget (I
don't know if Java permits the use of invalue, and all the tutorials
I've found are about chnget).
Do you want to see the script ?


2011/11/26 joachim heintz <jh@joachimheintz.de
<mailto:jh@joachimheintz.de> <mailto:jh@joachimheintz.de>>

  i might be able to help you here. are you using csoundqt, or how
do you
  send the messages about looping to csound?


  Am 26.11.2011 13:26, schrieb Michele Nasti:
Thanks for the reply, however I'm not that expert so that I can change
the atimpt parameter by myself...The fact is that I am still studying
CSound (I bought the book) so I can only customize what I'm capable to
understand. Victor tried to explain me the best way to use the mincer
opcode but that's all I have understood until now.


2011/11/26 joachim heintz <jh@joachimheintz.de
<mailto:jh@joachimheintz.de>
  <mailto:jh@joachimheintz.de> <mailto:jh@joachimheintz.de
  <mailto:jh@joachimheintz.de>>>

  sorry, i didn't follow this thread from the beginning, but why
  don't you
  stay at instrument 2? i'd think you then just have to organize the
  atimpt parameter to do anything with different loops or
  without any
  loop.
         joachim




  Send bugs reports to the Sourceforge bug tracker

   https://sourceforge.net/tracker/?group_id=81968&atid=564599
<https://sourceforge.net/tracker/?group_id=81968&atid=564599>
  <https://sourceforge.net/tracker/?group_id=81968&atid=564599
<https://sourceforge.net/tracker/?group_id=81968&atid=564599>>
  Discussions of bugs and features can be posted here
  To unsubscribe, send email sympa@lists.bath.ac.uk
<mailto:sympa@lists.bath.ac.uk>
  <mailto:sympa@lists.bath.ac.uk> with body "unsubscribe csound"



Send bugs reports to the Sourceforge bug tracker
          https://sourceforge.net/tracker/?group_id=81968&atid=564599
<https://sourceforge.net/tracker/?group_id=81968&atid=564599>
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk
<mailto:sympa@lists.bath.ac.uk> with body "unsubscribe csound"

<111128mincer_loop.csd>


Send bugs reports to the Sourceforge bug tracker
           https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

<111128mincer_loop2.csd>



Date2011-11-29 13:20
Fromjoachim heintz
SubjectRe: [Csnd] best way to jump in a song
thanks. i've committed to svn, so it should appear in the next csoundqt
release (examples > mscellaneous). i've also put the udo "LpPhsr" to the
udo repository (signal generators) because i think it can be useful for
many situations like this one. example is there.
cheers -
	joachim



Am 28.11.2011 14:10, schrieb Dr. Richard Boulanger:
> Joachim,
> 
> WOW.  This one is really "smooth" and beautiful.
> Another wonderful and inspiring example.
> 
> Thanks so much for writing it.  And thanks to Michelle
> for focusing on this and helping to focus your attention
> on this.
> 
> Dr.B.
> *___________________________________*
> *
> *
> *Dr. Richard Boulanger, Ph.D.*
> *
> *
> Professor of Electronic Production and Design
> Professional Writing and Music Technology Division
> Berklee College of Music
> 1140 Boylston Street
> Boston, MA 02215-3693
> 
> 617-747-2485 (office)
> 774-488-9166 (cell)
> 
> rboulanger@berklee.edu 
> http://csounds.com/boulanger
> ____________________________________
> 
> http://csounds.com 
> http://csoundforlive.com 
> ____________________________________
> 
> http://csounds.com/mathews
> ____________________________________
> 
> On Nov 26, 2011, at 4:14 PM, joachim heintz wrote:
> 
>> thanks, richard. yes, i can include an extended version which covers
>> also pitch and time scaling, and backwards playing. can you - or anyone
>> else - try the attached version and tell me if something is not working
>> or should be added?
>> best -
>> joachim
>>
>>
>> Am 26.11.2011 21:13, schrieb Dr. Richard Boulanger:
>>> Joachim,
>>>
>>> A wonderful example.  Hopefully it will be release with the next
>>> CsoundQt.
>>>
>>> dr.B.
>>> *___________________________________*
>>> *
>>> *
>>> *Dr. Richard Boulanger, Ph.D.*
>>> *
>>> *
>>> Professor of Electronic Production and Design
>>> Professional Writing and Music Technology Division
>>> Berklee College of Music
>>> 1140 Boylston Street
>>> Boston, MA 02215-3693
>>>
>>> 617-747-2485 (office)
>>> 774-488-9166 (cell)
>>>
>>> rboulanger@berklee.edu 
>>> 
>>> http://csounds.com/boulanger
>>> ____________________________________
>>>
>>> http://csounds.com 
>>> http://csoundforlive.com 
>>> ____________________________________
>>>
>>> http://csounds.com/mathews
>>> ____________________________________
>>>
>>> On Nov 26, 2011, at 2:40 PM, joachim heintz wrote:
>>>
>>>> hi michele -
>>>> i have attached a first version in csoundqt (the new name for
>>>> qutecsound). it shows how you can use a phasor to create the atimpt for
>>>> any loops in mincer.
>>>> in this version, you have to push the button for activating any new
>>>> values. as far as i understood, this is what you want. it'd easier
>>>> without this feature.
>>>> can you have a look and tell me if it's working for you and what you
>>>> still miss?
>>>> best -
>>>> joachim
>>>>
>>>>
>>>>
>>>> Am 26.11.2011 15:47, schrieb Michele Nasti:
>>>>> Yes, I'm sending messages with Qutecsound (I think it is the same), I
>>>>> set the variables via "invalue". However, in my program I use chnget (I
>>>>> don't know if Java permits the use of invalue, and all the tutorials
>>>>> I've found are about chnget).
>>>>> Do you want to see the script ?
>>>>>
>>>>>
>>>>> 2011/11/26 joachim heintz >>>> 
>>>>>  >
>>>>>
>>>>>   i might be able to help you here. are you using csoundqt, or how
>>>>> do you
>>>>>   send the messages about looping to csound?
>>>>>
>>>>>
>>>>>   Am 26.11.2011 13:26, schrieb Michele Nasti:
>>>>>> Thanks for the reply, however I'm not that expert so that I can change
>>>>>> the atimpt parameter by myself...The fact is that I am still studying
>>>>>> CSound (I bought the book) so I can only customize what I'm capable to
>>>>>> understand. Victor tried to explain me the best way to use the mincer
>>>>>> opcode but that's all I have understood until now.
>>>>>>
>>>>>>
>>>>>> 2011/11/26 joachim heintz >>>>> 
>>>>>> 
>>>>>    >>>>   >>
>>>>>>
>>>>>>   sorry, i didn't follow this thread from the beginning, but why
>>>>>   don't you
>>>>>>   stay at instrument 2? i'd think you then just have to organize the
>>>>>>   atimpt parameter to do anything with different loops or
>>>>>   without any
>>>>>>   loop.
>>>>>>          joachim
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>   Send bugs reports to the Sourceforge bug tracker
>>>>>
>>>>>    https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>> 
>>>>> >>>> >
>>>>>   >>>> 
>>>>> >>>> >>
>>>>>   Discussions of bugs and features can be posted here
>>>>>   To unsubscribe, send email sympa@lists.bath.ac.uk
>>>>> 
>>>>> 
>>>>>    with body "unsubscribe csound"
>>>>>
>>>>>
>>>>
>>>> Send bugs reports to the Sourceforge bug tracker
>>>>           https://sourceforge.net/tracker/?group_id=81968&atid=564599 
>>>> >>> >
>>>> Discussions of bugs and features can be posted here
>>>> To unsubscribe, send email sympa@lists.bath.ac.uk
>>>> 
>>>>  with body "unsubscribe csound"
>>>>
>>>> <111128mincer_loop.csd>
>>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> 
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk
>>  with body "unsubscribe csound"
>>
>> <111128mincer_loop2.csd>
> 


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2011-11-29 14:49
Fromjoachim heintz
SubjectRe: [Csnd] best way to jump in a song
Attachmentsmincer_loop_or_not.csd  
hi michele -
this is certainly a very good reason not to reply =)
you are right; i didn't implement the "don't loop" switch in the file i
attached last week. this can be done in different ways. i have attached
one possibility which simply outputs zero audio if the loop is
deactivated. the solution has become a littlebit complicated because
there are different cases:
- play continuously when loop is activated
- play just until the end has reached if loop has not been activated.
so i introduced an "kend" parameter for the second case.
perhaps you find an easier one ...
best -	
	joachim



Am 29.11.2011 11:04, schrieb Michele Nasti:
> Hi all, 
> Thanks for the replies, I didn't respond because I was out with my
> girlfriend this weekend. 
> However I can't see the switch to disable the loop... it only loops
> perpetually :/ (If the loop is disabled it should play only once).
> also I have some other problems that maybe depend on my platform, The
> audio file that I use as example doesn't always play; this is getting me
> crazy. 
> Michele 
> 
> 2011/11/28 Dr. Richard Boulanger  >
> 
>     Joachim,
> 
>     WOW.  This one is really "smooth" and beautiful.
>     Another wonderful and inspiring example.
> 
>     Thanks so much for writing it.  And thanks to Michelle
>     for focusing on this and helping to focus your attention
>     on this.
> 
>     Dr.B.
>     *___________________________________*
>     *
>     *
>     *Dr. Richard Boulanger, Ph.D.*
>     *
>     *
>     Professor of Electronic Production and Design
>     Professional Writing and Music Technology Division
>     Berklee College of Music
>     1140 Boylston Street
>     Boston, MA 02215-3693 
> 
>     617-747-2485 (office)
>     774-488-9166 (cell)
> 
>     rboulanger@berklee.edu 
>     http://csounds.com/boulanger
>     ____________________________________
> 
>     http://csounds.com 
>     http://csoundforlive.com 
>     ____________________________________
> 
>     http://csounds.com/mathews
>     ____________________________________
> 
>     On Nov 26, 2011, at 4:14 PM, joachim heintz wrote:
> 
>>     thanks, richard. yes, i can include an extended version which covers
>>     also pitch and time scaling, and backwards playing. can you - or
>>     anyone
>>     else - try the attached version and tell me if something is not
>>     working
>>     or should be added?
>>     best -
>>     joachim
>>
>>
>>     Am 26.11.2011 21:13, schrieb Dr. Richard Boulanger:
>>>     Joachim,
>>>
>>>     A wonderful example.  Hopefully it will be release with the next
>>>     CsoundQt.
>>>
>>>     dr.B.
>>>     *___________________________________*
>>>     *
>>>     *
>>>     *Dr. Richard Boulanger, Ph.D.*
>>>     *
>>>     *
>>>     Professor of Electronic Production and Design
>>>     Professional Writing and Music Technology Division
>>>     Berklee College of Music
>>>     1140 Boylston Street
>>>     Boston, MA 02215-3693 
>>>
>>>     617-747-2485 (office)
>>>     774-488-9166 (cell)
>>>
>>>     rboulanger@berklee.edu 
>>>     
>>>     http://csounds.com/boulanger
>>>     ____________________________________
>>>
>>>     http://csounds.com 
>>>     http://csoundforlive.com 
>>>     ____________________________________
>>>
>>>     http://csounds.com/mathews
>>>     ____________________________________
>>>
>>>     On Nov 26, 2011, at 2:40 PM, joachim heintz wrote:
>>>
>>>>     hi michele -
>>>>     i have attached a first version in csoundqt (the new name for
>>>>     qutecsound). it shows how you can use a phasor to create the
>>>>     atimpt for
>>>>     any loops in mincer.
>>>>     in this version, you have to push the button for activating any new
>>>>     values. as far as i understood, this is what you want. it'd easier
>>>>     without this feature.
>>>>     can you have a look and tell me if it's working for you and what you
>>>>     still miss?
>>>>     best -
>>>>     joachim
>>>>
>>>>
>>>>
>>>>     Am 26.11.2011 15:47, schrieb Michele Nasti:
>>>>>     Yes, I'm sending messages with Qutecsound (I think it is the
>>>>>     same), I
>>>>>     set the variables via "invalue". However, in my program I use
>>>>>     chnget (I
>>>>>     don't know if Java permits the use of invalue, and all the
>>>>>     tutorials
>>>>>     I've found are about chnget).
>>>>>     Do you want to see the script ?
>>>>>
>>>>>
>>>>>     2011/11/26 joachim heintz >>>>     
>>>>>      >
>>>>>
>>>>>       i might be able to help you here. are you using csoundqt, or how
>>>>>     do you
>>>>>       send the messages about looping to csound?
>>>>>
>>>>>
>>>>>       Am 26.11.2011 13:26, schrieb Michele Nasti:
>>>>>>     Thanks for the reply, however I'm not that expert so that I
>>>>>>     can change
>>>>>>     the atimpt parameter by myself...The fact is that I am still
>>>>>>     studying
>>>>>>     CSound (I bought the book) so I can only customize what I'm
>>>>>>     capable to
>>>>>>     understand. Victor tried to explain me the best way to use the
>>>>>>     mincer
>>>>>>     opcode but that's all I have understood until now.
>>>>>>
>>>>>>
>>>>>>     2011/11/26 joachim heintz >>>>>     
>>>>>>     
>>>>>        >>>>       >>
>>>>>>
>>>>>>       sorry, i didn't follow this thread from the beginning, but why
>>>>>       don't you
>>>>>>       stay at instrument 2? i'd think you then just have to
>>>>>>     organize the
>>>>>>       atimpt parameter to do anything with different loops or
>>>>>       without any
>>>>>>       loop.
>>>>>>              joachim
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>       Send bugs reports to the Sourceforge bug tracker
>>>>>
>>>>>        https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>>     
>>>>>     >>>>     >
>>>>>       >>>>     
>>>>>     >>>>     >>
>>>>>       Discussions of bugs and features can be posted here
>>>>>       To unsubscribe, send email sympa@lists.bath.ac.uk
>>>>>     
>>>>>     
>>>>>        with body "unsubscribe csound"
>>>>>
>>>>>
>>>>
>>>>     Send bugs reports to the Sourceforge bug tracker
>>>>               https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>     
>>>>     >>>     >
>>>>     Discussions of bugs and features can be posted here
>>>>     To unsubscribe, send email sympa@lists.bath.ac.uk
>>>>     
>>>>      with body "unsubscribe csound"
>>>>
>>>>     <111128mincer_loop.csd>
>>>
>>
>>     Send bugs reports to the Sourceforge bug tracker
>>                https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>     
>>     Discussions of bugs and features can be posted here
>>     To unsubscribe, send email sympa@lists.bath.ac.uk
>>      with body "unsubscribe csound"
>>
>>     <111128mincer_loop2.csd>
> 
> 

Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"