Package com.tagtraum.audiokern.key
Interface Chord
-
- All Known Implementing Classes:
SeventhChord
,Triad
public interface Chord
Chord.- Author:
- Hendrik Schreiber
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
Chord.Type
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
canBeFormedFrom(Tone[] tones, int length)
boolean
contains(Tone tone)
float
getCorrelation(float[] chromagram, Tone chromagramBase)
Computes the correlation of this chord (and type) to a chromagram with the given base tone.Tone
getRoot()
Tone[]
getTones()
Chord.Type
getType()
-
-
-
Method Detail
-
getCorrelation
float getCorrelation(float[] chromagram, Tone chromagramBase)
Computes the correlation of this chord (and type) to a chromagram with the given base tone.- Parameters:
chromagram
- chromagram- Returns:
- correlation coefficient
-
canBeFormedFrom
boolean canBeFormedFrom(Tone[] tones, int length)
-
contains
boolean contains(Tone tone)
-
getTones
Tone[] getTones()
-
getRoot
Tone getRoot()
-
getType
Chord.Type getType()
-
-