Quantcast
Channel: The Echo Nest Developer Forum
Viewing all articles
Browse latest Browse all 1582

tatum / segment relationship

$
0
0

To render say, just the last hit of a track,

audiofile = audio.LocalAudioFile(input_filename)
audiofile.analysis.tatums[-1]

returns the final tatum, but trailing tail is cut off.

audiofile.analysis.segments[-1]

plays the complete final hit, including fade and silence.

The problem is that the final segments and tatums start and end times do not line up:

segment (303.36 - 303.50) segment (303.50 - 308.96) #END is 4 seconds later than tatum end
tatum (303.41 - 303.69) tatum (303.69 - 303.96)

In order to append the final segment to a track assembled of bars and tatums, is it possible to override the end time of the final tatum or shift the start time of a segment to match a tatum?


Viewing all articles
Browse latest Browse all 1582

Trending Articles