public interface KeyProvider
Modifier and Type | Method and Description |
---|---|
byte |
convertAccidentalCountToKeyRootPositionInOctave(int accidentalCount,
byte scale)
Turns number of accidentals (negative for flats, positive for sharps) to a key and returns the key's root note's position in the octave
|
byte |
convertKeyToByte(Key key)
Converts the given Key to a byte value, from -7 for Cb major or Ab major to +7 for C# minor or A# minor, with 0 being C major or A minor
|
Key |
createKey(java.lang.String keySignature)
Given a key signature, like "Cmaj" or "Kbbbb", return the corresponding Key
|
java.lang.String |
createKeyString(byte notePositionInOctave,
byte scale)
Creates a key name, like Cmaj, given the root note's position in an octave (e.g., 0 for C) and a major or minor indicator - @see Scale MAJOR_SCALE_INDICATOR and MINOR_SCALE_INDICATOR
|
Key createKey(java.lang.String keySignature)
java.lang.String createKeyString(byte notePositionInOctave, byte scale)
byte convertAccidentalCountToKeyRootPositionInOctave(int accidentalCount, byte scale)
byte convertKeyToByte(Key key)