Csound Csound-dev Csound-tekno Search About

[Csnd] Bug Opcode Date

Date2012-07-04 17:32
Fromluis antunes pena
Subject[Csnd] Bug Opcode Date
Hello,
it seams like the dates and date opcodes are not working with Csound 5.17 (double samples) on OSX 10.6. The output is allways the same: Thu Jan  1 01:00:00 1970. However using csoundqt it works as expected. I recall that it was working well in the previous csound version.
Is there any chance to correct this for the next release?
Best,
Luis

Here's a test csd.

<CsoundSynthesizer>

<CsOptions>

-odac -d -m0

</CsOptions>

<CsInstruments>

instr 1

Sdate dates

ir date

prints Sdate

prints "\\t %f\\n", ir

endin

</CsInstruments>

<CsScore>

i1 0 1

e

</CsScore>

</CsoundSynthesizer>




-- 
--
http://luisantunespena.eu

Date2012-07-04 23:20
Fromjoachim heintz
SubjectRe: [Csnd] Bug Opcode Date
hi luis -

i think it works, but you must use it in this way (ir as argument in the
dates opcode):



-odac -d -m0


instr 1
ir date
Sdate dates, ir
prints Sdate
prints "\\t %f\\n", ir
endin


i1 0 1
e



best -
	joachim



Am 04.07.2012 18:32, schrieb luis antunes pena:
> 
> 
> 
> 
> -odac -d -m0
> 
> 
> 
> 
> 
> instr 1
> 
> Sdate dates
> 
> ir date
> 
> prints Sdate
> 
> prints "\\t %f\\n", ir
> 
> endin
> 
> 
> 
> 
> 
> i1 0 1
> 
> e
> 
> 
> 
> 
> 


Date2012-07-04 23:33
Fromjoachim heintz
SubjectRe: [Csnd] Bug Opcode Date
but you are right that this should be the default, as the manuals states:
itime -- the time is seconds since the start of the epoch. If omited or
negative the current time is taken.

and as i see right now, negative values do not work, too.

there is a typo in my code: should be
Sdate dates ir
instead of
Sdate dates, ir

	joachim


Am 05.07.2012 00:20, schrieb joachim heintz:
> hi luis -
> 
> i think it works, but you must use it in this way (ir as argument in the
> dates opcode):
> 
> 
> 
> -odac -d -m0
> 
> 
> instr 1
> ir date
> Sdate dates, ir
> prints Sdate
> prints "\\t %f\\n", ir
> endin
> 
> 
> i1 0 1
> e
> 
> 
> 
> best -
> 	joachim
> 
> 
> 
> Am 04.07.2012 18:32, schrieb luis antunes pena:
>> 
>>
>> 
>>
>> -odac -d -m0
>>
>> 
>>
>> 
>>
>> instr 1
>>
>> Sdate dates
>>
>> ir date
>>
>> prints Sdate
>>
>> prints "\\t %f\\n", ir
>>
>> endin
>>
>> 
>>
>> 
>>
>> i1 0 1
>>
>> e
>>
>> 
>>
>> 
>>
> 
> 
> 
> 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"
> 
> 


Date2012-07-05 07:44
FromTito Latini
SubjectRe: [Csnd] Bug Opcode Date
AttachmentsNone  

Date2012-07-05 19:55
Fromjoachim heintz
SubjectRe: [Csnd] Bug Opcode Date
thanks tito!
	j


Am 05.07.2012 08:44, schrieb Tito Latini:
> Back to the future, the time machine is ok in git.
> 
> 
> 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"
> 
> 


Date2012-07-06 06:54
Fromluis antunes pena
SubjectRe: [Csnd] Bug Opcode Date
great. thank you both for taling care of this.
best,
luis

Am 05.07.12 20:55, schrieb joachim heintz:
> thanks tito!
> 	j
>
>
> Am 05.07.2012 08:44, schrieb Tito Latini:
>> Back to the future, the time machine is ok in git.
>>
>>
>> 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"
>
>


-- 
--
http://luisantunespena.eu