Jump to content

Recommended Posts

Posted

OK, Ok sorry for the double post

sorry for the smiley (i never utilise it)

thank you for your answer

The problem with clockbox : it donesn't receive midi clock just Send

Monitor is good but in assembler.

So i'm swimming a little

thanks

FAB

Posted

Yeh sorry about the wrong answer but to be honest I didn't really think about it that much. The double post was a bit off.

So what's wrong with MIDIMon?

Posted

I don't want all the monitor application. I just want the code who convert received midi clock(0xF8) into BPM.

For include in application who i'm writing. After converting midi clock into bpm, i want to display the BPM on LCD screen.

excuse me for my english(cause i'm french).

Thanks a lot.

  FAB

Posted

I actually enjoyed the smiley ???

;D

But you haven't looked at the clockBox source in detail, haven't you?

=>

void MCLOCK_BPMSet(unsigned char bpm);

unsigned char MCLOCK_BPMGet(void);

unsigned int MCLOCK_GetTimerValue(unsigned char bpm);

It's all there, the formula, the cycles, ASM-optimized divisions... you just need to crunch it down to your needs and implement a MIDI-Event notification that substitutes or calls void MCLOCK_Timer();

;)

Michael

Posted

Well, the code is commented very well and explains nearly everything. I understand it does not exactly what you want, but basically it's all there, you just have to use the snippets that are relevant for your needs or implement clock_receive() handlers (which would be a good point to get help from us, because I see that is something more people might request).

If you don't understand anything, this might be a bit too complex thing to start with, because divisions (esp. with high numbers) need mixed ASM code and I have to admit that there are some lines I don't understand either, but to be honest: everyone has to fight with some lines of code. Don't give up so fast!

All I can say is: the code is there, you just have to use it.

If you have specific questions and I know the answer, I might help, but I'm not going to do all the work for you (at least not now, maybe in a few months when my other projects are finished ;) )

Good Luck!

Michael

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...