invent vs play by ear

invent

verb
  • To design a new process or mechanism. 

  • To create something fictional for a particular purpose. 

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 invent and play by ear occurred in a corpus of books? (source: Google Ngram Viewer )