[Csnd] Bug in sprintf?

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Csnd] Bug in sprintf?

Andreas Bergsland-2
Hi,

When I run the .csd below, I get

01234567890123456789012345678  rtevent:       T  0.500 TT  0.500 M:      0.0
012345678901234567890123456789/2.wav  rtevent:       T  1.000 TT 1.000
M:      0.0
012345678901234567890123456789/3.wav  rtevent:       T  1.500 TT 1.500
M:      0.0
012345678901234567890123456789/4.wav  rtevent:       T  2.000 TT 2.000
M:      0.0

This looks like a bug in sprintf. (I am on OSX 10.10.5, cs 6.08 binary
install).

Best, Andreas

<CsoundSynthesizer>
<CsOptions>
-odac
</CsOptions>
<CsInstruments>
instr    1
kcnt    init    0
kmetro    metro    2
kcnt    +=    kmetro
schedkwhen    kmetro, 0, 0, 2, 0, 0.1, kcnt
endin

instr    2
gSout    sprintf "012345678901234567890123456789/%i.wav", p4
prints    gSout
endin
</CsInstruments>
<CsScore>
i1    0    5
</CsScore>
</CsoundSynthesizer>


--
Andreas Bergsland

Associate professor - førsteamanuensis
Music Technology Programme - Musikkteknologiseksjonen
Department of Music - Institutt for musikk
Olavskvartalet
NTNU (Norwegian University of Science and Technology)
7491 Trondheim
NORWAY

Visiting address/besøksadresse: Fjordgt.1 (3.etg.)
e-mail: [hidden email]
Web: http://folk.ntnu.no/andbe
Office phone: 7359 0096
Mobile:       4566 3316


Csound mailing list
[hidden email]
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

andreas_bergsland.vcf (344 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Csnd] Bug in sprintf?

Tarmo Johannes-3
Hi,
What happens if you use a local string like
Sout?

Tarmo

26.03.2017 17:28 kirjutas kuupäeval "Andreas Bergsland" <[hidden email]>:
Hi,

When I run the .csd below, I get

01234567890123456789012345678  rtevent:       T  0.500 TT  0.500 M:      0.0
012345678901234567890123456789/2.wav  rtevent:       T  1.000 TT 1.000 M:      0.0
012345678901234567890123456789/3.wav  rtevent:       T  1.500 TT 1.500 M:      0.0
012345678901234567890123456789/4.wav  rtevent:       T  2.000 TT 2.000 M:      0.0

This looks like a bug in sprintf. (I am on OSX 10.10.5, cs 6.08 binary install).

Best, Andreas

<CsoundSynthesizer>
<CsOptions>
-odac
</CsOptions>
<CsInstruments>
instr    1
kcnt    init    0
kmetro    metro    2
kcnt    +=    kmetro
schedkwhen    kmetro, 0, 0, 2, 0, 0.1, kcnt
endin

instr    2
gSout    sprintf "012345678901234567890123456789/%i.wav", p4
prints    gSout
endin
</CsInstruments>
<CsScore>
i1    0    5
</CsScore>
</CsoundSynthesizer>


--
Andreas Bergsland

Associate professor - førsteamanuensis
Music Technology Programme - Musikkteknologiseksjonen
Department of Music - Institutt for musikk
Olavskvartalet
NTNU (Norwegian University of Science and Technology)
7491 Trondheim
NORWAY

Visiting address/besøksadresse: Fjordgt.1 (3.etg.)
e-mail: [hidden email]
Web: http://folk.ntnu.no/andbe
Office phone: 7359 0096
Mobile:       4566 3316


Csound mailing list
[hidden email]
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
       https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Csnd] Bug in sprintf?

jpff
In reply to this post by Andreas Bergsland-2
I cannot reprduce on current git code.  There ave bee canges in tis area


On Sun, 26 Mar 2017, Andreas Bergsland wrote:

