dwysocki / hidden-markov-music

Generate original musical scores by means of a hidden Markov model.
MIT License
6 stars 1 forks source link

Song Signatures #5

Closed dwysocki closed 9 years ago

dwysocki commented 9 years ago

Implement a signature subcommand, which takes a model from stdin and prints the song's signature to stdout as two rows of tabular data. The shorter row will be padded on the right with zeroes, although to compare multiple songs, more padding later on may be necessary.

dwysocki commented 9 years ago

This has been implemented as of 1fb95d8c8ae0d6ca744c8f4df162151c15f772f8

I have neglected to pad the right with zeroes, as it may not be wise to do in this subcommand. My reasoning is this: if there are signatures for multiple songs, then there will have to be additional padding between songs. Why should I then do the padding twice? In addition, I may end up redirecting the two rows of data to two separate files, in which case the padding at this step was useless.