Skip to content

Commit

Permalink
update HR progress
Browse files Browse the repository at this point in the history
  • Loading branch information
RichardFreedman committed Aug 3, 2023
1 parent 139c013 commit 4772fcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion intervals/main_objs.py
Original file line number Diff line number Diff line change
Expand Up @@ -2294,7 +2294,7 @@ def homorhythm(self, ngram_length=4, full_hr=True):
hr['voice_match'] = hr['active_voices'] == hr['active_syll_voices']
# retain ngram length for use with ema
hr['ngram_length'] = int(ngram_length)
hr["Progress"] = (hr["First_Offset"] / self.notes().index[-1])
hr["Progress"] = (hr.index.get_level_values(2) / self.notes().index[-1])


result = self.detailIndex(hr, offset=True)
Expand Down

0 comments on commit 4772fcb

Please sign in to comment.