> Hi,
>
> When I run the .csd below, I get
>
> 01234567890123456789012345678  rtevent:       T  0.500 TT  0.500 M:      0.0
> 012345678901234567890123456789/2.wav  rtevent:       T  1.000 TT 1.000 M:
> 0.0
> 012345678901234567890123456789/3.wav  rtevent:       T  1.500 TT 1.500 M:
> 0.0
> 012345678901234567890123456789/4.wav  rtevent:       T  2.000 TT 2.000 M:
> 0.0
>
> This looks like a bug in sprintf. (I am on OSX 10.10.5, cs 6.08 binary
> install).
>
> Best, Andreas
>
> <CsoundSynthesizer>
> <CsOptions>
> -odac
> </CsOptions>
> <CsInstruments>
> instr    1
> kcnt    init    0
> kmetro    metro    2
> kcnt    +=    kmetro
> schedkwhen    kmetro, 0, 0, 2, 0, 0.1, kcnt
> endin
>
> instr    2
> gSout    sprintf "012345678901234567890123456789/%i.wav", p4
> prints    gSout
> endin
> </CsInstruments>
> <CsScore>
> i1    0    5
> </CsScore>
> </CsoundSynthesizer>
>
>
> --
> Andreas Bergsland
>
> Associate professor - førsteamanuensis
> Music Technology Programme - Musikkteknologiseksjonen
> Department of Music - Institutt for musikk
> Olavskvartalet
> NTNU (Norwegian University of Science and Technology)
> 7491 Trondheim
> NORWAY
>
> Visiting address/besøksadresse: Fjordgt.1 (3.etg.)
> e-mail: [hidden email]
> Web: http://folk.ntnu.no/andbe
> Office phone: 7359 0096
> Mobile:       4566 3316
>
>
> Csound mailing list
> [hidden email]
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>       https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
>
Csound mailing list
[hidden email]
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Csnd] Bug in sprintf?

Andreas Bergsland-2
In reply to this post by Tarmo Johannes-3
It is the same result.
Andreas
Hi,
What happens if you use a local string like
Sout?

Tarmo

26.03.2017 17:28 kirjutas kuupäeval "Andreas Bergsland" <[hidden email]>:
Hi,

When I run the .csd below, I get

01234567890123456789012345678  rtevent:       T  0.500 TT  0.500 M:      0.0
012345678901234567890123456789/2.wav  rtevent:       T  1.000 TT 1.000 M:      0.0
012345678901234567890123456789/3.wav  rtevent:       T  1.500 TT 1.500 M:      0.0
012345678901234567890123456789/4.wav  rtevent:       T  2.000 TT 2.000 M:      0.0

This looks like a bug in sprintf. (I am on OSX 10.10.5, cs 6.08 binary install).

Best, Andreas

<CsoundSynthesizer>
<CsOptions>
-odac
</CsOptions>
<CsInstruments>
instr    1
kcnt    init    0
kmetro    metro    2
kcnt    +=    kmetro
schedkwhen    kmetro, 0, 0, 2, 0, 0.1, kcnt
endin

instr    2
gSout    sprintf "012345678901234567890123456789/%i.wav", p4
prints    gSout
endin
</CsInstruments>
<CsScore>
i1    0    5
</CsScore>
</CsoundSynthesizer>


--
Andreas Bergsland

Associate professor - førsteamanuensis
Music Technology Programme - Musikkteknologiseksjonen
Department of Music - Institutt for musikk
Olavskvartalet
NTNU (Norwegian University of Science and Technology)
7491 Trondheim
NORWAY

Visiting address/besøksadresse: Fjordgt.1 (3.etg.)
e-mail: [hidden email]
Web: http://folk.ntnu.no/andbe
Office phone: 7359 0096
Mobile:       4566 3316


Csound mailing list
[hidden email]
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
       https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here


-- 
Andreas Bergsland

