Re: [Bluemusic-devel] Csound output window
Brought to you by:
kunstmusik
From: Michael B. <got...@ya...> - 2005-06-09 13:05:38
|
I've noticed the buffering problem too. I tried setting the buffer size on the BufferedReader class, but that didn't seem to have much of an effect, so it must be csound, as you said. The performance hit seems to be negligable, though (at least on my machine), and we're piping the csound output to blue's stdout anyway, so it shouldn't make much of a difference. I've got things more or less working except for the UI. I'm trying to use a JToolBar to house the output, because it seems to be the only native java component that supports docking. Anyway, it isn't resizable and I get wierd behavior when I reset the preferred size of the text box (which I have to do when adding text for the scroll view). Anyway, I think in order to have a dockable, resizable output window I'd have to rewrite one from scratch or use something else available out there; surely someone's written a component like that available for free. Know of any? If the dockable, resizable requirement isn't a big deal, I've got an implementation with an external window ready to go. Michael --- Steven Yi <ste...@gm...> wrote: > BTW: I did try to do a console output area before, > but had bad > performance problems, or at least I had thought. > There was a problem > with Csound buffering output to stderr and stdout, > and so programs > like blue would receive output in 4k chunks. When I > had figured that > out, I had asked and eventually submitted a change > to Csound4 and > Csound5, maybe about half a year ago or so (???). > However, I haven't > tried to build a console area again since then as > I've been > preoccupied with music and other things. > > I'll be glad to see how it turns out! Thanks as > well from me for > looking into this. > > steven > > > On 6/7/05, Michael Bechard <got...@ya...> > wrote: > > > > > > --- Steven Yi <ste...@gm...> wrote: > > > > > Hi Michael, > > > > > > Having a console would be neat. The easiest > > > solution I think would be > > > to have an extra tab, but at the same time, I > think > > > it's very useful > > > to be able to view the output and also be able > to > > > view the score > > > timeline. A collpasible pane on the bottom of > the > > > editor could be a > > > good place for it. It'd be nice to have a > dockable > > > option, so a > > > collapsible bottom pane that has an option to be > > > docked or not. > > > > > > > Ok, I'll look into that. > > > > > If you're looking for where to grab the Csound > > > output, check out > > > ProcessConsole. There's already code there to > > > handle appending to a > > > JTextArea (the code is very old and comes from > > > Michael Gogins old Java > > > version of Silence). > > > > > > > Yeah, I noticed. I thought, for a little while, > that > > you had already started on this feature. It > removed > > alot of the legwork for me, so thanks! > > > > Michael > > > > > > > > > > __________________________________ > > Discover Yahoo! > > Get on-the-go sports scores, stock quotes, news > and more. Check it out! > > http://discover.yahoo.com/mobile.html > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by: NEC IT Guy > Games. How far can you shotput > > a projector? How fast can you ride your desk chair > down the office luge track? > > If you want to score the big prize, get to know > the little guy. > > Play to win an NEC 61" plasma display: > http://www.necitguy.com/?r=20 > > _______________________________________________ > > Bluemusic-devel mailing list > > Blu...@li... > > > https://lists.sourceforge.net/lists/listinfo/bluemusic-devel > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: NEC IT Guy Games. > How far can you shotput > a projector? How fast can you ride your desk chair > down the office luge track? > If you want to score the big prize, get to know the > little guy. > Play to win an NEC 61" plasma display: > http://www.necitguy.com/?r > _______________________________________________ > Bluemusic-devel mailing list > Blu...@li... > https://lists.sourceforge.net/lists/listinfo/bluemusic-devel > __________________________________ Discover Yahoo! Stay in touch with email, IM, photo sharing and more. Check it out! http://discover.yahoo.com/stayintouch.html |