move common functionality in abstract NoteSet class

Signed-off-by: Nepetalactone <tobias.meusburger@gmx.net>