Csound Csound-dev Csound-tekno Search About

[Csnd] idur_in_timout

Date2011-10-23 19:28
FromEnrico Francioni
Subject[Csnd] idur_in_timout
Hello!

how can I be able to change
/idur/ value in /timeout/ 
(in a tool that is always on)?

e

--
View this message in context: http://csound.1045644.n5.nabble.com/idur-in-timout-tp4930066p4930066.html
Sent from the Csound - General mailing list archive at Nabble.com.


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-10-23 20:09
Fromjoachim heintz
SubjectRe: [Csnd] idur_in_timout
have a look at example 03E09 in
http://en.flossmanuals.net/csound/ch020_e-triggering-instrument-events/
- and let me know if you have any questions.
cheers -
	joachim


Am 23.10.2011 20:28, schrieb Enrico Francioni:
> 
> Hello!
> 
> how can I be able to change
> /idur/ value in /timeout/ 
> (in a tool that is always on)?
> 
> e
> 
> --
> View this message in context: http://csound.1045644.n5.nabble.com/idur-in-timout-tp4930066p4930066.html
> Sent from the Csound - General mailing list archive at Nabble.com.
> 
> 
> 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-10-23 21:49
FromEnrico Francioni
Subject[Csnd] Re: idur_in_timout
Hi joachim,

I do not want to change /idur/
occur randomly,
but in a timed;

... As if it were (but I know it is not possible):


/idur linseg 4, 4, 4, .0001, 60, 60, 60
timeout 0, idur, label/

--
View this message in context: http://csound.1045644.n5.nabble.com/idur-in-timout-tp4930066p4930412.html
Sent from the Csound - General mailing list archive at Nabble.com.


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-10-23 23:01
Fromjoachim heintz
SubjectRe: [Csnd] Re: idur_in_timout
hi enrico -

random, or not to random
this is not the question ...

not sure if you mean something like this:



gift ftgen 0, 0, -3, -2, 4, 1, 3 ;list of durations for timout
instr 1
indx init -1
ktim times
hm:
indx = indx + 1
indx = (indx == 3 ? 0 : indx)
idur tab_i indx, gift
   timout 0, idur, do
   reinit hm
do:
itim = i(ktim)
    prints "hi enrico! time is %d\n", itim
endin


i 1 0 99



best -

	joachim


Am 23.10.2011 22:49, schrieb Enrico Francioni:
> 
> Hi joachim,
> 
> I do not want to change /idur/
> occur randomly,
> but in a timed;
> 
> ... As if it were (but I know it is not possible):
> 
> 
> /idur linseg 4, 4, 4, .0001, 60, 60, 60
> timeout 0, idur, label/
> 
> --
> View this message in context: http://csound.1045644.n5.nabble.com/idur-in-timout-tp4930066p4930412.html
> Sent from the Csound - General mailing list archive at Nabble.com.
> 
> 
> 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-10-24 06:32
FromEnrico Francioni
Subject[Csnd] Re: idur_in_timout
…joachim

is not exactly what I meant.

I'd rather I want the first value /idur/ will be decided whenever you
activate a tool (a value choice between 1 and 59);
Then I want the second value is always 60 (it is a timer with minutes and
seconds);

this afternoon ... I attach the csd


e

--
View this message in context: http://csound.1045644.n5.nabble.com/idur-in-timout-tp4930066p4931342.html
Sent from the Csound - General mailing list archive at Nabble.com.


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-10-24 14:25
FromEnrico Francioni
Subject[Csnd] Re: idur_in_timout
Hi joachim,

…the csd compiled whit MacCsound 1.5 (Csound 5.13 Universal binary):






;=======================
instr minutes
;=======================

kmin		invalue	"min"	           ; kvalue of the minutes from the GUI -
skiptime of minutes
imin		init	-1+i(kmin)            ; update the value of minutes set in GUI

ktinstr	timeinsts		           ; time in the instruments

ksec		invalue	"sec"	           ; kvalue of the seconds from the GUI -
skiptime of seconds


/*

with this attempt does not work

if	i(ksec)	== 0 then
idur			=	60

else
idur			=	60-i(ksec)

endif

*/

