Skip to content

Commit

Permalink
eq bands fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SatyrDiamond committed Oct 17, 2023
1 parent c6a696f commit cf392bd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions plugin_input/r_amped.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,8 @@ def encode_devices(amped_tr_devices, trackid):
if bandtype == 4: eq_bandtype = 'high_shelf'
if eq_bandtype in ['low_pass', 'high_pass']:
band_res = xtramath.logpowmul(band_res, 2)
if eq_bandtype in ['peak']:
band_res = xtramath.logpowmul(band_res, -1)

plugins.add_eqband(cvpj_l, pluginid, int(banddata['active']), banddata['freq'], banddata['gain'], eq_bandtype, band_res, None)

Expand Down
2 changes: 2 additions & 0 deletions plugin_output/amped_studio.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,8 @@ def amped_parse_effects(fxchain_audio):

if band_type in ['low_pass', 'high_pass']:
band_res = xtramath.logpowmul(band_res, 0.5)
if band_type in ['low_pass', 'peak']:
band_res = xtramath.logpowmul(band_res, -1)

out_params.append({"id": paramnum, "name": filtername+'active', "value": band_on})
out_params.append({"id": paramnum+1, "name": filtername+'freq', "value": band_freq})
Expand Down
2 changes: 1 addition & 1 deletion plugin_plugconv/flstudio__v_universal.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def convert(self, cvpj_l, pluginid, plugintype, extra_json):
band_res = math.log(band_res, 2) / 10
band_res = xtramath.between_to_one(1, -1, band_res)
else:
band_res = (band_res*65536)/4
band_res = band_res/4

plugins.add_plug_param(cvpj_l, pluginid, bandstarttxt+'_gain', band_gain*100, 'int', "")
plugins.add_plug_param(cvpj_l, pluginid, bandstarttxt+'_freq', band_freq*65536, 'int', "")
Expand Down

0 comments on commit cf392bd

Please sign in to comment.