luccifer / bpm-analyser Goto Github PK
View Code? Open in Web Editor NEWAnalyser BPM in Swift for your music/sounds/records, whatever..
License: MIT License
Analyser BPM in Swift for your music/sounds/records, whatever..
License: MIT License
Hi,
I appreciate you doing this, I've been searching everywhere for something that looks good to me.
Unfortunately my app crashes when I try to put it to action.
I also ran your sample project to check if I was doing something wrong and it still crashes in the same line of code.
Could you help?
Thank you
file - BMPAnalyzer.swift
line 14 - completion!(Superpowered().offlineAnalyze(url))
log:
fatal error: unexpectedly found nil while unwrapping an Optional value
Hello Team,
When I try to get bpm of the song by BPM Analyzer, they return error give below. Please check me doing correct way to get bpm or not.
Code Below:
First UseCase
let dummySongURL = Bundle.main.url(forResource: "demo2", withExtension: "mp3")!
= BPMAnalyzer.init().getBpmFrom(dummySongURL) { (songBPM) in // error return: open error: Can't open this file. }
Second UseCase
let dummySongURL = "https://geekanddummy.com/wp-content/uploads/2014/02/central-locking-Ford-Mondeo-Mk-3.mp3"
= BPMAnalyzer.init().getBpmFrom(URL(string: urlss)!) { (songBPM) in // open error: Use SuperpoweredAdvancedAudioPlayer::setTempFolder first. }
Can someone please explain to me how to get this.
Any help would be greatly appreciated.
Thanks in advance.
Examples:
IN EXTREMO 'Lebensbeichte'
REPORTED BPM: 178
https://songbpm.com/in-extremo-lebensbeichte?q=In%20Extremo%20-%20Lebensbeichte: 89
DEPECHE MODE 'A question of lust'
REPORTED BPM: 187.5
https://songbpm.com/depeche-mode-a-question-of-lust?q=depeche%20mode%20-%20a%20question%20of%20lust: 96
the other songs however are (almost) identical:
Archive - 'You make me feel'
REPORTED BPM: 167
https://songbpm.com/archive-you-make-me-feel?q=Archive%20-%20You%20make%20me%20feel: 167
I'm trying to integrate BPMAnalyser into my project and am running into this roadblock. I'm having a hard time adding the Superpowered library correctly. I've added the Superpowered bridging header to my bridging header, and have added the libSuperpoweredAudioIOS.a to my linked frameworks, but still get the following error:
Undefined symbols for architecture arm64: "_OBJC_CLASS_$_Superpowered", referenced from: objc-class-ref in BMPAnalyzer.o ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
When selecting a track (Not from Apple music, downloaded to the device) the application returns:
BPMAnalyser[40046:12132003] open error: Data connection lost.
Hi there!
Thanks for awesome bridge, but I found some issue:
If I pick song that purchased and downloaded from iTunes Store - everything is okay.
But if I am picking song that I have downloaded from Apple Music the library crashes: "BPMAnalyser[4409:1894057] open error: iPod library error."
My Apple Music subscription is active and songs are downloaded and stored in iPhone memory.
Hello team,
I am little bit confused because BPM-Analyser are not working properly. I am trying to check below songs Bpm through BPM-Analyser and return wrong bpm please check.
Song Name:- Comfortably Numb by Pink Floyd
Song BPM:- 64 BPM
BPM Analyser = 127 BPM
Song Name:- The End by The Beatles Song
Song BPM:- 123 BPM
Reference Link:- https://www.google.com/search?sxsrf=ALeKk02pCM3ZfW3c6TVpOJRCi4zqFCQHbA%3A1589551394007&ei=IqG-Xo0J_pDj4Q_SlY3gDQ&q=The+End+by+The+Beatles+Song+BPM&oq=The+End+by+The+Beatles+Song+BPM&gs_lcp=CgZwc3ktYWIQAzIICCEQFhAdEB46BAgAEEc6BAgjECc6AggAOgYIABAWEB5QxQVY-x9gliJoAHAAeACAAZ0BiAGhDJIBBDAuMTGYAQCgAQGqAQdnd3Mtd2l6&sclient=psy-ab&ved=0ahUKEwiNosSxhLbpAhV-yDgGHdJKA9wQ4dUDCAw&uact=5
BPM Analyser = 111 BPM
@Luccifer @drougojrom Please check this and reply me ASAP. Why BPM-Analyser return wrong or incorrect BPM.
Looking forward to hear from you.
Thanks & Regards
Sham
Hi,
I tried the example app on Xcode 12.1 with
let url = Bundle.main.url(forResource: "TestMusic", withExtension: "m4a")
(Because media selector is not working on simulator)
But I receive file can't open error
message.
I tried different files result the same.
Superpowered.mm
gives the error
- (NSString *)offlineAnalyze:(NSURL *)url {
// Open the input file.
SuperpoweredDecoder *decoder = new SuperpoweredDecoder();
const char *openError = decoder->open([[url absoluteString] UTF8String], false, 0, 0);
if (openError) {
NSLog(@"open error: %s", openError);
delete decoder;
NSString *st = @"";
return st;
};
My url is correct I did nil check but maybe something is deprecated?
Thank you in advance.
It creates a blank screen when running on iPhone 6s. The language selection was Swift 4.0
Hey, this is probably super simple, but how can I access the class from within my implementation?I have added the src to the project and copied over and set the bridge file to be built as well. Once I try to access BPMAnalyzer class it says there is none. I have tried building and restarting xcode to no avail.
I am also trying this on a macos app, can that be the issue?
i want to confirm it's working for video ya only for audio. If yes could you please provide me some information about video Bpm
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.