; another attempt would be as follows

idur		=	60-i(ksec) ; Therefore, depleted the 60-i(ksec), the next lap always
idur = 60 
; trad: - quindi, esaurito 60-i(ksec), al giro successivo sempre idur = 60



daqua:

if ktinstr = ktinstr +1 then
imin	= imin + 1 
endif

if imin	> 59 then
imin	= imin - 60
endif

timout 0, idur, continua
reinit	daqua
continua:
rireturn

kmin	=	imin
outvalue "mn", kmin		; to the GUI - exports to the display minutes in GUI

endin





i"minutes"	0	100

e




Version: 3
Render: Real
Ask: Yes
Functions: None
Listing: ioObject
WindowBounds: 2 46 1438 894
CurrentView: orc
IOViewEdit: On
Options: -b128 -A -s -m167 -R --midi-velocity-amp=4 --midi-key-cps=5 


ioView background {39321, 39321, 39321}
ioText {835, 22} {206, 95} label 0.000000 0.001000 "" center "Lucida Grande"
20 {0, 0, 0} {65535, 65535, 65535} nobackground border mm   :   ss   :   dd
ioText {498, 22} {163, 96} label 0.000000 0.100000 "" center "Lucida Grande"
18 {0, 0, 0} {65535, 65535, 65535} nobackground border skiptime
ioListing {7, 13} {473, 179}
ioText {519, 80} {54, 33} control 1.000000 1.000000 "min" right "Lucida
Grande" 18 {65535, 0, 0} {65535, 65535, 65535} nobackground noborder 1
ioText {519, 45} {53, 35} label 0.000000 1.000000 "" center "Lucida Grande"
20 {0, 0, 0} {65535, 65535, 65535} nobackground noborder mm
ioText {843, 67} {54, 43} display 3.000000 1.000000 "mn" right "Lucida
Grande" 28 {0, 0, 0} {65535, 65535, 65535} nobackground noborder 
ioText {577, 45} {65, 35} label 0.000000 1.000000 "" center "Lucida Grande"
20 {0, 0, 0} {65535, 65535, 65535} nobackground noborder ss
ioText {577, 79} {64, 34} control 56.000000 1.000000 "sec" right "Lucida
Grande" 18 {65535, 0, 0} {65535, 65535, 65535} nobackground noborder 56
ioText {901, 67} {65, 43} display 5.000000 1.000000 "sc" right "Lucida
Grande" 28 {0, 0, 0} {65535, 65535, 65535} nobackground noborder 
ioText {971, 67} {65, 43} display 0.000000 1.000000 "dc" right "Lucida
Grande" 28 {0, 0, 0} {65535, 65535, 65535} nobackground noborder 



--
View this message in context: http://csound.1045644.n5.nabble.com/idur-in-timout-tp4930066p4932549.html
Sent from the Csound - General mailing list archive at Nabble.com.


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-10-24 14:53
Fromjoachim heintz
SubjectRe: [Csnd] Re: idur_in_timout
hi enrico -
so what you actually want to do is:
1) get a start (or skip) time from the gui
2) add the time of the csound performance
3) send the result back to a widget?
is this correct?

	j


