[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-users] there's something i dont understand
well, my cents:
I write everything, double that: EVERYTHING, in classes,
/except for SynthDefs recently/
apple-s apple-k is my mantra,
and It is great, because I build in a way that everything executes automatically
from Main and initClass, so three keys in one move, and I already see if everything is fine,
this way I don't have to scroll around and execute test code..
z
>
>
> Right, well, the question was about abstraction options other than
> classes, and I have such an option, so I thought I would pipe up. :)
>
> I agree with Dan that GUI abstractions usually fall in the category
> of what I called "utility" functionality, which is better served by
> classes.
>
> Another option is to test new functionality using a prototype, and
> when the behavior is stable, convert it into a class.
>
> Sam is right that the compiler is very fast and it only takes a
> couple of seconds to recompile the library. The issue for me when
> composing is that it isn't just recompiling the library. That's a
> couple of seconds, then maybe 15 seconds to reload the GUI and
> reconnect to MIDI, then reload buffers, mixers, source data, etc.
> which could be up to a minute per cycle. Do that a couple hundred
> times in a four or five-hour composing session, and it's well over an
> hour wasted.
>
> That's getting away from the original question but still worth
> thinking about.
> hjh
>
>
> On Dec 24, 2007, at 1:13 PM, Sam Pluta wrote:
>
> > Yeah, it seemed like the simplicity of recompiling wasn't clear to
> > you. I don't know how you recompile in emacs, but in OSX you just
> > press apple-k. Its really just two buttons and about 0.91
> > seconds. I do this so often that sometimes I just recompile
> > automatically after I save automatically. Ba da bing, ba da bang.
> >
> > Sam
> >
> > On Dec 24, 2007 12:35 PM, Dan Stowell <danstowell@xxxxxxxxx> wrote:
> > JH's prototyping stuff may well help you out here, as he's described.
> > But for a "big GUI application" I'd definitely recommend becoming
> > familiar with classes and using them, at least for core components.
> > For example, for some of my apps I create a class which encapsulates a
> > buffer as well as the GUI object used to manipulate it, as well as a
> > couple of other pieces of functionality.
> >
> > Yes, you have to recompile to update class definitions; but once
> > you've developed some of your core components, they will change very
> > very rarely. Classes are SC's primary abstraction method, it's
> > standard object-oriented programming, and it's very very useful.
> >
> > Dan
> >
> >
> > 2007/12/24, Vytautas Jancauskas <unaudio@xxxxxxxxx>:
> > > What options for abstraction do i have in sclang? Obviously
> > classes but
> > > don't those only get evaluated when sclang get's started? I tried
> > defining a
> > > class and then sending it to sclang from emacs but that didn't
> > work. Is that
> > > possible? Functions don't really cut it for this big GUI
> > application i am
> > > planning, so i was wondering...
> > >
> > > _______________________________________________
> > > sc-users mailing list
> > > sc-users@xxxxxxxxxxxxxxx
> > > http://www.create.ucsb.edu/mailman/listinfo/sc-users
> > >
> > >
> >
> >
> > --
> > http://www.mcld.co.uk
> > _______________________________________________
> > sc-users mailing list
> > sc-users@xxxxxxxxxxxxxxx
> > http://www.create.ucsb.edu/mailman/listinfo/sc-users
> >
> >
> >
> > --
> > It suddenly occurred to me that true believers in hard-driving jazz
> > - Albert Ayler, Don Cherry, Cecil Taylor - could never become
> > owners of cleaning shops in malls across from railway stations. Or
> > maybe they could. The just wouldn't be happy.
> >
> > Haruki Murakami - The Wind-Up Bird Chronicle
> > _______________________________________________
> > sc-users mailing list
> > sc-users@xxxxxxxxxxxxxxx
> > http://www.create.ucsb.edu/mailman/listinfo/sc-users
>
>
> : H. James Harkins
> : jamshark70@xxxxxxxxxxxxxxxxx
> : http://www.dewdrop-world.net
> .::!:.:.......:.::........:..!.::.::...:..:...:.:.:.:..:
>
> "Come said the Muse,
> Sing me a song no poet has yet chanted,
> Sing me the universal." -- Whitman
>
>
>