Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - ricardo

Pages: [1]
« on: June 02, 2008, 09:21:27 PM »

Okay, its working now :)

One question about Beat call bakc:

Im receiving it, if i interpreted right is miliseconds value, right?

Okay, but i think i notice that sometimes the "beat" is in fact a syncope (i hope its right in english the word) and not the "strong" tempo.
I mean in a 4x4 times song, i dont receive allways the 4 strong "black" notes, but maybe some are syncopes (an accent in a soft tempo).

What can i expect to receive from this beat callback? Always the 4 black notes? (talking about 4x4 as example) or the "peaks"?
Some explanation of what is supposued to receive are welcome.

Thanks in advance :)

« on: May 27, 2008, 04:21:42 PM »

Im using BASS_FX for a while (i was using 2.3.x versions) and now im changing to new version.

Im trying the BPM wich i never used before.

In my tests, getting the BEAT callback to work its okay.

My problem is with the BPM part.

per example, when i try to get the BPM the function never returns back.

Let me show my PureBasic code:

Code: [Select]
  Handle1=BASS_StreamCreateFile(0, @filename, 0, 0, 0)
  Debug BASS_ErrorGetCode()
  uEndPos = BASS_ChannelGetLength(Handle1,#BASS_POS_BYTE)
  Debug BASS_ErrorGetCode()
  hVolume.f = 1
  Debug BASS_ErrorGetCode()
  Debug BASS_ErrorGetCode()
  Debug BASS_FX_BPM_DecodeGet(Handle1,10,14,0,#BASS_FX_BPM_BKGRND|#BASS_FX_FREESOURCE,@ObtieneBPMCallBack())
  Debug BASS_ErrorGetCode()

The mp3 start playing and everything goes fine. I receive just error codes = 0
But when calling BASS_FX_BPM_DecodeGet i dont receive nothing, not error not nothing, just stay there and never return back.

Im doing something wrong?

Thanks in advance!


I tried too using the BASS_STREAM_DECODE flag when creating the Stream, with same results.

Pages: [1]