The first situation isn't copyright violation because some monied entity went out and litigated against Warner/Chappell music. That's the problem with copyright - until you've litigated, which is expensive, you just can't tell what's in and what's out of copyright. You wrote "almost certainly" because of that.
I was hedging against the too-clever HN commenter coming back and saying, “The robot knew you were going to sell the painting” or “You sang the game on the Jumbotron at Yankee Stadium.”