MAKE-GRAPH
Arguments: coll &optional pred [generic-function]
Builds a graph of chords to be explored by 'graph-tour'.
This graph defines and quantifies the relations inside the collection of chords.
By default, relations are based on common-notes.
This graph defines and quantifies the relations inside the collection of chords.
By default, relations are based on common-notes.
Inputs :
coll : A chordseq, a list of chords, a list of list of midics.
pred : (optional) a predicate (e.g. a subpatch in lambda mode) with 2 arguments.
pred : (optional) a predicate (e.g. a subpatch in lambda mode) with 2 arguments.
If pred is given, it defines an alternate relation to examine between chords.
pred must be ready to compare 2 numbers (e.g. midic) and answer T or Nil.
By default, pred is the equality predicate.
Example : pred = (lambda (x y) (= (abs (- x y)) 100))
will quantify the chromatic-step relation instead of common-notes.
pred must be ready to compare 2 numbers (e.g. midic) and answer T or Nil.
By default, pred is the equality predicate.
Example : pred = (lambda (x y) (= (abs (- x y)) 100))
will quantify the chromatic-step relation instead of common-notes.
Output :
A graph object.