Bert Schiettecatte wrote:
> > I'm not sure I understand what you mean (example ?), but obviously SAOL and
> > CSound don't have the same opcode sets, so the module libraries must be
> > different imho.
>
> No, not really. I can introduce a set of primitive synthesis blocks (an
> extreme example: a block for '*', a block for exp(x), etc etc), and the
> generators for SAOL and CSound would then provide support for this set of
> synthesis blocks. This would make the library totally independent of any
> language. Note that i'm not really defining a new language this way. I'm
> only providing a way to store a synthesis circuit.
>
> Some generators will not have a simple statement for such a primitive
> synthesis block, while other generators might have such a simple
> statement. The set of blocks I'll introduce will be close to what SAOL
> offers as primitive constructs, because that way, I will have less trouble
> building the SAOL generator.
Then imho it will end up as an SAOL library and editor, period :-) Pity to
have this single library thing hampering your design, I fear this attempt at a
universal synthesis circuit language (that's what it is whatever you say to
the contrary) might precisely defeat the universality of the tool. On the
contrary having one library per code generator would allow using it for truly
any language, even future ones you don't know anything about yet.
> Note that this philosophy does not dictate how a certain synthesis block
> is defined in a language. It might become a simple statement, or a block
> of statements, ...
>
> If the set of primitives is too small afterwards, additions could be made
> to the standard which introduce new primitives, much like HTML started
> with 1.0 and became 4.01 today.
But you will never get a module in one language to behave the same as a
"similar" module in another language (apart from "*" and such, admittedly :-)
: different number of inputs, different inputs labels and ranges, same for
outputs, different manual pages etc...
The 'PC' sample on the MIT SAOL site is a good case of a circuit which was
translated from CSound to SAOL, maybe our dear host Eric (who translated it I
believe) has an idea of how realistic a single file suitable for both
languages would be ?
Best of lucks in any case.
-- Greetings, Michel ......................................................................... Michel Jullian Directeur General email exbang@wanadoo.fr Exbang Industries S.A. Mas Chauvain route de Villeneuve tel +33(0) 499 529 878 Maurin 34970 Lattes France fax +33(0) 499 529 879 .........................................................................
This archive was generated by hypermail 2b29 : Mon Jan 28 2002 - 12:03:51 EST