Hi,<br><br>Is it possible to extend a class from two parents classes?<br>So the child class will have the data and functions of the two parents.<br><br>I am not an oriented object programming expert, but I understand (maybe I am mistaking) that C++ is able to do that.<br>
<br>At first I wanted to do a kind of extended SndBuf UGen including and playing automatically a score.<br>The goal is to write short code like:<br><br>MySndBuf s=> dac;<br>120 => s.bpm;         <br>s.score << 1 << 1 << 0 << 1; // write the score<br>
"kick.wav" => s.read; <br>while(1) 10::ms => now; // let's play<br><br>I made some quick testing, this is possible. But then appears the second Idea ;-)<br>Sequencers are really useful so why do not have a basic sequencer common for other application. For example:<br>
<br>// the Synth frequency driver<br><br>MyFreqExtendStep f => TriOsc s => dac;<br>f.note << 40 << 42 << 44 << 0; // Write score with midi note<br>120 => f.bpm;<br>while(1) 10::ms => now; // let's play<br>
<br>// The Event automatic boardcaster (to trig other scripts for example)<br>MyEvent e;<br>e.score << 1 << 1 << 0 << 1; // write the score<br>120 => e.bpm;<br>while(1) 10::ms => now; // let's play<br>
<br> <br>Happy chucking,<br>Ju<br><br><br>