Class:            Chord

Environment:      Siren
Superclass:         Siren.Cluster
Category:         Music-EventGenerators
Instance variables:   root inversion type arity

Instances of Chord are eventLists that can be created by giving them a root and inversion. They can return eventLists.

Instance variables:
   root the root of the chord
   inversion the inversion level (unused at present)
   type #major, #minor, etc.
   arity number of notes of the chord

accessing

arity: aNumber
   set the number of notes of the receiver chord

duration: aDuration
   set the durations of my notes

eventList
   Answer the receiver's events

inversion: number
   set the inversion of the receiver chord

root: tonic
   set the root of the receiver chord

type: aSymbol
   set the type symbol of the receiver chord

generating events

majorTetrad
   return a three-note major chord on the given tonic in the given inversion

majorTriad
   return a three-note major chord on the given tonic in the given inversion

minorTetrad
   return a three-note minor chord on the given tonic in the given inversion

minorTriad
   return a three-note minor chord on the given tonic in the given inversion

MetaClass:         Chord class

instance creation

majorTetradOn: tonic inversion: inversion
   return a three-note major chord on the given tonic in the given inversion

majorTriadOn: tonic inversion: inversion
   return a three-note major chord on the given tonic in the given inversion

minorTetradOn: tonic inversion: inversion
   return a three-note minor chord on the given tonic in the given inversion

minorTriadOn: tonic inversion: inversion
   return a three-note minor chord on the given tonic in the given inversion

examples

example
   Create and edit some chords.