Contents page

Rules for Tools/noteinkey()


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

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

    `struct NoteEvent  *note'
          Note Event to test.

DESCRIPTION
     `noteinkey()' tests if a MIDI note Event is legally within the key
     & scale/mode.  It compares the note's value with the key in `clip'
     that is active at the time stamped in `note->time', returning 1 if
     in key, 0 if not.

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