Skip to content

Instantly share code, notes, and snippets.

Created November 12, 2015 20:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/797d7c7dea98352a39d7 to your computer and use it in GitHub Desktop.
Save anonymous/797d7c7dea98352a39d7 to your computer and use it in GitHub Desktop.
# Say a measure consists of 16 notes
# I have 4 different groupes of notes : 3,4,5,6
# I want to generate all the possible ways of achieving 16 notes using those (and only those) groups of notes
# Order is important here 4,3 is not the same as 3,4
# An example : [4,4,4,4] (the sum is 16)
# Another : [3,3,3,3,4] (again)
# etc...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment