Last updated:
0 purchases
metronome
Metronome #
Efficient, accurate, cross-platform metronome; supports volume, BPM, and audio source settings.
#
TODO #
❌ Add support for time signature #2
❌ Add Windows support
❌ Add CallBack function on Tick for web
Quick Start #
Init #
final metronome = Metronome();
metronome.init('
assets/audio/snare.wav',
bpm: 120,
volume: 50,
//When set to true, the music of other apps will stop when the metronome is played.
enableSession: true,
enableTickCallback: true,
);
copied to clipboard
Play #
metronome.play();
copied to clipboard
Pause #
metronome.pause();
copied to clipboard
Stop #
metronome.stop();
copied to clipboard
Volume #
metronome.getVolume();
metronome.setVolume(50);
copied to clipboard
BPM #
metronome.setBPM(120);
metronome.getBPM();
copied to clipboard
get Play state #
metronome.isPlaying();
copied to clipboard
setAudioFile #
metronome.setAudioFile('assets/audio/snare.wav');
copied to clipboard
destroy #
metronome.destroy();
copied to clipboard
Tick callback #
metronome.onListenTick((_) {
print('tick');
});
copied to clipboard
About Web #
Please add the example/web/app.js file to index.html under your web. As follows:
<script src="app.js" defer></script>
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.