monome / crow

Crow speaks and listens and remembers bits of text. A scriptable USB-CV-II machine
GNU General Public License v3.0
166 stars 34 forks source link

Differentiate between linear and log #432

Closed beels closed 3 years ago

beels commented 3 years ago

I finally got a toolchain up and running, so here is a tested solution to issue #428.

Looping through client-supplied buffer may seem a bit clunky here, but I'm trusting that the compiler will unroll the loop and inline all of the code at -O2.

trentgill commented 3 years ago

I think this looks great! you're only looping through 2 characters, and the code only gets called when an ASL is compiled, so i don't see any issue with it.

Will get this rolled into the next point release!