项目作者: AmirRezaSobhdel

项目描述 :
a lifecycle aware metronome library with callbacks , dynamic tempo changer and all the other things you need for your app !
高级语言: Kotlin
项目地址: git://github.com/AmirRezaSobhdel/Metronomia.git
创建时间: 2020-09-26T05:06:07Z
项目社区:https://github.com/AmirRezaSobhdel/Metronomia

开源协议:

下载


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

  1. allprojects {
  2. repositories {
  3. ...
  4. maven { url 'https://jitpack.io' }
  5. }
  6. }
  1. dependencies {
  2. implementation 'com.github.AmirRezaSobhdel:Metronomia:1.0.0'
  3. }

how to use

  1. // initialize metronomia instance
  2. var metronome = Metronomia(viewLifecycleOwner)
  3. // start metronome with an specific tempo
  4. metronome.startMetronome(tempo1)
  5. // dynamically change the tempo
  6. metronome.startMetronome(secondaryTempo)
  7. // pause metronome and if you want to play just use the lines above
  8. metronome.pauseMetronome()
  9. // stop metronome
  10. // it means you are clearing the current state of metronome
  11. metronome.stopMetronome()

License

  1. Copyright 2020 AmirRezaSobhdel
  2. Licensed under the Apache License, Version 2.0 (the "License");
  3. you may not use this file except in compliance with the License.
  4. You may obtain a copy of the License at
  5. http://www.apache.org/licenses/LICENSE-2.0
  6. Unless required by applicable law or agreed to in writing, software
  7. distributed under the License is distributed on an "AS IS" BASIS,
  8. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  9. See the License for the specific language governing permissions and
  10. limitations under the License.