The stories and sufferings of prison life have often been captured in the melodies of incarcerated musicians.