Skip to content

Commit

Permalink
Merge pull request #174 from shorepine/python_coefs_unset
Browse files Browse the repository at this point in the history
juno.py: Add back some explicit zeros for new Python CtrlCoef API.
  • Loading branch information
dpwe authored Aug 19, 2024
2 parents 2f042d0 + a1210a4 commit c267139
Show file tree
Hide file tree
Showing 2 changed files with 131 additions and 131 deletions.
6 changes: 3 additions & 3 deletions juno.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,9 +283,9 @@ def _breakpoint_string(self):
def _amp_coef_string(self, level):
if self.vca_gate:
# 'Gate' is provided by EG1, which is left unset == gate.
return ',,%s,,1' % ffmt(max(.001, to_level(level) * to_level(self.vca_level)))
return ',,%s,0,1' % ffmt(max(.001, to_level(level) * to_level(self.vca_level)))
else:
return ',,%s,1' % ffmt(max(.001, to_level(level) * to_level(self.vca_level)))
return ',,%s,1,0' % ffmt(max(.001, to_level(level) * to_level(self.vca_level)))

def _freq_coef_string(self, base_freq):
return '%s,1,,,,%s,1' % (
Expand Down Expand Up @@ -321,7 +321,7 @@ def init_AMY(self):
self.pwm_osc, self.saw_osc, self.sub_osc, self.nse_osc
]
# One-time setup of oscs.
self.amy_send(osc=self.lfo_osc, wave=amy.TRIANGLE, amp='1,,,1')
self.amy_send(osc=self.lfo_osc, wave=amy.TRIANGLE, amp='1,,0,1')
filter_type = amy.FILTER_LPF if self.cheap_filter else amy.FILTER_LPF24
self.amy_send(osc=self.pwm_osc, wave=amy.PULSE,
mod_source=self.lfo_osc, chained_osc=self.saw_osc,
Expand Down
Loading

0 comments on commit c267139

Please sign in to comment.