ad-lib vs play by ear

ad-lib

verb
  • To improvise all or part of a speech or other performance, especially in comedy. 

play by ear

verb
  • To do by guessing, intuition, or trial and error; to react to events as they occur; improvise 

  • To play guided by one's musical ear, rather than from a written score. 

How often have the words ad-lib and play by ear occurred in a corpus of books? (source: Google Ngram Viewer )