#NEWLINE# def framesFromOnsets( self , onsets ) : #NEWLINE# #INDENT# '\n        Decompose into frames based on onset start time-series\n        ' #NEWLINE# frames = [ ] #NEWLINE# for i in range ( 0 , ( len ( onsets ) - 1 ) ) : #NEWLINE# #INDENT# frames . append ( self [ onsets [ i ] : onsets [ ( i + 1 ) ] ] ) #NEWLINE# #UNINDENT# return frames