Am 24.10.2011 15:25, schrieb Enrico Francioni:
> 
> Hi joachim,
> 
> …the csd compiled whit MacCsound 1.5 (Csound 5.13 Universal binary):
> 
> 
> 
> 
> 
> 
> ;=======================
> instr minutes
> ;=======================
> 
> kmin		invalue	"min"	           ; kvalue of the minutes from the GUI -
> skiptime of minutes
> imin		init	-1+i(kmin)            ; update the value of minutes set in GUI
> 
> ktinstr	timeinsts		           ; time in the instruments
> 
> ksec		invalue	"sec"	           ; kvalue of the seconds from the GUI -
> skiptime of seconds
> 
> 
> /*
> 
> with this attempt does not work
> 
> if	i(ksec)	== 0 then
> idur			=	60
> 
> else
> idur			=	60-i(ksec)
> 
> endif
> 
> */
> 
> ; another attempt would be as follows
> 
> idur		=	60-i(ksec) ; Therefore, depleted the 60-i(ksec), the next lap always
> idur = 60 
> ; trad: - quindi, esaurito 60-i(ksec), al giro successivo sempre idur = 60
> 
> 
> 
> daqua:
> 
> if ktinstr = ktinstr +1 then
> imin	= imin + 1 
> endif
> 
> if imin	> 59 then
> imin	= imin - 60
> endif
> 
> timout 0, idur, continua
> reinit	daqua
> continua:
> rireturn
> 
> kmin	=	imin
> outvalue "mn", kmin		; to the GUI - exports to the display minutes in GUI
> 
> endin
> 
> 
> 
> 
> 
> i"minutes"	0	100
> 
> e
> 
> 
> 
> 
> Version: 3
> Render: Real
> Ask: Yes
> Functions: None
> Listing: ioObject
> WindowBounds: 2 46 1438 894
> CurrentView: orc
> IOViewEdit: On
> Options: -b128 -A -s -m167 -R --midi-velocity-amp=4 --midi-key-cps=5 
> 
> 
> ioView background {39321, 39321, 39321}
> ioText {835, 22} {206, 95} label 0.000000 0.001000 "" center "Lucida Grande"
> 20 {0, 0, 0} {65535, 65535, 65535} nobackground border mm   :   ss   :   dd
> ioText {498, 22} {163, 96} label 0.000000 0.100000 "" center "Lucida Grande"
> 18 {0, 0, 0} {65535, 65535, 65535} nobackground border skiptime
> ioListing {7, 13} {473, 179}
> ioText {519, 80} {54, 33} control 1.000000 1.000000 "min" right "Lucida
> Grande" 18 {65535, 0, 0} {65535, 65535, 65535} nobackground noborder 1
> ioText {519, 45} {53, 35} label 0.000000 1.000000 "" center "Lucida Grande"
> 20 {0, 0, 0} {65535, 65535, 65535} nobackground noborder mm
> ioText {843, 67} {54, 43} display 3.000000 1.000000 "mn" right "Lucida
> Grande" 28 {0, 0, 0} {65535, 65535, 65535} nobackground noborder 
> ioText {577, 45} {65, 35} label 0.000000 1.000000 "" center "Lucida Grande"
> 20 {0, 0, 0} {65535, 65535, 65535} nobackground noborder ss
> ioText {577, 79} {64, 34} control 56.000000 1.000000 "sec" right "Lucida
> Grande" 18 {65535, 0, 0} {65535, 65535, 65535} nobackground noborder 56
> ioText {901, 67} {65, 43} display 5.000000 1.000000 "sc" right "Lucida
> Grande" 28 {0, 0, 0} {65535, 65535, 65535} nobackground noborder 
> ioText {971, 67} {65, 43} display 0.000000 1.000000 "dc" right "Lucida
> Grande" 28 {0, 0, 0} {65535, 65535, 65535} nobackground noborder 
> 
> 
> 
> --
> View this message in context: http://csound.1045644.n5.nabble.com/idur-in-timout-tp4930066p4932549.html
> Sent from the Csound - General mailing list archive at Nabble.com.
> 
> 
> 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-10-24 15:14
FromEnrico Francioni
Subject[Csnd] Re: idur_in_timout
Hi…
Joachim excuse ... but I think I have solved with the addition of the part
in bold ...

