Class HarmonyEngine
java.lang.Object
org.episteme.social.arts.music.HarmonyEngine
Advanced musical harmony and scale engine.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptioncalculateFrequency(int semitonesFromA4) generateScale(int rootSemitone, HarmonyEngine.ScaleType type) Generates a scale starting from a root note.static StringidentifyChordType(List<Integer> semitones) static intinterval(int note1, int note2) Calculates the interval in semitones between two notes.static StringintervalName(int semitones) Names an interval (0-12 semitones).Transposes a list of notes by a given number of semitones.
-
Method Details
-
generateScale
Generates a scale starting from a root note. -
calculateFrequency
-
identifyChordType
-
transpose
-
interval
public static int interval(int note1, int note2) Calculates the interval in semitones between two notes. -
intervalName
Names an interval (0-12 semitones).
-