Contents page

Rules for Tools/noteinchord()


noteinchord()
 

SYNOPSIS
     int noteinchord(struct Clip *clip, struct NoteEvent *note)

ARGUMENTS
    `struct Clip  *clip'
          Clip for song parameters.

    `struct NoteEvent  *note'
          Note Event to test.

DESCRIPTION
     `noteinchord()' tests if the MIDI note value in note is legally
     within the chord list of `clip'.  `noteinchord()' compares the
     note's value with the chord in clip that is active at the time
     stamped in `note->time'.  If the note is a member of the chord, 1
     is returned, else 0.

SEE
     See noteinkey(), scaletotwelve(), twelvetoscale(), timetokey(),
     timetochord().