Skip to content

Commit

Permalink
it: add int() to numpy values. #27
Browse files Browse the repository at this point in the history
  • Loading branch information
SatyrDiamond committed Feb 17, 2025
1 parent 13e614c commit bd3e46c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/input/m_tracker_it.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def parse_internal(self, convproj_obj, project_obj, dv_config, input_file):

for n in range(64):
ch_pan = ((project_obj.l_chnpan[n]&127)/32)-1
ch_mute = bool(project_obj.l_chnpan[n]&128)
ch_mute = bool(int(project_obj.l_chnpan[n])&128)
ch_vol = project_obj.l_chnvol[n]/64
if n in convproj_obj.playlist:
s_pl = convproj_obj.playlist[n]
Expand All @@ -204,7 +204,7 @@ def parse_internal(self, convproj_obj, project_obj, dv_config, input_file):

basenoteadd = 60
for n_s_te in n_s_t:
bn_s_t.append([n_s_te[0]+basenoteadd, n_s_te[1]])
bn_s_t.append([int(n_s_te[0])+basenoteadd, n_s_te[1]])
basenoteadd -= 1

bn_s_t_ifsame = data_values.list__ifallsame(bn_s_t)
Expand Down

0 comments on commit bd3e46c

Please sign in to comment.