Skip to content

a lifecycle aware metronome library with callbacks , dynamic tempo changer and all the other things you need for your app !

Notifications You must be signed in to change notification settings

AmirRezaSobhdel/Metronomia

Repository files navigation

Metronomia

a lifecycle aware metronome library with callbacks , dynamic tempo changer and all the other things you need for your android app !

metronome

features

  • start , stop and pause the metronome
  • dynamically change the tempo(bpm)
  • lifecycle awareness

get Metronomia into your project

allprojects {
		repositories {
			...
			maven { url 'https://jitpack.io' }
		}
	}
dependencies {
	        implementation 'com.github.AmirRezaSobhdel:Metronomia:1.0.0'
	}

how to use

// initialize metronomia instance
var metronome = Metronomia(viewLifecycleOwner)

// start metronome with an specific tempo
metronome.startMetronome(tempo1)

// dynamically change the tempo
metronome.startMetronome(secondaryTempo)

// pause metronome and if you want to play just use the lines above
metronome.pauseMetronome()

// stop metronome
// it means you are clearing the current state of metronome
metronome.stopMetronome()

License

Copyright 2020 AmirRezaSobhdel

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

About

a lifecycle aware metronome library with callbacks , dynamic tempo changer and all the other things you need for your app !

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages