Csound Csound-dev Csound-tekno Search About

Bug in sprintf?

Date2017-03-26 15:28
FromAndreas Bergsland
SubjectBug in sprintf?
Attachmentsandreas_bergsland.vcf  
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



-odac


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


i1    0    5




-- 
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: andreas.bergsland@ntnu.no
Web: http://folk.ntnu.no/andbe
Office phone: 7359 0096
Mobile:       4566 3316


Csound mailing list
Csound@listserv.heanet.ie
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

Date2017-03-26 16:00
FromTarmo Johannes
SubjectRe: Bug in sprintf?
Hi,
What happens if you use a local string like
Sout?

Tarmo

26.03.2017 17:28 kirjutas kuupäeval "Andreas Bergsland" <andreas.bergsland@ntnu.no>:
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: andreas.bergsland@ntnu.no
Web: http://folk.ntnu.no/andbe
Office phone: 7359 0096
Mobile:       4566 3316


Csound mailing list
Csound@listserv.heanet.ie
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 Csound@listserv.heanet.ie 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

Date2017-03-26 16:11
Fromjpff
SubjectRe: Bug in sprintf?
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
>
> 
> 
> -odac
> 
> 
> 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
> 
> 
> i1    0    5
> 
> 
>
>
> -- 
> 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: andreas.bergsland@ntnu.no
> Web: http://folk.ntnu.no/andbe
> Office phone: 7359 0096
> Mobile:       4566 3316
>
>
> Csound mailing list
> Csound@listserv.heanet.ie
> 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
Csound@listserv.heanet.ie
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

Date2017-03-26 20:29
FromAndreas Bergsland
SubjectRe: Bug in sprintf?
Attachmentsandreas_bergsland.vcf  
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" <andreas.bergsland@ntnu.no>:
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: andreas.bergsland@ntnu.no
Web: http://folk.ntnu.no/andbe
Office phone: 7359 0096
Mobile:       4566 3316


Csound mailing list
Csound@listserv.heanet.ie
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 Csound@listserv.heanet.ie 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: andreas.bergsland@ntnu.no
Web: http://folk.ntnu.no/andbe
Office phone: 7359 0096
Mobile:       4566 3316

Date2017-03-26 20:34
FromAndreas Bergsland
SubjectRe: Bug in sprintf?
Attachmentsandreas_bergsland.vcf  
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
>>
>> 
>> 
>> -odac
>> 
>> 
>> 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
>> 
>> 
>> i1    0    5
>> 
>> 
>>
>>
>> -- 
>> 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: andreas.bergsland@ntnu.no
>> Web: http://folk.ntnu.no/andbe
>> Office phone: 7359 0096
>> Mobile:       4566 3316
>>
>>
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> 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
> Csound@listserv.heanet.ie
> 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: andreas.bergsland@ntnu.no
Web: http://folk.ntnu.no/andbe
Office phone: 7359 0096
Mobile:       4566 3316


Csound mailing list
Csound@listserv.heanet.ie
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

Date2017-03-26 21:15
Fromjpff
SubjectRe: Bug in sprintf?
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
>>> 
>>> 
>>> 
>>> -odac
>>> 
>>> 
>>> 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
>>> 
>>> 
>>> i1    0    5
>>> 
>>> 
>>> 
>>> 
>>> -- 
>>> 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: andreas.bergsland@ntnu.no
>>> Web: http://folk.ntnu.no/andbe
>>> Office phone: 7359 0096
>>> Mobile:       4566 3316
>>> 
>>> 
>>> Csound mailing list
>>> Csound@listserv.heanet.ie
>>> 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
>> Csound@listserv.heanet.ie
>> 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: andreas.bergsland@ntnu.no
> Web: http://folk.ntnu.no/andbe
> Office phone: 7359 0096
> Mobile:       4566 3316
>
>
> Csound mailing list
> Csound@listserv.heanet.ie
> 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
Csound@listserv.heanet.ie
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

Date2017-03-26 21:33
FromVictor Lazzarini
SubjectRe: Bug in sprintf?
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  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
>>>> 
>>>> 
>>>> -odac
>>>> 
>>>> 
>>>> 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
>>>> 
>>>> 
>>>> i1    0    5
>>>> 
>>>> 
>>>> -- 
>>>> 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: andreas.bergsland@ntnu.no
>>>> Web: http://folk.ntnu.no/andbe
>>>> Office phone: 7359 0096
>>>> Mobile:       4566 3316
>>>> Csound mailing list
>>>> Csound@listserv.heanet.ie
>>>> 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
>>> Csound@listserv.heanet.ie
>>> 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: andreas.bergsland@ntnu.no
>> Web: http://folk.ntnu.no/andbe
>> Office phone: 7359 0096
>> Mobile:       4566 3316
>> 
>> 
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> 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
> Csound@listserv.heanet.ie
> 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
Csound@listserv.heanet.ie
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

Date2017-03-27 14:35
FromAndreas Bergsland
SubjectRe: Bug in sprintf?
Attachmentsandreas_bergsland.vcf  
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  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
>>>>> 
>>>>> 
>>>>> -odac
>>>>> 
>>>>> 
>>>>> 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
>>>>> 
>>>>> 
>>>>> i1    0    5
>>>>> 
>>>>> 
>>>>> -- 
>>>>> 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: andreas.bergsland@ntnu.no
>>>>> Web: http://folk.ntnu.no/andbe
>>>>> Office phone: 7359 0096
>>>>> Mobile:       4566 3316
>>>>> Csound mailing list
>>>>> Csound@listserv.heanet.ie
>>>>> 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
>>>> Csound@listserv.heanet.ie
>>>> 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: andreas.bergsland@ntnu.no
>>> Web: http://folk.ntnu.no/andbe
>>> Office phone: 7359 0096
>>> Mobile:       4566 3316
>>>
>>>
>>> Csound mailing list
>>> Csound@listserv.heanet.ie
>>> 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
>> Csound@listserv.heanet.ie
>> 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
> Csound@listserv.heanet.ie
> 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: andreas.bergsland@ntnu.no
Web: http://folk.ntnu.no/andbe
Office phone: 7359 0096
Mobile:       4566 3316


Csound mailing list
Csound@listserv.heanet.ie
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