(back to lochland.gitlab.io)

Pitchsetter

Pitch combinatorics
Check out the code at gitlab.
Pitchsetter generates a number of pitch sets, which may be used, for instance, as modes for improvisation. (That's certainly what I intend on using it for!) There are four parameters that affect the output:
  1. the number of sets that should be returned;
  2. the size of the pool of pitches that should be used to populate these sets;
  3. whether the sets should all be of equal size (if not, the size of the sets is randomly determined); and
  4. whether the sets are partitions of the pool of notes (that is, whether a given pitch can only be in a single set).
Rendering uses the terrific VexFlow.
Number of sets:
Number of pitches:
Sets of equal size:
Partitioned notes: