annotate tests/test-summaries/expected/testplug-curve-vsr-mean.csv @ 271:7b3a80021b7c piper-nopiper

Add MAD_BUFFER_GUARD padding at end of mp3 buffer, in order to ensure last frame is decoded successfully (otherwise the decoded audio is truncated). Another thing learned from madplay.
author Chris Cannam
date Thu, 24 Nov 2016 17:06:31 +0000
parents 6a804920b4a8
children
rev   line source
Chris@235 1 # Sonic Annotator's summary method integrates the values across
Chris@235 2 # time. If an output lacks duration for its features, each feature is
Chris@235 3 # considered to extend until the timestamp of the following feature,
Chris@235 4 # and the final feature is considered to extend until the end of the
Chris@235 5 # input or the last-ending output, whichever is later.
Chris@235 6 #
Chris@235 7 # The curve-vsr output is therefore considered to have 9 values (0.0
Chris@235 8 # to 0.8) that span 0.75 seconds each, followed by one value (0.9)
Chris@235 9 # that spans the 3 seconds from 6.75 to 9.75 where the final output of
Chris@235 10 # the plugin ends (that's the notes-regions output).
Chris@235 11 #
Chris@235 12 # The sum of 0.0..0.8 is 3.6, so the mean is (3.6 * 0.75 + 0.9 * 3.0)
Chris@235 13 # / 9.75 = 0.553846 approx.
Chris@235 14 #
Chris@235 15 # Equivalently we can consider the last feature the same as four
Chris@235 16 # features of 0.75 seconds each (i.e. the same durations as the first
Chris@235 17 # 9) each with the same value, 0.9. The mean is then the sum of
Chris@235 18 # 0.0..0.9 plus three more 0.9s, i.e. 7.2, divided by 13.
Chris@235 19 #
Chris@235 20 0.000000000,9.750000000,mean,0.553846,"(mean value, continuous-time average)"