Adding notes and permutation generator