mayhemsloth / Drum-Tabber

Automatic drum tab project using self-created data set and TensorFlow NN
6 stars 1 forks source link

Make raw tab processing code more robust to errant whitespace #12

Open mayhemsloth opened 4 years ago

mayhemsloth commented 4 years ago

In the process of batch processing the initial 25 song training set, there were errors at certain points due to end of line whitespace (spaces) in random tabs. I had to go into the tab files and delete these myself (not that hard with ctrl+A method).

My tab processing code currently does not seek to eliminate anything in any individual line, except the measure character and labels at the start of each line when combining into the machine-friendly tab and some newline characters. I think that if more code were added to the <convert_labels> function, when the tab is looped over fully and is replaced with the master format dictionary, you could seek to eliminate whitespace at the end of the line only. Two spaces at the beginning is the current signal for the start of a time-keeping line, so erasing that would be very very bad.