Associate professor - førsteamanuensis
Music Technology Programme - Musikkteknologiseksjonen
Department of Music - Institutt for musikk
Olavskvartalet
NTNU (Norwegian University of Science and Technology)
7491 Trondheim
NORWAY

Visiting address/besøksadresse: Fjordgt.1 (3.etg.)
e-mail: [hidden email]
Web: http://folk.ntnu.no/andbe
Office phone: 7359 0096
Mobile:       4566 3316
Csound mailing list [hidden email] https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

andreas_bergsland.vcf (344 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Csnd] Bug in sprintf?

Andreas Bergsland-2
In reply to this post by jpff
Ok, so it might already be fixed, then. BTW the same thing happened when
replacing sprintf with sprintfk in instr 2
Andreas

> I cannot reprduce on current git code.  There ave bee canges in tis area
>
>
> On Sun, 26 Mar 2017, Andreas Bergsland wrote:
>
>> Hi,
>>
>> When I run the .csd below, I get
>>
>> 01234567890123456789012345678  rtevent:       T  0.500 TT  0.500
>> M:      0.0
>> 012345678901234567890123456789/2.wav  rtevent:       T  1.000 TT
>> 1.000 M: 0.0
>> 012345678901234567890123456789/3.wav  rtevent:       T  1.500 TT
>> 1.500 M: 0.0
>> 012345678901234567890123456789/4.wav  rtevent:       T  2.000 TT
>> 2.000 M: 0.0
>>
>> This looks like a bug in sprintf. (I am on OSX 10.10.5, cs 6.08
>> binary install).
>>
>> Best, Andreas
>>
>> <CsoundSynthesizer>
>> <CsOptions>
>> -odac
>> </CsOptions>
>> <CsInstruments>
>> instr    1
>> kcnt    init    0
>> kmetro    metro    2
>> kcnt    +=    kmetro
>> schedkwhen    kmetro, 0, 0, 2, 0, 0.1, kcnt
>> endin
>>
>> instr    2
>> gSout    sprintf "012345678901234567890123456789/%i.wav", p4
>> prints    gSout
>> endin
>> </CsInstruments>
>> <CsScore>
>> i1    0    5
>> </CsScore>
>> </CsoundSynthesizer>
>>
>>
>> --
>> Andreas Bergsland
>>
>> Associate professor - førsteamanuensis
>> Music Technology Programme - Musikkteknologiseksjonen
>> Department of Music - Institutt for musikk
>> Olavskvartalet
>> NTNU (Norwegian University of Science and Technology)
>> 7491 Trondheim
>> NORWAY
>>
>> Visiting address/besøksadresse: Fjordgt.1 (3.etg.)
>> e-mail: [hidden email]
>> Web: http://folk.ntnu.no/andbe
>> Office phone: 7359 0096
>> Mobile:       4566 3316
>>
>>
>> Csound mailing list
>> [hidden email]
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>       https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>>
>
> Csound mailing list
> [hidden email]
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

--
Andreas Bergsland

Associate professor - førsteamanuensis
Music Technology Programme - Musikkteknologiseksjonen
Department of Music - Institutt for musikk
Olavskvartalet
NTNU (Norwegian University of Science and Technology)
7491 Trondheim
NORWAY

Visiting address/besøksadresse: Fjordgt.1 (3.etg.)
e-mail: [hidden email]
Web: http://folk.ntnu.no/andbe
Office phone: 7359 0096
Mobile:       4566 3316


Csound mailing list
[hidden email]
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

andreas_bergsland.vcf (344 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Csnd] Bug in sprintf?

jpff
We need a OSX user to check.   I see

SECTION 1:
new alloc for instr 1:
   rtevent:         T  0.000 TT  0.000 M:      0.0
