Csound Csound-dev Csound-tekno Search About

Record all events into text file

Date2015-10-24 16:54
FromHlöðver Sigurðsson
SubjectRecord all events into text file
This may be an old topic and I did look (un)thoroughly trough the mailing list archive. But if I'd want to record all incoming events with instument name and correct p-field values into a file (from all instruments). How would I go about it? Is there any example online that I can look at?

-Hlöðver
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

Date2015-10-24 17:39
FromGuillermo Senna
SubjectRe: Record all events into text file
I would like to know the same thing. Because last time I had to do 
something similar I ended up printing to console, redirecting the output 
to a file and then, on that same file, using sed a couple of times.

On 24/10/15 12:54, Hlöðver Sigurðsson wrote:
> This may be an old topic and I did look (un)thoroughly trough the 
> mailing list archive. But if I'd want to record all incoming events 
> with instument name and correct p-field values into a file (from all 
> instruments). How would I go about it? Is there any example online 
> that I can look at?
>
> -Hlöðver
> 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

Date2015-10-24 17:54
FromAnders Genell
SubjectRe: Record all events into text file
Isn't there an log file option? -O or something?

Regards,
Anders



> 24 okt 2015 kl. 18:39 skrev Guillermo Senna :
> 
> I would like to know the same thing. Because last time I had to do something similar I ended up printing to console, redirecting the output to a file and then, on that same file, using sed a couple of times.
> 
>> On 24/10/15 12:54, Hlöðver Sigurðsson wrote:
>> This may be an old topic and I did look (un)thoroughly trough the mailing list archive. But if I'd want to record all incoming events with instument name and correct p-field values into a file (from all instruments). How would I go about it? Is there any example online that I can look at?
>> 
>> -Hlöðver
>> 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

Date2015-10-24 18:06
FromGuillermo Senna
SubjectRe: Record all events into text file
But wouldn't it be nice if there was a printf-like command, with 
"file.txt" as an argument, so that you could append strings to a file?

On 24/10/15 13:54, Anders Genell wrote:
> Isn't there an log file option? -O or something?
>
> Regards,
> Anders
>
>
>
>> 24 okt 2015 kl. 18:39 skrev Guillermo Senna :
>>
>> I would like to know the same thing. Because last time I had to do something similar I ended up printing to console, redirecting the output to a file and then, on that same file, using sed a couple of times.
>>
>>> On 24/10/15 12:54, Hlöðver Sigurðsson wrote:
>>> This may be an old topic and I did look (un)thoroughly trough the mailing list archive. But if I'd want to record all incoming events with instument name and correct p-field values into a file (from all instruments). How would I go about it? Is there any example online that I can look at?
>>>
>>> -Hlöðver
>>> 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

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

Date2015-10-24 18:22
FromRichard
SubjectRe: Record all events into text file
There is an example of midi to score here:
http://www.csounds.com/manual/html/fprintks.html
I guess you can convert that to 'p fields' to score...

Richard


On 24/10/15 19:06, Guillermo Senna wrote:
> But wouldn't it be nice if there was a printf-like command, with 
> "file.txt" as an argument, so that you could append strings to a file?
>
> On 24/10/15 13:54, Anders Genell wrote:
>> Isn't there an log file option? -O or something?
>>
>> Regards,
>> Anders
>>
>>
>>
>>> 24 okt 2015 kl. 18:39 skrev Guillermo Senna :
>>>
>>> I would like to know the same thing. Because last time I had to do 
>>> something similar I ended up printing to console, redirecting the 
>>> output to a file and then, on that same file, using sed a couple of 
>>> times.
>>>
>>>> On 24/10/15 12:54, Hlöðver Sigurðsson wrote:
>>>> This may be an old topic and I did look (un)thoroughly trough the 
>>>> mailing list archive. But if I'd want to record all incoming events 
>>>> with instument name and correct p-field values into a file (from 
>>>> all instruments). How would I go about it? Is there any example 
>>>> online that I can look at?
>>>>
>>>> -Hlöðver
>>>> 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
>
> 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

Date2015-10-25 00:42
Fromandy fillebrown
SubjectRe: Record all events into text file
Do the fprintks and fprints opcodes do what you want?

http://csound.github.io/docs/manual/fprintks.html
http://csound.github.io/docs/manual/fprints.html

