Let me walk through what happens as thing currently stand.
The CSV is written as a table. Rows are moments in time, while columns are headed by strings that represent instruments.
We call LoadSheetNoteFromCSV. We return a SheetNote struct. This is then stored as a slice of instrument-string ==> pitch dictionaries.
This slice of instrument-string ==> pitch dictionaries can be fed into the Orchestra object & Played.
The slice of instrument-string ==> pitch dictionaries cannot be fed into anything Machine-learning related. For that, we need a mat.Matrix.
Ergo! A second function: the SheetNote2Matrix function.
This returns a matrix where the rows are moments in time, while columns refer to instruments.
We're back where we started! Why not have a mat.Matrix object that can be fed into the Orchestra Object?
I propose the methodology for doing so is via the Aliaser. Already I have a separate aliaser (see Issue 8 ) for determining which column corresponds to which instrument. If I unify my Instrument Aliasers, then the Orchestra object can use that for getting the correct noteblock sound from the now-a-mat.Matrix SheetNote!
Let me walk through what happens as thing currently stand.
The CSV is written as a table. Rows are moments in time, while columns are headed by strings that represent instruments.
We call LoadSheetNoteFromCSV. We return a SheetNote struct. This is then stored as a slice of instrument-string ==> pitch dictionaries.
This slice of instrument-string ==> pitch dictionaries can be fed into the Orchestra object & Played.
The slice of instrument-string ==> pitch dictionaries cannot be fed into anything Machine-learning related. For that, we need a mat.Matrix.
Ergo! A second function: the SheetNote2Matrix function.
This returns a matrix where the rows are moments in time, while columns refer to instruments.
We're back where we started! Why not have a mat.Matrix object that can be fed into the Orchestra Object?
I propose the methodology for doing so is via the Aliaser. Already I have a separate aliaser (see Issue 8 ) for determining which column corresponds to which instrument. If I unify my Instrument Aliasers, then the Orchestra object can use that for getting the correct noteblock sound from the now-a-mat.Matrix SheetNote!