The problem was that when I wrote in the GUI (invalue) skiptime a time
(seconds and minutes - for example 0' : 56") in the output values ​​of the
minutes was not calculated that the first round was to last for only 4"
(value for the minute).

0' after 04" =====> 1
1' after 60" =====> 2
2' after 60" =====> 3
3' after 60" =====> 4
etc ...

/is not easy to explain ...
the patch is part of a larger size of the CSD,
If you want I can attach it .../

e






joachim-3 wrote:
> 
> hi enrico -
> so what you actually want to do is:
> 1) get a start (or skip) time from the gui
> 2) add the time of the csound performance
> 3) send the result back to a widget?
> is this correct?
> 
> 	j
> 
> 
> Am 24.10.2011 15:25, schrieb Enrico Francioni:
>> 
>> Hi joachim,
>> 
>> …the csd compiled whit MacCsound 1.5 (Csound 5.13 Universal binary):
>> 
>> 
>> 
>> 
>> 
>> 
>> ;=======================
>> instr minutes
>> ;=======================
>> 
>> kmin		invalue	"min"	           ; kvalue of the minutes from the GUI -
>> skiptime of minutes
>> imin		init	-1+i(kmin)            ; update the value of minutes set in GUI
>> 
>> ktinstr	timeinsts		           ; time in the instruments
>> 
>> ksec		invalue	"sec"	           ; kvalue of the seconds from the GUI -
>> skiptime of seconds
>> 
>> 
>> /*
>> 
>> with this attempt does not work
>> 
>> if	i(ksec)	== 0 then
>> idur			=	60
>> 
>> else
>> idur			=	60-i(ksec)
>> 
>> endif
>> 
>> */
>> 
>> ; another attempt would be as follows
>> 
>> idur		=	60-i(ksec) ; Therefore, depleted the 60-i(ksec), the next lap
>> always
>> idur = 60 
>> ; trad: - quindi, esaurito 60-i(ksec), al giro successivo sempre idur =
>> 60
>> 
>> 
>> 
>> daqua:
>> 
>> if ktinstr = ktinstr +1 then
>> imin	= imin + 1 
> 	
>  *       if imin > i(kmin) then
> 	idur = 60
> 	endif*
> 
>> endif
>> 
>> if imin	> 59 then
>> imin	= imin - 60
>> endif
>> 
>> timout 0, idur, continua
>> reinit	daqua
>> continua:
>> rireturn
>> 
>> kmin	=	imin
>> outvalue "mn", kmin		; to the GUI - exports to the display minutes in GUI
>> 
>> endin
>> 
>> 
>> 
>> 
>> 
>> i"minutes"	0	100
>> 
>> e
>> 
>> 
>> 
>> 
>> Version: 3
>> Render: Real
>> Ask: Yes
>> Functions: None
>> Listing: ioObject
>> WindowBounds: 2 46 1438 894
>> CurrentView: orc
>> IOViewEdit: On
>> Options: -b128 -A -s -m167 -R --midi-velocity-amp=4 --midi-key-cps=5 
>> 
>> 
>> ioView background {39321, 39321, 39321}
>> ioText {835, 22} {206, 95} label 0.000000 0.001000 "" center "Lucida
>> Grande"
>> 20 {0, 0, 0} {65535, 65535, 65535} nobackground border mm   :   ss   :  
>> dd
>> ioText {498, 22} {163, 96} label 0.000000 0.100000 "" center "Lucida
>> Grande"
>> 18 {0, 0, 0} {65535, 65535, 65535} nobackground border skiptime
>> ioListing {7, 13} {473, 179}
>> ioText {519, 80} {54, 33} control 1.000000 1.000000 "min" right "Lucida
>> Grande" 18 {65535, 0, 0} {65535, 65535, 65535} nobackground noborder 1
>> ioText {519, 45} {53, 35} label 0.000000 1.000000 "" center "Lucida
>> Grande"
>> 20 {0, 0, 0} {65535, 65535, 65535} nobackground noborder mm
>> ioText {843, 67} {54, 43} display 3.000000 1.000000 "mn" right "Lucida
>> Grande" 28 {0, 0, 0} {65535, 65535, 65535} nobackground noborder 
>> ioText {577, 45} {65, 35} label 0.000000 1.000000 "" center "Lucida
>> Grande"
>> 20 {0, 0, 0} {65535, 65535, 65535} nobackground noborder ss
>> ioText {577, 79} {64, 34} control 56.000000 1.000000 "sec" right "Lucida
>> Grande" 18 {65535, 0, 0} {65535, 65535, 65535} nobackground noborder 56
>> ioText {901, 67} {65, 43} display 5.000000 1.000000 "sc" right "Lucida
>> Grande" 28 {0, 0, 0} {65535, 65535, 65535} nobackground noborder 
>> ioText {971, 67} {65, 43} display 0.000000 1.000000 "dc" right "Lucida
>> Grande" 28 {0, 0, 0} {65535, 65535, 65535} nobackground noborder 
>> 
>> 
>> 
>> --
>> View this message in context:
>> http://csound.1045644.n5.nabble.com/idur-in-timout-tp4930066p4932549.html
>> Sent from the Csound - General mailing list archive at Nabble.com.
>> 
>> 
>> 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@.ac 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@.ac with body "unsubscribe csound"
> 


