From etymonline
 Quote:
scrannel
"thin, meager," 1637; any modern use traces to John Milton ("Lycidas," 124), who may have invented it from dial. scranny (see scrawny). Or from a Scand. source akin to Norw. skran "rubbish."


Lycidas
 Quote:
And, when they list, their lean and fleshy songs
Grate on their scrannel pipes of wretched straw;
The hungry sheep look up, and are not fed, 125
But, swoln with wind and the rank mist they draw,
Rot inwardly, and foul contagion spread;
Besides what the grim Wolf with privy paw
Daily devours apace, and nothing said.


Looks like unmelodious may have come first.