About the beatdetector...

Started by Led,

Ryzer

Ok, I'm not so good in C++, so help me out here:

#include "BeatCnt.h"Doesn't that means that we need the file BeatCnt.h ?

Is this the full source? So we only need this and the DLL (and BeatCnt.h maybe?) ?

Can someone inhere turn this code into VB6-code? (Cause there are people inhere that uses VB6 for there programs and maybe also can read some C++...)

Thanks,
 Ryzer

Largie

#21
Quote#include "BeatCnt.h"Doesn't that means that we need the file BeatCnt.h ?

If someone make a "wrapper" dll for you that you can use, the complete sdk includes the BeatCnt.h, BeatCnt.lib that is needed...

I guess Jobnik or something can get this thing to work... But I guess it is better if someone completes Carrots Bpm thingy first! :)

It is kinda buggy... :)

Ryzer

So we can't do shit with the code you gave?  ;)

Largie

QuoteSo we can't do shit with the code you gave?  ;)

I see this as a perfect oppertunity for you to start programming Visual C++ stuff!  8)

Ryzer


QuoteI see this as a perfect oppertunity for you to start programming Visual C++ stuff!  8)

Parse Error: Learning not understood in Bass-Forum on line 3
Parse Error: Refusing to learn in VACATION on line 3

Maybe l8tr...  8)

CubicCarrot

Hello All,

I didn't really stop development on the Cubic Carrot Beat Counter, but I did have to pause it since I'm still studying.  The page you are referring too is quite old.  Current Beat Counter available is version 1.0.13, which I might upload to that site one of these days.  Next version of the SDK may well be released one of the coming weeks (because at last I'm finding some spare time).

Source however is not available. I still want to sell the SDK and Beat Counter so I have some certainty I'll be able to finish my studies.

Sven De Smet
Cubic Carrot Software
benedict.de.smet@skynet.be

CubicCarrot

If you want to try out the SDK, grab a download:

http://users.skynet.be/bk264570/BCsdk092.zip

Note however that this is not the latest version (which I'll release in one of the coming weeks) and seems to be a lot more difficult to implement.  I think it would be a waste of time to try implementing version 0.9.2 now.  Next version will contain its own wrapper class (at least for Delphi), so there's no need to worry about that.  The new dll will consist of only 5 functions, and should be almost too simple to implement.

Note also that this SDK is not free (NOT FREE).

You may also want to download Beat Counter 1.0.13:
http://users.skynet.be/bk264570/BeatC10D.exe

The results of the new SDK will be comparable to the results of Beat Counter 1.0.13.

Kind regards

Sven

Ryzer

That's good.
Is it also so easy to implant the DLL in a Visual Basic App?
Cause I have lots of trouble with implanting DLL's.
An example would be nice (if you have knowledge of VB6)...

CubicCarrot

VB might be a problem (because importing DLLs in VB is indeed generally a problem).  I may have to wrap the DLL in an OCX for that.  I'll try to write an example for VB, but I have close to no experience in VB - and I haven't got it installed for the moment.

Ryzer

The Bass DLL works perfectly with VB, so I hope it will be the same with your cool new DLL.

Largie

QuoteI didn't really stop development on the Cubic Carrot Beat Counter, but I did have to pause it since I'm still studying.  The page you are referring too is quite old.  Current Beat Counter available is version 1.0.13, which I might upload to that site one of these days.  Next version of the SDK may well be released one of the coming weeks (because at last I'm finding some spare time).

Source however is not available. I still want to sell the SDK and Beat Counter so I have some certainty I'll be able to finish my studies.

Study money is always good! :) I'm current trying to develope a beatdetector myself written in VS C++ 6.0...

Do you have any relevant info (pdf, docs, tips) on how you calculate the bpm, and detect the signal? I'm starting to study next month, and I have contacted one of the math geeks ;) from the school I am starting at... And he wanted formulars and stuff just for getting started?

Please help cubic! ;)

Ryzer

Largie, that's great.
Is it gonna be a freeware beatcounter? I surely hope so!  :)

Keep us informed on this forum...

Thnx

Largie

QuoteLargie, that's great.
Is it gonna be a freeware beatcounter? I surely hope so!  :)

Keep us informed on this forum...

It should be freeware... But I have not decided yet... I have also others that program it for me... So maybe a opensource solution with upload possiblities of new versions by others etc...

Ryzer

Cool,
I would like to help with the beatdetector if you want me to...
I could help with testing the DLL in VB6 and make examples for it.  :)

At least if you want me to help?

Largie

QuoteI would like to help with the beatdetector if you want me to...
I could help with testing the DLL in VB6 and make examples for it.  :)
At least if you want me to help?

I was almost counting on it Ryzer! ;) Hehe... I have found a programmer through the www.rentacoder.com, and he wanted to help me with the project.

I have also found a new version (on linux of caz) of a beat detector:

http://sourceforge.net/projects/bpmdj/

There are also other projects there that has been started, but no files has been released...

Now I'm waiting for my coder to come back from vication... Then we'll start...

Ryzer

Nice, a rented programmer...

I'll check the stuff out. Just upload the newest sources so I can download them to test the stuff...

Now trying to install VC++... but CD gives error: file not found... Disc is kind of old  ;)

Ryzer

R U running linux, Largie?
Cause I can't open that stuff... then I need to go into my RedHat, and I hate linux  ;D

Ryzer

I tryd to use the DLL in VB using the following small code:

Private Declare Function BeatGetBpmFromFile Lib "BeatCnt.dll" (FileName, minBeatsPM, MaxBeatsPM, Progress, Certainty)


Private Sub Command1_Click()
Call BeatGetBpmFromFile("E:\afro medusa - pasilda.mp3", 100, 150, Progress, Certainty)
End Sub

Result: Program crashes when I push the button.
Anyone knows how I should use it in VB?

Kruzemo

is that actual code from your program? if it is, your problem may be something VERY simple.  Usually, when passing any variables to external functions, you need to declare the variable types.

for example say something like "filename as string" or "progress as integer" or whatever

Private Declare Function BeatGetBpmFromFile Lib "BeatCnt.dll" (FileName as string, minBeatsPM as long, MaxBeatsPM as long, Progress as long, Certainty as long)
i dont know if those are the correct types for your program, but you get the idea  :)

secondly, make sure the variables are declared as a matching type or you will get a type mismatch error  ;D

that solves the crashes 9 times out of 10  ;)

Ryzer

Thnx,
but it still crashes.  :(

Do you maybe know how to use the code on page2 in VB?