Skip to content

Latest commit

 

History

History
54 lines (41 loc) · 1020 Bytes

README.md

File metadata and controls

54 lines (41 loc) · 1020 Bytes

Perfect Tune Library

Android Library generate simple audio tune of different frequency with no sweat. generating audio tune is not that easy. This library will help you.

Installation

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'
}

Usage

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 :)