new alloc for instr 2:
6 5
012345678901234567890123456789/1.wav  rtevent:     T  0.500 TT  0.500 M:
0.0
74 36
012345678901234567890123456789/2.wav  rtevent:     T  1.000 TT  1.000 M:
0.0
74 36
012345678901234567890123456789/3.wav  rtevent:     T  1.500 TT  1.500 M:
0.0
74 36
012345678901234567890123456789/4.wav  rtevent:     T  2.000 TT  2.000 M:
0.0
74 36
012345678901234567890123456789/5.wav  rtevent:     T  2.500 TT  2.500 M:
0.0
74 36
012345678901234567890123456789/6.wav  rtevent:     T  3.000 TT  3.000 M:
0.0
74 36
012345678901234567890123456789/7.wav  rtevent:     T  3.500 TT  3.500 M:
0.0
74 36
012345678901234567890123456789/8.wav  rtevent:     T  4.000 TT  4.000 M:
0.0
74 36
012345678901234567890123456789/9.wav  rtevent:     T  4.500 TT  4.500 M:
0.0
74 36
012345678901234567890123456789/10.wavB  0.000 ..  5.000 T  5.000 TT  5.000
M:      0.0
Score finished in csoundPerform().



On Sun, 26 Mar 2017, Andreas Bergsland wrote:

> Ok, so it might already be fixed, then. BTW the same thing happened when
> replacing sprintf with sprintfk in instr 2
> Andreas
>> I cannot reprduce on current git code.  There ave bee canges in tis area
>>
>>
>> On Sun, 26 Mar 2017, Andreas Bergsland wrote:
>>
>>> Hi,
>>>
>>> When I run the .csd below, I get
>>>
>>> 01234567890123456789012345678  rtevent:       T  0.500 TT  0.500 M:
>>> 0.0
>>> 012345678901234567890123456789/2.wav  rtevent:       T  1.000 TT 1.000 M:
>>> 0.0
>>> 012345678901234567890123456789/3.wav  rtevent:       T  1.500 TT 1.500 M:
>>> 0.0
>>> 012345678901234567890123456789/4.wav  rtevent:       T  2.000 TT 2.000 M:
>>> 0.0
>>>
>>> This looks like a bug in sprintf. (I am on OSX 10.10.5, cs 6.08 binary
>>> install).
>>>
>>> Best, Andreas
>>>
>>> <CsoundSynthesizer>
>>> <CsOptions>
>>> -odac
>>> </CsOptions>
>>> <CsInstruments>
>>> instr    1
>>> kcnt    init    0
>>> kmetro    metro    2
>>> kcnt    +=    kmetro
>>> schedkwhen    kmetro, 0, 0, 2, 0, 0.1, kcnt
>>> endin
>>>
>>> instr    2
>>> gSout    sprintf "012345678901234567890123456789/%i.wav", p4
>>> prints    gSout
>>> endin
>>> </CsInstruments>
>>> <CsScore>
>>> i1    0    5
>>> </CsScore>
>>> </CsoundSynthesizer>
>>>
>>>
>>> --
>>> Andreas Bergsland
>>>
>>> Associate professor - førsteamanuensis
>>> Music Technology Programme - Musikkteknologiseksjonen
>>> Department of Music - Institutt for musikk
>>> Olavskvartalet
>>> NTNU (Norwegian University of Science and Technology)
>>> 7491 Trondheim
>>> NORWAY
>>>
>>> Visiting address/besøksadresse: Fjordgt.1 (3.etg.)
>>> e-mail: [hidden email]
>>> Web: http://folk.ntnu.no/andbe
>>> Office phone: 7359 0096
>>> Mobile:       4566 3316
>>>
>>>
>>> Csound mailing list
>>> [hidden email]
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>> Send bugs reports to
>>>       https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>>>
>>
>> Csound mailing list
>> [hidden email]
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>        https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>
>
> --
> Andreas Bergsland
>
> Associate professor - førsteamanuensis
> Music Technology Programme - Musikkteknologiseksjonen
> Department of Music - Institutt for musikk
> Olavskvartalet
> NTNU (Norwegian University of Science and Technology)
> 7491 Trondheim
> NORWAY
>
> Visiting address/besøksadresse: Fjordgt.1 (3.etg.)
> e-mail: [hidden email]
> Web: http://folk.ntnu.no/andbe
> Office phone: 7359 0096
> Mobile:       4566 3316
>
>
> Csound mailing list
> [hidden email]
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>       https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
>
Csound mailing list
[hidden email]
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Csnd] Bug in sprintf?

