switch from standard ruby def to Sonic Pi define for fn definitions:

* define is the preferred mechanism for creating functions. 
* def will likely be deprecated at the API level in the future
* define allows me to do a bunch of extra useful steps which improve the 
  behaviour and user experience of Sonic Pi.