Android Library generate simple audio tune of different frequency with no sweat. generating audio tune is not that easy. This library will help you.
Add maven { url "https://jitpack.io" }
in your root build.gradle
allprojects {
repositories {
jcenter()
maven { url "https://jitpack.io" }
}
}
Then add the library by including it in one of your dependencies
dependencies {
implementation 'com.github.Lokarzz:perfectTune:1.0.5'
}
Instantiate the PerfectTune object
PerfectTune perfectTune = new PerfectTune();
set your desired frequency
perfectTune.setTuneFreq(freq in hz);
set the amplitude (default 10000)
perfectTune.setAmplitude(amp);
Start/Stop the tune by
//start the tune
perfectTune.playTune();
//stops the tune
perfectTune.stopTune();
Have fun in creating tunes :)