Skip to content

Commit

Permalink
Make Loop6 work as overdub
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Sherwood committed Oct 2, 2020
1 parent 61e8b02 commit a3bc989
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 4 deletions.
2 changes: 1 addition & 1 deletion alo.mk
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
######################################

ALO_BUNDLES = alo.lv2
ALO_VERSION = 0.5
ALO_VERSION = 0.6
#ALO_SITE = $(call github,devcurmudgeon,alo,$(ALO_VERSION))
# or for local development ...
ALO_SITE_METHOD = local
Expand Down
4 changes: 4 additions & 0 deletions source/alo.c
Original file line number Diff line number Diff line change
Expand Up @@ -592,6 +592,10 @@ run(LV2_Handle instance, uint32_t n_samples)
if (self->state[i] == STATE_LOOP_ON && self->speed != 0) {
output_l[pos] += loop[self->loop_index];
output_r[pos] += loop[self->loop_index + LOOP_SIZE];
if (i == 5) {
loop[self->loop_index] = sample_l;
loop[self->loop_index + LOOP_SIZE] = sample_r;
}
}
}
self->loop_index += 1;
Expand Down
6 changes: 4 additions & 2 deletions source/alo.lv2/alo.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ doap:license <http://opensource.org/licenses/isc>;


lv2:minorVersion 0;
lv2:microVersion 1;
lv2:microVersion 6;

rdfs:comment """
Expand All @@ -40,7 +40,9 @@ Optionally connect a midi device and control the loops by sending MIDI note on/o
NEW:
- PER-BEAT LOOPS setting changes the behaviour so some or all of the loops
can be stopped and resumed on the next beat
- CLICK setting provides a click when no loop is playing
- ALO is now stereo
- Loop6 is set to permanent overdub mode
""";

lv2:port
Expand Down
Binary file added source/alo.lv2/modgui/blacklight.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion source/alo.lv2/modgui/icon-alo.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
{{/controls.4}}
{{#controls.5}}
<div class="mod-green-light" title="{{comment}}">
<div class="mod-green-light-image" mod-role="input-control-port" mod-port-symbol="{{symbol}}"></div>
<div class="mod-black-light-image" mod-role="input-control-port" mod-port-symbol="{{symbol}}"></div>
<span class="mod-green-light-title">{{name}}</span>
</div>
{{/controls.5}}
Expand Down
12 changes: 12 additions & 0 deletions source/alo.lv2/modgui/stylesheet-alo.css
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,18 @@
z-index: 2;
}

.alo{{{cns}}} .mod-green-light .mod-black-light-image {
background-image: url(/resources/blacklight.png{{{ns}}});
background-position: left 0px;
background-repeat: no-repeat;
background-size: auto 71px;
height: 71px;
margin-top: 3px;
position: relative;
width: 71px;
z-index: 2;
}

.alo{{{cns}}} .mod-green-light .mod-green-light-title {
font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
font-size: 10px;
Expand Down

0 comments on commit a3bc989

Please sign in to comment.