csound 5.16 odd message

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

csound 5.16 odd message

jhearon

Hi,
I've build vers. 5.16 on f16, but message:

This should not happen...

returns with cscore.

I suppose I could just grep it, remove it and recompile?

Regards,
Jim Hearon

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Csound-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/csound-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: csound 5.16 odd message

Tito Latini
If you send a minimal test, I can try to find a definitive solution.
cscore has worked with my tests, but they has not evidently been enough.

tito

On Fri, Feb 10, 2012 at 04:20:28PM +0000, James Hearon wrote:

>
>
> Hi,
> I've build vers. 5.16 on f16, but message:
>
> This should not happen...
>
> returns with cscore.
>
> I suppose I could just grep it, remove it and recompile?
>
> Regards,
> Jim Hearon

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Csound-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/csound-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: csound 5.16 odd message

Tito Latini
In reply to this post by jhearon
I'm seeing the bug with an empty score file.
Is it your case?

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Csound-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/csound-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: csound 5.16 odd message

Tito Latini
In reply to this post by jhearon
ok, I had not tried `cscoreFileSetCurrent' (makecurrent uses the old code).
I'm preparing the fix

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Csound-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/csound-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: csound 5.16 odd message

Tito Latini
In reply to this post by jhearon
cscoreFileSetCurrent fixed in git

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Csound-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/csound-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: csound 5.16 odd message

jhearon
In reply to this post by jhearon

> Message: 8
> Date: Fri, 10 Feb 2012 17:38:43 +0100
> From: Tito Latini <[hidden email]>
> Subject: Re: [Cs-dev] csound 5.16 odd message
> To: Developer discussions <[hidden email]>
> Message-ID: <[hidden email]>
> Content-Type: text/plain; charset=us-ascii
>
> I'm seeing the bug with an empty score file.
> Is it your case?
>


Hi,
Yes I believe that's what I had been doing.  Cscore is designed for score file in, and score file out,
but I wasn't modifying any contents, just creating content with external code and using Cscore to write
to a score file.  Thus I was using an empty .sco file for the score file in. 

Maybe that is the problem?

Still seems like it shouldn't complain about that.

Regards,
Jim Hearon

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Csound-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/csound-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: csound 5.16 odd message

Tito Latini
> Hi,Yes I believe that's what I had been doing.  Cscore is designed for score file in, and score file out,but I wasn't modifying any contents, just creating content with external code and using Cscore to writeto a score file.  Thus I was using an empty .sco file for the score file in.
> Maybe that is the problem?
> Still seems like it shouldn't complain about that.
> Regards,Jim Hearon    

There is a fix in git (empty score and cscoreFileSetCurrent).
If you want I can attach the patch for 5.16. I hope that it resolves
your problem, otherwise you send a minimal test, so I can have
available a case that I have not considered.

A note about `csound -C': now csound processes the score in memory
and it doesn't preserve a FILE pointer, therefore

  cscoreFileGetCurrent(cs)

doesn't return the FILE pointer of the score passed as argument to csound.
For example:

  csound -C test.orc test.sco

with the first `cscoreFileGetCurrent' call in the cscore code

  fp1 = cscoreFileGetCurrent(cs)

we don't get the pointer to test.sco. However it is not a problem.
The simple solution in the cscore code is

  fp1 = cscoreFileOpen(cs, "test.sco")

to save the FILE pointer of the score. I repeat, it concerns
*only* `csound -C', no problems with the compiled command "cscore".
If it is a serious problem of compatibility with the old code,
the solution is to save a temp score file when cscore is used,
fopen it and pass the FILE pointer to `csoundInitializeCscore' (musmon.c:287).
I can apply this change if it's necessary.

tito

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Csound-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/csound-devel
Loading...