[Stk] signal processing super class?
Perry R Cook
prc@CS.Princeton.EDU
Fri, 28 Feb 2003 15:11:02 -0500 (EST)
Greg,
Why not make them subclasses of Filter? A filter is anything
that takes an input and yields an output and hopefully does
something interesting in the process.
PRC
On Fri, 21 Feb 2003, greg kellum wrote:
> hello all
>
> i've been developing an application with the stk that among other things
> allows users to chain effects together to process the output of the
> instruments, and it has occurred to me that it would be really nice if there
> was a super class for all the effects and sound processing classes. if there
> was a super class with a virtual tick(MY_FLOAT) method, then you iterate
> through a vector of effects calling tick on each effect without having to
> know what effect is actually being used. at the moment you first have to
> figure out what kind of object it is you're working with and using an ugly
> block of if / else statements cast down to it. the only problem that a super
> class presents is finding a suitable name for it...
>
> greg kellum
>
>
> _________________________________________________________________
> Add photos to your messages with MSN 8. Get 2 months FREE*.
> http://join.msn.com/?page=features/featuredemail
>
> _______________________________________________
> Stk mailing list
> Stk@ccrma.stanford.edu
> http://ccrma-mail.stanford.edu/mailman/listinfo/stk
>