devcurmudgeon / alo

A Looper plugin for MOD duo
MIT License
20 stars 6 forks source link

A LOoper

screenshot

ALO is an LV2 plugin primarily targeted at the MOD Duo but hopefully it should work on other systems too. It's based on the amp.c and metro.c lv2 example plugins, plus some study of the loopor code.

The idea is to provide an easy, mistake-proof way to create and trigger live music loops in sync with a click track, or in free running mode.

design notes

              1       2       3       4       1       2
.-|-.-.-.-|-.-.-.-|-.-.-.-|-.-.-.-|-.-.-.-|-.-.-.-|-.-.-.   beats

<------always recording in the background--------------->

_______/<<^^^^^^^^^^^^^^^^^^^\____________________________  audio in
       |<<| phrase-start..goes here--> |<<|

      |^^^^^^^| hit loop button anytime in this region
                now we know loop starts at nearest beat 1 
                and threshold detect for intro phrase
          |^^^^^^^^^^^^^^^^^^^\_________<<|     loop is fixed length
                                       |  |     includes phrase-start

starting MOD docker build environment

These instructions assume that the alo source is at ~/Projects/2018/moddevices/alo

docker run -ti --name mpb -p 9000:9000 -v ~/Projects/2018/moddevices/:/tmp/moddevices moddevices/mod-plugin-builder

build and deploy notes

/tmp/moddevices/alo/cycle.sh

debug notes


edit the code to set `LOG_ENABLED = true`

tail -f /root/alo.log`

mod-host -p 1234 -i add http://devcurmudgeon.com/alo 0