Latest 0.1.0
Homepage https://github.com/markvaldy/MARKTempoMeter
License MIT
Platforms ios 7.0, requires ARC
Frameworks Foundation
Authors

Version
License
Platform

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

// 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. To install
it, simply add the following line to your Podfile:

pod 'MARKTempoMeter'

Author

Vadym Markov, [email protected]

License

MARKTempoMeter is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "MARKTempoMeter",
    "version": "0.1.0",
    "summary": "A simple tool to measure the BPM (beats per minute)",
    "homepage": "https://github.com/markvaldy/MARKTempoMeter",
    "license": {
        "type": "MIT",
        "file": "LICENSE.md"
    },
    "authors": {
        "Vadym Markov": "[email protected]"
    },
    "social_media_url": "https://twitter.com/markvaldy",
    "source": {
        "git": "https://github.com/markvaldy/MARKTempoMeter.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "frameworks": "Foundation",
    "source_files": "Source/**/*.{h,m}"
}

Pin It on Pinterest

Share This