Victor Lazzarini
I get the same result here on OSX.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

> On 26 Mar 2017, at 21:15, jpff <[hidden email]> wrote:
>
> We need a OSX user to check.   I see
>
> SECTION 1:
> new alloc for instr 1:
>  rtevent:         T  0.000 TT  0.000 M:      0.0
> new alloc for instr 2:
> 6 5
> 012345678901234567890123456789/1.wav  rtevent:     T  0.500 TT  0.500 M: 0.0
> 74 36
> 012345678901234567890123456789/2.wav  rtevent:     T  1.000 TT  1.000 M: 0.0
> 74 36
> 012345678901234567890123456789/3.wav  rtevent:     T  1.500 TT  1.500 M: 0.0
> 74 36
> 012345678901234567890123456789/4.wav  rtevent:     T  2.000 TT  2.000 M: 0.0
> 74 36
> 012345678901234567890123456789/5.wav  rtevent:     T  2.500 TT  2.500 M: 0.0
> 74 36
> 012345678901234567890123456789/6.wav  rtevent:     T  3.000 TT  3.000 M: 0.0
> 74 36
> 012345678901234567890123456789/7.wav  rtevent:     T  3.500 TT  3.500 M: 0.0
> 74 36
> 012345678901234567890123456789/8.wav  rtevent:     T  4.000 TT  4.000 M: 0.0
> 74 36
> 012345678901234567890123456789/9.wav  rtevent:     T  4.500 TT  4.500 M: 0.0
> 74 36
> 012345678901234567890123456789/10.wavB  0.000 ..  5.000 T  5.000 TT  5.000 M:      0.0
> Score finished in csoundPerform().
>
>
>
> On Sun, 26 Mar 2017, Andreas Bergsland wrote:
>
>> Ok, so it might already be fixed, then. BTW the same thing happened when replacing sprintf with sprintfk in instr 2
>> Andreas
>>> I cannot reprduce on current git code.  There ave bee canges in tis area
>>> On Sun, 26 Mar 2017, Andreas Bergsland wrote:
>>>> Hi,
>>>> When I run the .csd below, I get
>>>> 01234567890123456789012345678  rtevent:       T  0.500 TT  0.500 M: 0.0
>>>> 012345678901234567890123456789/2.wav  rtevent:       T  1.000 TT 1.000 M: 0.0
>>>> 012345678901234567890123456789/3.wav  rtevent:       T  1.500 TT 1.500 M: 0.0
>>>> 012345678901234567890123456789/4.wav  rtevent:       T  2.000 TT 2.000 M: 0.0
>>>> This looks like a bug in sprintf. (I am on OSX 10.10.5, cs 6.08 binary install).
>>>> Best, Andreas
>>>> <CsoundSynthesizer>
>>>> <CsOptions>
>>>> -odac
>>>> </CsOptions>
>>>> <CsInstruments>
>>>> instr    1
>>>> kcnt    init    0
>>>> kmetro    metro    2
>>>> kcnt    +=    kmetro
>>>> schedkwhen    kmetro, 0, 0, 2, 0, 0.1, kcnt
>>>> endin
>>>> instr    2
>>>> gSout    sprintf "012345678901234567890123456789/%i.wav", p4
>>>> prints    gSout
>>>> endin
>>>> </CsInstruments>
>>>> <CsScore>
>>>> i1    0    5
>>>> </CsScore>
>>>> </CsoundSynthesizer>
>>>> --
>>>> Andreas Bergsland
>>>> Associate professor - førsteamanuensis
>>>> Music Technology Programme - Musikkteknologiseksjonen
>>>> Department of Music - Institutt for musikk
>>>> Olavskvartalet
>>>> NTNU (Norwegian University of Science and Technology)
>>>> 7491 Trondheim
>>>> NORWAY
>>>> Visiting address/besøksadresse: Fjordgt.1 (3.etg.)
>>>> e-mail: [hidden email]
>>>> Web: http://folk.ntnu.no/andbe
>>>> Office phone: 7359 0096
>>>> Mobile:       4566 3316
>>>> Csound mailing list
>>>> [hidden email]
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>> Send bugs reports to
>>>>      https://github.com/csound/csound/issues
>>>> Discussions of bugs and features can be posted here
>>> Csound mailing list
>>> [hidden email]
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>> Send bugs reports to
>>>       https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>>
>>
>> --
>> Andreas Bergsland
>>
>> Associate professor - førsteamanuensis
>> Music Technology Programme - Musikkteknologiseksjonen
>> Department of Music - Institutt for musikk
>> Olavskvartalet
>> NTNU (Norwegian University of Science and Technology)
>> 7491 Trondheim
>> NORWAY
>>
>> Visiting address/besøksadresse: Fjordgt.1 (3.etg.)
>> e-mail: [hidden email]
>> Web: http://folk.ntnu.no/andbe
>> Office phone: 7359 0096
>> Mobile:       4566 3316
>>
>>
>> Csound mailing list
>> [hidden email]
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>      https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>>
>
> Csound mailing list
> [hidden email]
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>       https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here


