Have you tested this solution with a true "gapless" album?
Some time ago I wrote a small script in python to join semiautomatically songs (You have to indicate which songs want to join, and the program does the rest). For example, for "The Dark Side of the Moon" what I have is the following:
- 0001_0005-pink_floyd-speak_to_me_breathe_on_the_run_ETC.flac
- 0006_0010-pink_floyd-money_us_and_them_ETC.flac
Now using sox , Can I detect automatically that songs have problems gap?:
MAXIMUM AMPLITUDE: AUDIO FILE
0.278582: 0001-pink_floyd-speak_to_me.flac
0.532053: 0002-pink_floyd-breathe.flac
0.093828: 0003-pink_floyd-on_the_run.flac
0.019794: 0004-pink_floyd-time.flac
0.006516: 0005-pink_floyd-the_great_gig_in_the_sky.flac
0.177891: 0006-pink_floyd-money.flac
0.495937: 0007-pink_floyd-us_and_them.flac
0.389682: 0008-pink_floyd-any_colour_you_like.flac
0.668178: 0009-pink_floyd-brain_damage.flac
0.000042: 0010-pink_floyd-eclipse.flac
It seems to be more complicated. Songs 5 and 10 have very low "Maximum amplitude":
0.006516: 0005-pink_floyd-the_great_gig_in_the_sky.flac
0.000042: 0010-pink_floyd-eclipse.flac
But the "Maximum amplitude" of the song 4 is also very low:
0.019794: 0004-pink_floyd-time.flac
I have chosen to use the maximum value 0.1
I was wrong. I have to keep looking at that "Maximum amplitude" or others values used for gapless albums.
Thanks!