Jump to content

set functions for OM structures


Recommended Posts

Say we have as base material 2 list sequences a and b in omn or other musical OM forms (i.e. pitch series), which are generated by some algorithm.

There will be cases where you want to calculate on sets of this material.

 

Is there a OM function which helps to calculate set operations for both?

Foregive me if I missed something in the excellent docu.

 

If not, consider to implement the 3 elementary types of set operations: 

- union: the set with holds all elements of a and b

- intersect: the set which holds the elements found in a and b, but excludes those which only occur in a resp. b. 

- setdiff: the set which holds all elements in a which are not elements in b

 

Needless to say that set functions will discard duplicates.

I am sure there are LISP functions for this, but they probably won't generalize  to OM related data structure?

 

Regards

Cliff

set.png

Link to comment
Share on other sites

I agree !

It would be nice to have a dedicated function for set operations with lists of any nature.

There are set theory functions for dealing with pitch class sets, like

 

(pcs-super-sets 4 (pcs '3-1) :forte)

 

and

 

(pcs-sub-sets 4 (pcs '7-35) :forte)

Check the Filters / Processing functions.

There are many ways to filter things. Some are related do the idea of sets.

best !

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

Terms of Use Privacy Policy