--
View this message in context: http://csound.1045644.n5.nabble.com/idur-in-timout-tp4930066p4932731.html
Sent from the Csound - General mailing list archive at Nabble.com.


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-10-24 15:16
FromEnrico Francioni
Subject[Csnd] Re: idur_in_timout
Hi…
Joachim excuse ... but I think I have solved with the addition of the part
in bold ...

The problem was that when I wrote in the GUI (invalue) skiptime a time
(seconds and minutes - for example 0' : 56") in the output values ​​of the
minutes was not calculated that the first round was to last for only 4"
(value for the minute).

0' after 04" =====> 1
1' after 60" =====> 2
2' after 60" =====> 3
3' after 60" =====> 4
etc ...

/is not easy to explain ...
the patch is part of a larger size of the CSD,
If you want I can attach it .../

e

;=============================

> 
> 
> 
> ;=======================
> instr minutes
> ;=======================
> 
> kmin		invalue	"min"	           ; kvalue of the minutes from the GUI -
> skiptime of minutes
> imin		init	-1+i(kmin)            ; update the value of minutes set in GUI
> 
> ktinstr	timeinsts		           ; time in the instruments
> 
> ksec		invalue	"sec"	           ; kvalue of the seconds from the GUI -
> skiptime of seconds
> 
> 
> 
> ; another attempt would be as follows
> 
> idur		=	60-i(ksec) ; Therefore, depleted the 60-i(ksec), the next lap
> always
> idur = 60 
> ; trad: - quindi, esaurito 60-i(ksec), al giro successivo sempre idur = 60
> 
> 
> 
> daqua:
> 
> if ktinstr = ktinstr +1 then
> imin	= imin + 1 
	
 *       if imin > i(kmin) then
	idur = 60
	endif*

> endif
> 
> if imin	> 59 then
> imin	= imin - 60
> endif
> 
> timout 0, idur, continua
> reinit	daqua
> continua:
> rireturn
> 
> kmin	=	imin
> outvalue "mn", kmin		; to the GUI - exports to the display minutes in GUI
> 
> endin
> 
> 
> 
> 
> 
> i"minutes"	0	100
> 
> e
> 
> 
> 



;========================






joachim-3 wrote:
> 
> hi enrico -
> so what you actually want to do is:
> 1) get a start (or skip) time from the gui
> 2) add the time of the csound performance
> 3) send the result back to a widget?
> is this correct?
> 
> 	j
> 
> 
> Am 24.10.2011 15:25, schrieb Enrico Francioni:
>> 
>> Hi joachim,
>> 
>> …the csd compiled whit MacCsound 1.5 (Csound 5.13 Universal binary):
>> 
>> 
>> 
>> 
>> 
>> 
>> ;=======================
>> instr minutes
>> ;=======================
>> 
>> kmin		invalue	"min"	           ; kvalue of the minutes from the GUI -
>> skiptime of minutes
>> imin		init	-1+i(kmin)            ; update the value of minutes set in GUI
>> 
>> ktinstr	timeinsts		           ; time in the instruments
>> 
>> ksec		invalue	"sec"	           ; kvalue of the seconds from the GUI -
>> skiptime of seconds
>> 
>> 
>> 
>> ; another attempt would be as follows
>> 
>> idur		=	60-i(ksec) ; Therefore, depleted the 60-i(ksec), the next lap
>> always
>> idur = 60 
>> ; trad: - quindi, esaurito 60-i(ksec), al giro successivo sempre idur =
>> 60
>> 
>> 
>> 
>> daqua:
>> 
>> if ktinstr = ktinstr +1 then
>> imin	= imin + 1 
> 	
>  *       if imin > i(kmin) then
> 	idur = 60
> 	endif*
> 
>> endif
>> 
>> if imin	> 59 then
>> imin	= imin - 60
>> endif
>> 
>> timout 0, idur, continua
>> reinit	daqua
>> continua:
>> rireturn
>> 
>> kmin	=	imin
>> outvalue "mn", kmin		; to the GUI - exports to the display minutes in GUI
>> 
>> endin
>> 
>> 
>> 
>> 
>> 
>> i"minutes"	0	100
>> 
>> e
>> 
>> 
>> 
>> 
>> Version: 3
>> Render: Real
>> Ask: Yes
>> Functions: None
>> Listing: ioObject
>> WindowBounds: 2 46 1438 894
>> CurrentView: orc
>> IOViewEdit: On
>> Options: -b128 -A -s -m167 -R --midi-velocity-amp=4 --midi-key-cps=5 
>> 
>> 
>> ioView background {39321, 39321, 39321}
>> ioText {835, 22} {206, 95} label 0.000000 0.001000 "" center "Lucida
>> Grande"
>> 20 {0, 0, 0} {65535, 65535, 65535} nobackground border mm   :   ss   :  
>> dd
>> ioText {498, 22} {163, 96} label 0.000000 0.100000 "" center "Lucida
>> Grande"
>> 18 {0, 0, 0} {65535, 65535, 65535} nobackground border skiptime
>> ioListing {7, 13} {473, 179}
>> ioText {519, 80} {54, 33} control 1.000000 1.000000 "min" right "Lucida
>> Grande" 18 {65535, 0, 0} {65535, 65535, 65535} nobackground noborder 1
>> ioText {519, 45} {53, 35} label 0.000000 1.000000 "" center "Lucida
>> Grande"
>> 20 {0, 0, 0} {65535, 65535, 65535} nobackground noborder mm
>> ioText {843, 67} {54, 43} display 3.000000 1.000000 "mn" right "Lucida
>> Grande" 28 {0, 0, 0} {65535, 65535, 65535} nobackground noborder 
>> ioText {577, 45} {65, 35} label 0.000000 1.000000 "" center "Lucida
>> Grande"
>> 20 {0, 0, 0} {65535, 65535, 65535} nobackground noborder ss
>> ioText {577, 79} {64, 34} control 56.000000 1.000000 "sec" right "Lucida
>> Grande" 18 {65535, 0, 0} {65535, 65535, 65535} nobackground noborder 56
>> ioText {901, 67} {65, 43} display 5.000000 1.000000 "sc" right "Lucida
>> Grande" 28 {0, 0, 0} {65535, 65535, 65535} nobackground noborder 
>> ioText {971, 67} {65, 43} display 0.000000 1.000000 "dc" right "Lucida
>> Grande" 28 {0, 0, 0} {65535, 65535, 65535} nobackground noborder 
>> 
>> 
>> 
>> --
>> View this message in context:
>> http://csound.1045644.n5.nabble.com/idur-in-timout-tp4930066p4932549.html
>> Sent from the Csound - General mailing list archive at Nabble.com.
>> 
>> 
>> 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@.ac 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@.ac with body "unsubscribe csound"
> 


