chathasphere / pno-ai

Music Transformer Sequence Generation in Pytorch
MIT License
102 stars 29 forks source link

Fix "split_sequences" method #15

Closed chathasphere closed 5 years ago

chathasphere commented 5 years ago

Seems to struggle with the edge case of extra long notes.

Check out this line:

new_length = note.end - sample_start

seems problematic if new_length is greater than 30 seconds.