| 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"
|