https://github.com/vadymmarkov/marktempometer
A simple tool to determine the BPM (beats per minute).
https://github.com/vadymmarkov/marktempometer
Last synced: about 1 month ago
JSON representation
A simple tool to determine the BPM (beats per minute).
- Host: GitHub
- URL: https://github.com/vadymmarkov/marktempometer
- Owner: vadymmarkov
- License: other
- Created: 2015-03-15T20:05:05.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-03-15T20:09:29.000Z (over 10 years ago)
- Last Synced: 2025-07-22T23:25:35.735Z (3 months ago)
- Language: Objective-C
- Size: 129 KB
- Stars: 6
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# MARKTempoMeter
[](http://cocoadocs.org/docsets/MARKTempoMeter)
[](http://cocoadocs.org/docsets/MARKTempoMeter)
[](http://cocoadocs.org/docsets/MARKTempoMeter)A simple tool to determine the BPM (beats per minute). Could be useful for any task that requires the measurement of tempo (tap controls for drum machines, metronomes, etc).
Please check Demo project for a basic example on how to use MARKTempoMeter.
## Usage
#### In your code
```objc
// To handle every new beat
- (void)buttonDidTouchUpInside:(UIButton *)button
{
[[MARKTempoMeter sharedInstance] handleNewBeat];
}// To receive current BPM via block
[MARKTempoMeter sharedInstance].updateBPMHandler = ^(NSUInteger BPM) {
NSLog(@"BPM: %lu", BPM);
};// To receive current BPM via delegate
- (void)tempoMeter:(MARKTempoMeter *)tempoMeter didUpdateBPM:(NSUInteger)BPM
{
NSLog(@"BPM: %lu", BPM);
}
```## Installation
**MARKTempoMeter** is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:`pod 'MARKTempoMeter'`
## Author
Vadym Markov, impressionwave@gmail.com
## License
**MARKTempoMeter** is available under the MIT license. See the LICENSE file for more info.