Isn't the more severe offense, and the one relevant here, more about distributing a recording than making a recording? Nobody will care if your brain has a copyrighted melody saved in it, but they'll care if you start putting it (or something substantially equivalent) all over the place where others can obtain it.