"Ditty" is a demeaning synonym for a song. Whenever I hear the phrase, "this little ditty," I think, "Call it a song! Or a tune, melody, or jingle." When there are better, more dignified words you could use, I don't know why anyone would use a clunky-sounding word like "ditty."