chesnokoff / jSymbolic

jSymbolic2 optimization
0 stars 0 forks source link

MIDIIntermediateRepresentations: OutOfMemory #2

Open chesnokoff opened 9 months ago

chesnokoff commented 9 months ago

MIDIIntermediateRepresentations object creates arrays whose lengths are equal to the number of ticks in MIDI file. However, if the file is too big, OutOfMemory error is thrown.

https://github.com/chesnokoff/jSymbolic/blob/771e116fbb417a2633fa8d9e8428eb52298875b5/jSymbolic2/src/jsymbolic2/processing/FeatureExtractionJobProcessor.java#L515-L527

https://github.com/chesnokoff/jSymbolic/blob/771e116fbb417a2633fa8d9e8428eb52298875b5/jSymbolic2/src/jsymbolic2/processing/MIDIFeatureProcessor.java#L754

Solution suggested by @Mintas : decrease resolution of big files