Rogan Carr wrote:
public class GenU {
Gain output; Gain input;
fun UGen chuck () { return output; }
fun UGen chuck (UGen ugen) { ugen => input; return output; }
}
Thanks for the idea, will try it out for sure!
Then you use it like this
GenU None;
None.chuck() => dac;
How about: GenU None.chuck() => dac;
Step step => None.chuck => dac;
Now, just have your classes inherit from GenU, and connect them like this.
So you mean I could write my own class FooBar, that inherits from (the already defined in my scope) GenU and do: FooBar thingy.chuck() => dac; I have to decide if the slight difference in syntax (added ".chuck()") will be more confusing than what I normally do, which is having a member function "connect()", used like this: FooBar thingy; thingy.connect(dac); -- Atte http://atte.dk http://modlys.dk