adds instrument attribute to note class boilerplate