--
View this message in context: http://csound.1045644.n5.nabble.com/idur-in-timout-tp4930066p4932740.html
Sent from the Csound - General mailing list archive at Nabble.com.


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-10-24 15:21
Fromjoachim heintz
SubjectRe: [Csnd] Re: idur_in_timout
no problem, enrico. glad it works for you. all best -
	j


Am 24.10.2011 16:16, schrieb Enrico Francioni:
> 
> Hi…
> Joachim excuse ... but I think I have solved with the addition of the part
> in bold ...
> 
> The problem was that when I wrote in the GUI (invalue) skiptime a time
> (seconds and minutes - for example 0' : 56") in the output values ​​of the
> minutes was not calculated that the first round was to last for only 4"
> (value for the minute).
> 
> 0' after 04" =====> 1
> 1' after 60" =====> 2
> 2' after 60" =====> 3
> 3' after 60" =====> 4
> etc ...
> 
> /is not easy to explain ...
> the patch is part of a larger size of the CSD,
> If you want I can attach it .../
> 
> e
> 
> ;=============================
> 
>> 
>> 
>>
>> ;=======================
>> instr minutes
>> ;=======================
>>
>> kmin		invalue	"min"	           ; kvalue of the minutes from the GUI -
>> skiptime of minutes
>> imin		init	-1+i(kmin)            ; update the value of minutes set in GUI
>>
>> ktinstr	timeinsts		           ; time in the instruments
>>
>> ksec		invalue	"sec"	           ; kvalue of the seconds from the GUI -
>> skiptime of seconds
>>
>>
>>
>> ; another attempt would be as follows
>>
>> idur		=	60-i(ksec) ; Therefore, depleted the 60-i(ksec), the next lap
>> always
>> idur = 60 
>> ; trad: - quindi, esaurito 60-i(ksec), al giro successivo sempre idur = 60
>>
>>
>>
>> daqua:
>>
>> if ktinstr = ktinstr +1 then
>> imin	= imin + 1 
> 	
>  *       if imin > i(kmin) then
> 	idur = 60
> 	endif*
> 
>> endif
>>
>> if imin	> 59 then
>> imin	= imin - 60
>> endif
>>
>> timout 0, idur, continua
>> reinit	daqua
>> continua:
>> rireturn
>>
>> kmin	=	imin
>> outvalue "mn", kmin		; to the GUI - exports to the display minutes in GUI
>>
>> endin
>>
>>
>> 
>> 
>>
>> i"minutes"	0	100
>>
>> e
>> 
>>
>> 
> 
> 
> 
> ;========================
> 
> 
> 
> 
> 
> 
> joachim-3 wrote:
>>
>> hi enrico -
>> so what you actually want to do is:
>> 1) get a start (or skip) time from the gui
>> 2) add the time of the csound performance
>> 3) send the result back to a widget?
>> is this correct?
>>
>> 	j
>>
>>
>> Am 24.10.2011 15:25, schrieb Enrico Francioni:
>>>
>>> Hi joachim,
>>>
>>> …the csd compiled whit MacCsound 1.5 (Csound 5.13 Universal binary):
>>>
>>>
>>>
>>> 
>>> 
>>>
>>> ;=======================
>>> instr minutes
>>> ;=======================
>>>
>>> kmin		invalue	"min"	           ; kvalue of the minutes from the GUI -
>>> skiptime of minutes
>>> imin		init	-1+i(kmin)            ; update the value of minutes set in GUI
>>>
>>> ktinstr	timeinsts		           ; time in the instruments
>>>
>>> ksec		invalue	"sec"	           ; kvalue of the seconds from the GUI -
>>> skiptime of seconds
>>>
>>>
>>>
>>> ; another attempt would be as follows
>>>
>>> idur		=	60-i(ksec) ; Therefore, depleted the 60-i(ksec), the next lap
>>> always
>>> idur = 60 
>>> ; trad: - quindi, esaurito 60-i(ksec), al giro successivo sempre idur =
>>> 60
>>>
>>>
>>>
>>> daqua:
>>>
>>> if ktinstr = ktinstr +1 then
>>> imin	= imin + 1 
>> 	
>>  *       if imin > i(kmin) then
>> 	idur = 60
>> 	endif*
>>
>>> endif
>>>
>>> if imin	> 59 then
>>> imin	= imin - 60
>>> endif
>>>
>>> timout 0, idur, continua
>>> reinit	daqua
>>> continua:
>>> rireturn
>>>
>>> kmin	=	imin
>>> outvalue "mn", kmin		; to the GUI - exports to the display minutes in GUI
>>>
>>> endin
>>>
>>>
>>> 
>>> 
>>>
>>> i"minutes"	0	100
>>>
>>> e
>>> 
>>>
>>> 
>>> 
>>> Version: 3
>>> Render: Real
>>> Ask: Yes
>>> Functions: None
>>> Listing: ioObject
>>> WindowBounds: 2 46 1438 894
>>> CurrentView: orc
>>> IOViewEdit: On
>>> Options: -b128 -A -s -m167 -R --midi-velocity-amp=4 --midi-key-cps=5 
>>> 
>>> 
>>> ioView background {39321, 39321, 39321}
>>> ioText {835, 22} {206, 95} label 0.000000 0.001000 "" center "Lucida
>>> Grande"
>>> 20 {0, 0, 0} {65535, 65535, 65535} nobackground border mm   :   ss   :  
>>> dd
>>> ioText {498, 22} {163, 96} label 0.000000 0.100000 "" center "Lucida
>>> Grande"
>>> 18 {0, 0, 0} {65535, 65535, 65535} nobackground border skiptime
>>> ioListing {7, 13} {473, 179}
>>> ioText {519, 80} {54, 33} control 1.000000 1.000000 "min" right "Lucida
>>> Grande" 18 {65535, 0, 0} {65535, 65535, 65535} nobackground noborder 1
>>> ioText {519, 45} {53, 35} label 0.000000 1.000000 "" center "Lucida
>>> Grande"
>>> 20 {0, 0, 0} {65535, 65535, 65535} nobackground noborder mm
>>> ioText {843, 67} {54, 43} display 3.000000 1.000000 "mn" right "Lucida
>>> Grande" 28 {0, 0, 0} {65535, 65535, 65535} nobackground noborder 
>>> ioText {577, 45} {65, 35} label 0.000000 1.000000 "" center "Lucida
>>> Grande"
>>> 20 {0, 0, 0} {65535, 65535, 65535} nobackground noborder ss
>>> ioText {577, 79} {64, 34} control 56.000000 1.000000 "sec" right "Lucida
>>> Grande" 18 {65535, 0, 0} {65535, 65535, 65535} nobackground noborder 56
>>> ioText {901, 67} {65, 43} display 5.000000 1.000000 "sc" right "Lucida
>>> Grande" 28 {0, 0, 0} {65535, 65535, 65535} nobackground noborder 
>>> ioText {971, 67} {65, 43} display 0.000000 1.000000 "dc" right "Lucida
>>> Grande" 28 {0, 0, 0} {65535, 65535, 65535} nobackground noborder 
>>> 
>>>
>>>
>>> --
>>> View this message in context:
>>> http://csound.1045644.n5.nabble.com/idur-in-timout-tp4930066p4932549.html
>>> Sent from the Csound - General mailing list archive at Nabble.com.
>>>
>>>
>>> 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@.ac 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@.ac with body "unsubscribe csound"
>>
> 
> 
> --
> View this message in context: http://csound.1045644.n5.nabble.com/idur-in-timout-tp4930066p4932740.html
> Sent from the Csound - General mailing list archive at Nabble.com.
> 
> 
> 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-10-24 15:26
FromEnrico Francioni
Subject[Csnd] Re: idur_in_timout
thanks you joachim!

ok for csound conference in hannover?

…

e

--
View this message in context: http://csound.1045644.n5.nabble.com/idur-in-timout-tp4930066p4932774.html
Sent from the Csound - General mailing list archive at Nabble.com.


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-10-24 15:42
Fromjoachim heintz
SubjectRe: [Csnd] Re: idur_in_timout
oh yes, have a look at www.youtube.com/user/csconf2011
a lot of stuff for the upcoming long winter nights ... =)
	j


Am 24.10.2011 16:26, schrieb Enrico Francioni:
> 
> thanks you joachim!
> 
> ok for csound conference in hannover?
> 
> …
> 
> e
> 
> --
> View this message in context: http://csound.1045644.n5.nabble.com/idur-in-timout-tp4930066p4932774.html
> Sent from the Csound - General mailing list archive at Nabble.com.
> 
> 
> 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-10-24 15:49
FromEnrico Francioni
Subject[Csnd] Re: idur_in_timout
…also the concert of 1 oct, is ok?

;-)

e

--
View this message in context: http://csound.1045644.n5.nabble.com/idur-in-timout-tp4930066p4932876.html
Sent from the Csound - General mailing list archive at Nabble.com.


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"