Skip to content

Commit

Permalink
Merge branch 'main' of github.com:bwhitman/amy
Browse files Browse the repository at this point in the history
  • Loading branch information
bwhitman committed Jun 8, 2024
2 parents 4df92a9 + b121881 commit 0cca211
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
4 changes: 0 additions & 4 deletions src/amy.c
Original file line number Diff line number Diff line change
Expand Up @@ -460,8 +460,6 @@ void amy_add_event_internal(struct event e, uint16_t base_osc) {
if(AMY_IS_SET(e.eq_l)) { d.param=EQ_L; d.data = *(uint32_t *)&e.eq_l; add_delta_to_queue(d); }
if(AMY_IS_SET(e.eq_m)) { d.param=EQ_M; d.data = *(uint32_t *)&e.eq_m; add_delta_to_queue(d); }
if(AMY_IS_SET(e.eq_h)) { d.param=EQ_H; d.data = *(uint32_t *)&e.eq_h; add_delta_to_queue(d); }
if(AMY_IS_SET(e.eg_type[0])) { d.param=EG0_TYPE; d.data = *(uint32_t*)&e.eg_type[0]; add_delta_to_queue(d); }
if(AMY_IS_SET(e.eg_type[1])) { d.param=EG1_TYPE; d.data = *(uint32_t*)&e.eg_type[1]; add_delta_to_queue(d); }

if(e.algo_source[0] != 0) {
struct synthinfo t;
Expand Down Expand Up @@ -861,8 +859,6 @@ void play_event(struct delta d) {
synth[d.osc].duty_coefs[d.param - DUTY] = *(float *)&d.data;
if(d.param >= PAN && d.param < PAN + NUM_COMBO_COEFS)
synth[d.osc].pan_coefs[d.param - PAN] = *(float *)&d.data;
if(d.param == EG0_TYPE) synth[d.osc].eg_type[0] = *(uint8_t *)&d.data;
if(d.param == EG1_TYPE) synth[d.osc].eg_type[1] = *(uint8_t *)&d.data;

// todo, i really should clean this up
if(d.param >= BP_START && d.param < BP_END) {
Expand Down
1 change: 0 additions & 1 deletion src/amy.h
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ enum params{
MOD_SOURCE, FILTER_TYPE, // 47, 48
EQ_L, EQ_M, EQ_H, // 49, 50, 51
ALGORITHM, LATENCY, // 52, 53
EG0_TYPE, EG1_TYPE, // 54, 55
ALGO_SOURCE_START=100, // 100..105
ALGO_SOURCE_END=100+MAX_ALGO_OPS, // 106
BP_START=ALGO_SOURCE_END + 1, // 107..138
Expand Down

0 comments on commit 0cca211

Please sign in to comment.