On Sat, Oct 24, 2015 at 1:06 PM, Guillermo Senna  wrote:
> But wouldn't it be nice if there was a printf-like command, with "file.txt"
> as an argument, so that you could append strings to a file?
>
>
> On 24/10/15 13:54, Anders Genell wrote:
>>
>> Isn't there an log file option? -O or something?
>>
>> Regards,
>> Anders
>>
>>
>>
>>> 24 okt 2015 kl. 18:39 skrev Guillermo Senna :
>>>
>>> I would like to know the same thing. Because last time I had to do
>>> something similar I ended up printing to console, redirecting the output to
>>> a file and then, on that same file, using sed a couple of times.
>>>
>>>> On 24/10/15 12:54, Hlöðver Sigurðsson wrote:
>>>> This may be an old topic and I did look (un)thoroughly trough the
>>>> mailing list archive. But if I'd want to record all incoming events with
>>>> instument name and correct p-field values into a file (from all
>>>> instruments). How would I go about it? Is there any example online that I
>>>> can look at?
>>>>
>>>> -Hlöðver
>>>> 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
>
>
> 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

Date2015-10-25 01:09
FromMichael Gogins
SubjectRe: Record all events into text file
They can do what he wants if he either turns off all other messages,
or marks the ones he wants and filters for those.

Regards,
Mike

-----------------------------------------------------
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Sat, Oct 24, 2015 at 7:42 PM, andy fillebrown
 wrote:
> Do the fprintks and fprints opcodes do what you want?
>
> http://csound.github.io/docs/manual/fprintks.html
> http://csound.github.io/docs/manual/fprints.html
>
> On Sat, Oct 24, 2015 at 1:06 PM, Guillermo Senna  wrote:
>> But wouldn't it be nice if there was a printf-like command, with "file.txt"
>> as an argument, so that you could append strings to a file?
>>
>>
>> On 24/10/15 13:54, Anders Genell wrote:
>>>
>>> Isn't there an log file option? -O or something?
>>>
>>> Regards,
>>> Anders
>>>
>>>
>>>
>>>> 24 okt 2015 kl. 18:39 skrev Guillermo Senna :
>>>>
>>>> I would like to know the same thing. Because last time I had to do
>>>> something similar I ended up printing to console, redirecting the output to
>>>> a file and then, on that same file, using sed a couple of times.
>>>>
>>>>> On 24/10/15 12:54, Hlöðver Sigurðsson wrote:
>>>>> This may be an old topic and I did look (un)thoroughly trough the
>>>>> mailing list archive. But if I'd want to record all incoming events with
>>>>> instument name and correct p-field values into a file (from all
>>>>> instruments). How would I go about it? Is there any example online that I
>>>>> can look at?
>>>>>
>>>>> -Hlöðver
>>>>> 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
>>
>>
>> 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

Date2015-10-25 13:15
FromHlöðver Sigurðsson
SubjectRe: Record all events into text file
It seems that fprintks would do the trick, but I would have to manually assign all the p-fields for each instrument. I may go for that solution, but since Im looking to "record" my live coding, I will have to do this for many instruments, bit of labour. Thanks for the tips guys!

2015-10-25 2:09 GMT+02:00 Michael Gogins <michael.gogins@gmail.com>:
They can do what he wants if he either turns off all other messages,
or marks the ones he wants and filters for those.

Regards,
Mike

-----------------------------------------------------
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Sat, Oct 24, 2015 at 7:42 PM, andy fillebrown
<andy.fillebrown@gmail.com> wrote:
> Do the fprintks and fprints opcodes do what you want?
>
> http://csound.github.io/docs/manual/fprintks.html
> http://csound.github.io/docs/manual/fprints.html
>
> On Sat, Oct 24, 2015 at 1:06 PM, Guillermo Senna <gsenna@gmail.com> wrote:
>> But wouldn't it be nice if there was a printf-like command, with "file.txt"
>> as an argument, so that you could append strings to a file?
>>
>>
>> On 24/10/15 13:54, Anders Genell wrote:
>>>
>>> Isn't there an log file option? -O or something?
>>>
>>> Regards,
>>> Anders
>>>
>>>
>>>
>>>> 24 okt 2015 kl. 18:39 skrev Guillermo Senna <gsenna@GMAIL.COM>:
>>>>
>>>> I would like to know the same thing. Because last time I had to do
>>>> something similar I ended up printing to console, redirecting the output to
>>>> a file and then, on that same file, using sed a couple of times.
>>>>
>>>>> On 24/10/15 12:54, Hlöðver Sigurðsson wrote:
>>>>> This may be an old topic and I did look (un)thoroughly trough the
>>>>> mailing list archive. But if I'd want to record all incoming events with
>>>>> instument name and correct p-field values into a file (from all
>>>>> instruments). How would I go about it? Is there any example online that I
>>>>> can look at?
>>>>>
>>>>> -Hlöðver
>>>>> 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
>>
>>
>> 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

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