Csound Csound-dev Csound-tekno Search About

[Csnd-dev] Does scsort work?

Date2018-04-26 07:17
FromFrancois PINOT
Subject[Csnd-dev] Does scsort work?
When I run this command

   scsort < anyscorefile.sco

I don't get any output. Is there a problem with the API function csoundScoreSort?

François

Date2018-04-26 13:57
Fromjpff
SubjectRe: [Csnd-dev] Does scsort work?
Well fails for me.  I notice that the comments for csoundScoreSort says

"The Csound instance should be initialised with csoundPreCompile()
before calling this function"

which it does not do -- it calls csoundCreate.  Not my area of knowledg; I 
realise it gives my nameas copyright holder but this utility was totally 
rewritten by Istvan

Needs an API user to comment.


Using gdb I notice that no message comes ourt from the message callback 
akthough it is called.  It attemots to send incorrect messages like 
"unexpected EOF" and the usual csound ending mesage,

==JPff

On Thu, 26 Apr 2018, Francois PINOT wrote:

> When I run this command
> 
>    scsort < anyscorefile.sco
> 
> I don't get any output. Is there a problem with the API function
> csoundScoreSort?
> 
> François
> 
>

Date2018-04-26 14:06
FromVictor Lazzarini
SubjectRe: [Csnd-dev] Does scsort work?
There is no csoundPreCompile() anymore, that was removed in 6.

========================
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 Apr 2018, at 13:57, jpff  wrote:
> 
> Well fails for me.  I notice that the comments for csoundScoreSort says
> 
> "The Csound instance should be initialised with csoundPreCompile()
> before calling this function"
> 
> which it does not do -- it calls csoundCreate.  Not my area of knowledg; I realise it gives my nameas copyright holder but this utility was totally rewritten by Istvan
> 
> Needs an API user to comment.
> 
> 
> Using gdb I notice that no message comes ourt from the message callback akthough it is called.  It attemots to send incorrect messages like "unexpected EOF" and the usual csound ending mesage,
> 
> ==JPff
> 
> On Thu, 26 Apr 2018, Francois PINOT wrote:
> 
>> When I run this command
>>    scsort < anyscorefile.sco
>> I don't get any output. Is there a problem with the API function
>> csoundScore

Date2018-04-26 14:06
Fromjpff
SubjectRe: [Csnd-dev] Does scsort work?
I think this is a side effect of te new score parser.  Will experiment 
(but do not understad the lack of output -- sees messages are tred off.


On Thu, 26 Apr 2018, Francois PINOT wrote:

> When I run this command
> 
>    scsort < anyscorefile.sco
> 
> I don't get any output. Is there a problem with the API function
> csoundScoreSort?
> 
> François
> 
>

Date2018-04-26 14:31
Fromjpff
SubjectRe: [Csnd-dev] Does scsort work?
Believe fixed in git that is it works for me

Date2018-04-26 14:41
FromFrancois PINOT
SubjectRe: [Csnd-dev] Does scsort work?
Works now. Thank you John.

François

2018-04-26 15:31 GMT+02:00 jpff <jpff@codemist.co.uk>:
Believe fixed in git that is it works for me

Not sure why printing sometime fails.


Date2018-04-26 14:57
FromMenno Knevel
SubjectRe: [Csnd-dev] Does scsort work?
Never worked with scsort, so i looked in the manual and noticed:
scscort < infile > outfile

shouldn't that be
scsort < infile > outfile ?? (typo)



--

Date2018-04-26 15:12
FromFrancois PINOT
SubjectRe: [Csnd-dev] Does scsort work?
In fact infile and outfile are streams (you can see that from the redirection characters < or >). This means that if you don't specify explicitly a stream it is replaced by stdin or stdout (default streams on *nix systems).

For example if you run the command scsort without any arg, you can directly type score events and when you type ctrl-d this ends the input stream and the sorted score is printed out on the screen.

François

2018-04-26 15:57 GMT+02:00 Menno Knevel <magknevel@gmail.com>:
Never worked with scsort, so i looked in the manual and noticed:
scscort < infile > outfile

shouldn't that be
scsort < infile > outfile ?? (typo)



--
Sent from: http://csound.1045644.n5.nabble.com/Csound-Dev-f1123218.html


Date2018-04-26 15:37
FromVictor Lazzarini
SubjectRe: [Csnd-dev] Does scsort work?
I think he was referring to scsort vs. scscort !
========================
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 Apr 2018, at 15:12, Francois PINOT  wrote:
> 
> In fact infile and outfile are streams (you can see that from the redirection characters < or >). This means that if you don't specify explicitly a stream it is replaced by stdin or stdout (default streams on *nix systems).
> 
> For example if you run the command scsort without any arg, you can directly type score events and when you type ctrl-d this ends the input stream and the sorted score is printed out on the screen.
> 
> François
> 
> 2018-04-26 15:57 GMT+02:00 Menno Knevel :
> Never worked with scsort, so i looked in the manual and noticed:
> scscort < infile > outfile
> 
> shouldn't that be
> scsort < infile > outfile ?? (typo)
> 
> 
> 
> --
> Sent from: http://csound.1045644.n5.nabble.com/Csound-Dev-f1

Date2018-04-26 15:46
FromFrancois PINOT
SubjectRe: [Csnd-dev] Does scsort work?
Oh yes. He's right. It's a typo in the manual. Fixed in github.

François

2018-04-26 16:37 GMT+02:00 Victor Lazzarini <Victor.Lazzarini@mu.ie>:
I think he was referring to scsort vs. scscort !
========================
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 Apr 2018, at 15:12, Francois PINOT <fggpinot@gmail.com> wrote:
>
> In fact infile and outfile are streams (you can see that from the redirection characters < or >). This means that if you don't specify explicitly a stream it is replaced by stdin or stdout (default streams on *nix systems).
>
> For example if you run the command scsort without any arg, you can directly type score events and when you type ctrl-d this ends the input stream and the sorted score is printed out on the screen.
>
> François
>
> 2018-04-26 15:57 GMT+02:00 Menno Knevel <magknevel@gmail.com>:
> Never worked with scsort, so i looked in the manual and noticed:
> scscort < infile > outfile
>
> shouldn't that be
> scsort < infile > outfile ?? (typo)
>
>
>
> --
> Sent from: http://csound.1045644.n5.nabble.com/Csound-Dev-f1123218.html
>