move addnote/chord logic from controller to model