Formulate an answer to this elaborate question: What was the name of the character played by an actor from the last six Harry Potter films in the BBC television serial "The Singing Detective"?
the eponymous mystery writer protagonist