Csound Csound-dev Csound-tekno Search About

[Csnd] buggy(?) behavior of printks (in Cabbage) and fprintks

Date2018-12-31 22:23
FromRichard
Subject[Csnd] buggy(?) behavior of printks (in Cabbage) and fprintks
This is related to my earlier post that my old midi to score csd do not 
work any more.
I have added these two lines to instr 10 of the Midi_Note_Recorder 
Cabbage csd by Ian M.

   printks "i %2.0f\\t%15.6f\\t%15.6f\\t%d\\t%d\\n", .5, 11, iStart, 
kDur, iNote, iVel
   fprintks "scor.orc", "i %2.0f\\t%15.6f\\t%15.6f\\t%d\\t%d\\n", 11, 
iStart, kDur, iNote, iVel

The fprintks only writes the last played notes, it does not append...

The result of printks is also unexpected, it does not print iNote and 
iVel as integers, it just does not print them:

i 11           2.368435           0.232381    36    68
i 11           2.786395           0.313651    36    65
i 11           3.146304           0.290431    40    39
i 11           3.459773           0.255601    43    58

at least, not in the Cabbage output window!
I copied and pasted the lines from Cabbage output (where iNote and iVel 
are not visible), yet here they are!


Richard

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

Date2019-01-01 09:46
Fromzappfinger
SubjectRe: [Csnd] buggy(?) behavior of printks (in Cabbage) and fprintks
I have to be more specific. In Cabbage output the 2 integers are just shown
as part of the previous floating pont number. So it seems that handling tabs
'\t' is not done correctly.

Regarding the problem with fprintks, this happens for me only under OS X,
not Windows.
It is also not consistent. In some cases only the last notes are written to
the file. in other cases (like with the csd I attach now) the file size is
just 0.

Richard
midiRecord2.csd
  



--
Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html

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

Date2019-01-01 14:10
FromRory Walsh
SubjectRe: [Csnd] buggy(?) behavior of printks (in Cabbage) and fprintks
This is an issue with Cabbage, can you post to the cabbage forum if you haven't yet done so. It's easier to keep track of issues there.

On Tue 1 Jan 2019, 10:46 zappfinger <zappfinger@gmail.com wrote:
I have to be more specific. In Cabbage output the 2 integers are just shown
as part of the previous floating pont number. So it seems that handling tabs
'\t' is not done correctly.

Regarding the problem with fprintks, this happens for me only under OS X,
not Windows.
It is also not consistent. In some cases only the last notes are written to
the file. in other cases (like with the csd I attach now) the file size is
just 0.

Richard
midiRecord2.csd
<http://csound.1045644.n5.nabble.com/file/t194768/midiRecord2.csd



--
Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html

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