asigalov61 commited on
Commit
57ac22f
1 Parent(s): ebd096a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -84,7 +84,7 @@ def mix_chord(chord, tones_chord, mel_patch, mel_pitch, next_note_dtime):
84
  c = copy.deepcopy(cg[0])
85
 
86
  if cg[0][2] > next_note_dtime:
87
- c[2] = next_note_dtime - 1
88
 
89
  c[4] = mel_pitch
90
  c[5] = 105 + (mel_pitch % 12)
@@ -106,7 +106,7 @@ def mix_chord(chord, tones_chord, mel_patch, mel_pitch, next_note_dtime):
106
  c = copy.deepcopy(cc)
107
 
108
  if cc[2] > next_note_dtime:
109
- c[2] = next_note_dtime - 1
110
 
111
  c[4] = ((c[4] // 12) * 12) + tchord[i]
112
  c[5] += c[4] % 12
 
84
  c = copy.deepcopy(cg[0])
85
 
86
  if cg[0][2] > next_note_dtime:
87
+ c[2] = next_note_dtime
88
 
89
  c[4] = mel_pitch
90
  c[5] = 105 + (mel_pitch % 12)
 
106
  c = copy.deepcopy(cc)
107
 
108
  if cc[2] > next_note_dtime:
109
+ c[2] = next_note_dtime
110
 
111
  c[4] = ((c[4] // 12) * 12) + tchord[i]
112
  c[5] += c[4] % 12