Add pitch attribute to track object

This value will be added to every note.
Rename `num samples` to `num frames`
Remove unnecessary pitch variable

Pitch attribute is now available in track object.