Package com.tagtraum.audiokern.key
Interface Chord
-
- All Known Implementing Classes:
SeventhChord,Triad
public interface ChordChord.- Author:
- Hendrik Schreiber
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classChord.Type
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanBeFormedFrom(Tone[] tones, int length)booleancontains(Tone tone)floatgetCorrelation(float[] chromagram, Tone chromagramBase)Computes the correlation of this chord (and type) to a chromagram with the given base tone.TonegetRoot()Tone[]getTones()Chord.TypegetType()
-
-
-
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()
-
-