'' however , the young mcgregor soon gravitated more towards the production end of songwriting , and by the age of seven he had taught himself to play bass , guitar , keyboards , and violin by mimicking the songs he heard on the radio .