Csound mailing list
[hidden email]
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Csnd] Bug in sprintf?

Andreas Bergsland-2
Great, thanks. I reckon it means it is already fixed!
Andreas

> I get the same result here on OSX.
> ========================
> Prof. Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952
>
>> On 26 Mar 2017, at 21:15, jpff <[hidden email]> wrote:
>>
>> We need a OSX user to check.   I see
>>
>> SECTION 1:
>> new alloc for instr 1:
>>   rtevent:         T  0.000 TT  0.000 M:      0.0
>> new alloc for instr 2:
>> 6 5
>> 012345678901234567890123456789/1.wav  rtevent:     T  0.500 TT  0.500 M: 0.0
>> 74 36
>> 012345678901234567890123456789/2.wav  rtevent:     T  1.000 TT  1.000 M: 0.0
>> 74 36
>> 012345678901234567890123456789/3.wav  rtevent:     T  1.500 TT  1.500 M: 0.0
>> 74 36
>> 012345678901234567890123456789/4.wav  rtevent:     T  2.000 TT  2.000 M: 0.0
>> 74 36
>> 012345678901234567890123456789/5.wav  rtevent:     T  2.500 TT  2.500 M: 0.0
>> 74 36
>> 012345678901234567890123456789/6.wav  rtevent:     T  3.000 TT  3.000 M: 0.0
>> 74 36
>> 012345678901234567890123456789/7.wav  rtevent:     T  3.500 TT  3.500 M: 0.0
>> 74 36
>> 012345678901234567890123456789/8.wav  rtevent:     T  4.000 TT  4.000 M: 0.0
>> 74 36
>> 012345678901234567890123456789/9.wav  rtevent:     T  4.500 TT  4.500 M: 0.0
>> 74 36
>> 012345678901234567890123456789/10.wavB  0.000 ..  5.000 T  5.000 TT  5.000 M:      0.0
>> Score finished in csoundPerform().
>>
>>
>>
>> On Sun, 26 Mar 2017, Andreas Bergsland wrote:
>>
>>> Ok, so it might already be fixed, then. BTW the same thing happened when replacing sprintf with sprintfk in instr 2
>>> Andreas
>>>> I cannot reprduce on current git code.  There ave bee canges in tis area
>>>> On Sun, 26 Mar 2017, Andreas Bergsland wrote:
>>>>> Hi,
>>>>> When I run the .csd below, I get
>>>>> 01234567890123456789012345678  rtevent:       T  0.500 TT  0.500 M: 0.0
>>>>> 012345678901234567890123456789/2.wav  rtevent:       T  1.000 TT 1.000 M: 0.0
>>>>> 012345678901234567890123456789/3.wav  rtevent:       T  1.500 TT 1.500 M: 0.0
>>>>> 012345678901234567890123456789/4.wav  rtevent:       T  2.000 TT 2.000 M: 0.0
>>>>> This looks like a bug in sprintf. (I am on OSX 10.10.5, cs 6.08 binary install).
>>>>> Best, Andreas
>>>>> <CsoundSynthesizer>
>>>>> <CsOptions>
>>>>> -odac
>>>>> </CsOptions>
>>>>> <CsInstruments>
>>>>> instr    1
>>>>> kcnt    init    0
>>>>> kmetro    metro    2
>>>>> kcnt    +=    kmetro
>>>>> schedkwhen    kmetro, 0, 0, 2, 0, 0.1, kcnt
>>>>> endin
>>>>> instr    2
>>>>> gSout    sprintf "012345678901234567890123456789/%i.wav", p4
>>>>> prints    gSout
>>>>> endin
>>>>> </CsInstruments>
>>>>> <CsScore>
>>>>> i1    0    5
>>>>> </CsScore>
>>>>> </CsoundSynthesizer>
>>>>> --
>>>>> Andreas Bergsland
>>>>> Associate professor - førsteamanuensis
>>>>> Music Technology Programme - Musikkteknologiseksjonen
>>>>> Department of Music - Institutt for musikk
>>>>> Olavskvartalet
>>>>> NTNU (Norwegian University of Science and Technology)
>>>>> 7491 Trondheim
>>>>> NORWAY
>>>>> Visiting address/besøksadresse: Fjordgt.1 (3.etg.)
>>>>> e-mail: [hidden email]
>>>>> Web: http://folk.ntnu.no/andbe
>>>>> Office phone: 7359 0096
>>>>> Mobile:       4566 3316
>>>>> Csound mailing list
>>>>> [hidden email]
>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>> Send bugs reports to
>>>>>       https://github.com/csound/csound/issues
>>>>> Discussions of bugs and features can be posted here
>>>> Csound mailing list
>>>> [hidden email]
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>> Send bugs reports to
>>>>        https://github.com/csound/csound/issues
>>>> Discussions of bugs and features can be posted here
>>>
>>> --
>>> Andreas Bergsland
>>>
>>> Associate professor - førsteamanuensis
>>> Music Technology Programme - Musikkteknologiseksjonen
>>> Department of Music - Institutt for musikk
>>> Olavskvartalet
>>> NTNU (Norwegian University of Science and Technology)
>>> 7491 Trondheim
>>> NORWAY
>>>
>>> Visiting address/besøksadresse: Fjordgt.1 (3.etg.)
>>> e-mail: [hidden email]
>>> Web: http://folk.ntnu.no/andbe
>>> Office phone: 7359 0096
>>> Mobile:       4566 3316
>>>
>>>
>>> Csound mailing list
>>> [hidden email]
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>> Send bugs reports to
>>>       https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>>>
>> Csound mailing list
>> [hidden email]
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>        https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>
> Csound mailing list
> [hidden email]
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>          https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

--
Andreas Bergsland

Associate professor - førsteamanuensis
Music Technology Programme - Musikkteknologiseksjonen
Department of Music - Institutt for musikk
Olavskvartalet
NTNU (Norwegian University of Science and Technology)
7491 Trondheim
NORWAY

Visiting address/besøksadresse: Fjordgt.1 (3.etg.)
e-mail: [hidden email]
Web: http://folk.ntnu.no/andbe
Office phone: 7359 0096
Mobile:       4566 3316


Csound mailing list
[hidden email]
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

andreas_bergsland.vcf (344 bytes) Download Attachment
Loading...