Csound Csound-dev Csound-tekno Search About

[Cs-dev] API progress and a csd issue

Date2005-07-07 03:02
FromIain Duncan
Subject[Cs-dev] API progress and a csd issue
Well, I can now load my giant heavy gig ensemble into the fl_controller 
example and play no problems, awesome! I don't need to put the 
-+rtaudio=alsa in my rc file anymore either, and it works fine with 
--sched on twiddling the fltk knobs.

However, something strange I noticed while experimenting on this. When I 
use the following line from the command line:

csound -+rtaudio=alsa -o dac -b512 -B1024 -m0 -d -M1 --expression-opt 
--sched -Lstdin flow01.orc flow01.sco

I can do anything I want without any hiccups. I can resize and open 
windows, whatever. When the exact same line and code is used wrapped up 
in a .csd file, this is no longer true, with or without using the api 
front end ( ie "csound flow01.csd" ). It's still solid for playing with 
the fltk knobs or looking at top, but it clicks when I open or resize 
windows or use the fluxbox pop up menus. I assume this is a problem 
somewhere? If not, is it possible to use the api without using a .csd?

Thanks
Iain




-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-07-07 10:30
FromIstvan Varga
SubjectRe: [Cs-dev] API progress and a csd issue
Iain Duncan wrote:

> I can do anything I want without any hiccups. I can resize and open 
> windows, whatever. When the exact same line and code is used wrapped up 
> in a .csd file, this is no longer true, with or without using the api 
> front end ( ie "csound flow01.csd" ). It's still solid for playing with 
> the fltk knobs or looking at top, but it clicks when I open or resize 
> windows or use the fluxbox pop up menus. I assume this is a problem 
> somewhere? If not, is it possible to use the api without using a .csd?

The --sched option has effect only if it is used directly from
the command line, and it is also only implemented in the standard
command line frontend. In any other case, --sched will be ignored.


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-07-07 19:07
FromIain Duncan
SubjectRe: [Cs-dev] API progress and a csd issue
>> I can do anything I want without any hiccups. I can resize and open 
>> windows, whatever. When the exact same line and code is used wrapped 
>> up in a .csd file, this is no longer true, with or without using the 
>> api front end ( ie "csound flow01.csd" ). It's still solid for playing 
>> with the fltk knobs or looking at top, but it clicks when I open or 
>> resize windows or use the fluxbox pop up menus. I assume this is a 
>> problem somewhere? If not, is it possible to use the api without using 
>> a .csd?
> 
> 
> The --sched option has effect only if it is used directly from
> the command line, and it is also only implemented in the standard
> command line frontend. In any other case, --sched will be ignored.

Thanks Istvan? Is that mentioned in the manual yet or is that something 
that is planned to be changed?

Is there a way to use --sched with the API? If not, could there be? I 
tried recompile the fl_controller example replacing "csound" with 
"csound --sched" in the string that is passed to CsoundCompile() but 
that didn't seem to have any affect.

At any rate, considering that using the API in a host app means the user 
is very likely to be doing things like switching windows, IMHO the 
--sched improvement is much needed somehow or another.

Thanks
Iain


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-07-07 20:26
FromIstvan Varga
SubjectRe: [Cs-dev] API progress and a csd issue
Iain Duncan wrote:

> Thanks Istvan? Is that mentioned in the manual yet or is that something 
> that is planned to be changed?

It was this way for a long time (well, since --sched was added),
but may be changed eventually. As a temporary solution, you may
try adding the --sched code to the fl_controller example itself;
it is in frontends/csound/csound_main.c.


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-07-07 22:24
FromIain Duncan
SubjectRe: [Cs-dev] API progress and a csd issue
> It was this way for a long time (well, since --sched was added),
> but may be changed eventually. As a temporary solution, you may
> try adding the --sched code to the fl_controller example itself;
> it is in frontends/csound/csound_main.c.

Ok, I will try that. I do think that would be a great thing to add to 
the api however, as it seems to that one is quite likely to do the sort 
of things that make it break up if using a graphic host.

Iain


-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net