CocoaPods trunk is moving to be read-only. Read more on the blog, there are 14 months to go.
| TestsTested | ✓ |
| LangLanguage | C++C++ |
| License | MIT |
| ReleasedLast Release | Aug 2015 |
Maintained by Héctor Marqués.
MRDetectBpmOperation is a concrete subclass of NSOperation that uses the SoundTouch Audio Processing Library for detecting BPM of a media resource.
NSURL *fileURL = [[NSBundle mainBundle] URLForResource:@"song" withExtension:@"mp3"];
MRDetectBpmOperation *operation = [MRDetectBpmOperation bpmOperationWithAssetURL:fileURL];
[operation setCompletionBlockWithSuccess:^(MROperation *operation) {
NSLog(@"%f BPM", ((MRDetectBpmOperation *)operation).bpm);
} failure:^(MROperation *operation, NSError *error) {
NSLog(@"%@", error);
}];
[operation start];To run the example project, clone the repo, and run pod install from the Example directory first.
Perform the following steps:
ANDROID=1 SOUNDTOUCH_INTEGER_SAMPLES=1 to GCC_PREPROCESSOR_DEFINITIONS in your project settings.MRDetectBpmOperation is available under the MIT license. See the LICENSE file for more info.