public class PitchHandler
extends java.lang.Object
| Constructor | Description |
|---|---|
PitchHandler() |
| Modifier and Type | Method | Description |
|---|---|---|
double |
getHarmonicProbability(double[] frequencies) |
Determine the harmonic probability of a list of frequencies
|
double |
getToneChanged(double f1,
double f2) |
Get the tone changed by comparing two tones
return 1.0 is a semi-tone, 2.0 is a tone, etc...
|
boolean |
isHarmonic(double f1,
double f2) |
Determine the tones are in harmonic relationship or not
|
public double getToneChanged(double f1,
double f2)
f1 - original tonef2 - new tonepublic double getHarmonicProbability(double[] frequencies)
list - of frequenciespublic boolean isHarmonic(double f1,
double f2)
f1 - frequencyf2 - another frequencyCopyright © 2018. All Rights Reserved.