Split APE and FLAC Files in Ubuntu and Add Tags by Cue File

Did you ever downloaded a single APE or FLAC file consisting of multiple songs? If so, it's quite annoying to try and listen to only one song. But you can split the files into multiple songs exactly like in the cue file (each song's start and end time are saved in the cue file, so we'll know where to cut the big file).