vitreo12 / omni

DSL for low-level audio programming.
https://vitreo12.github.io/omni/
MIT License
187 stars 6 forks source link

Simplify Buffer handling #120

Closed vitreo12 closed 3 years ago

vitreo12 commented 4 years ago

All the looping, and ugen_auto_buffer, are overkills.

With the new Buffer syntax in ins, together with compile time checking that a Buffer(1) can only be instantiated with an int literal, this is not needed at all. At compile time, all the Buffers are in fact already known.

A more simpler compile time interface with Buffer unpacking would be much more ideal.