Lokarzz/perfectTune


A library in android that will help you create tunes with no sweat

Download


Step 1. Add the JitPack repository to your build file

Add it in your root settings.gradle at the end of repositories:

	dependencyResolutionManagement {
		repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
		repositories {
			mavenCentral()
			maven { url 'https://jitpack.io' }
		}
	}

Add it in your settings.gradle.kts at the end of repositories:

	dependencyResolutionManagement {
		repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
		repositories {
			mavenCentral()
			maven { url = uri("https://jitpack.io") }
		}
	}

Add to pom.xml

	<repositories>
		<repository>
		    <id>jitpack.io</id>
		    <url>https://jitpack.io</url>
		</repository>
	</repositories>

Add it in your build.sbt at the end of resolvers:

 
    resolvers += "jitpack" at "https://jitpack.io"
        
    

Add it in your project.clj at the end of repositories:

 
    :repositories [["jitpack" "https://jitpack.io"]]
        
    

Step 2. Add the dependency

	dependencies {
		implementation 'com.github.karlotoy:PerfectTune:1.0.5'
	}
	dependencies {
		implementation("com.github.karlotoy:PerfectTune:1.0.5")
	}
	<dependency>
	    <groupId>com.github.karlotoy</groupId>
	    <artifactId>PerfectTune</artifactId>
	    <version>1.0.5</version>
	</dependency>

                            
    libraryDependencies += "com.github.karlotoy" % "PerfectTune" % "1.0.5"
        
        

                            
    :dependencies [[com.github.karlotoy/PerfectTune "1.0.5"]]
        
        

Readme


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