0
0

hi,

does anyone know of a good way to draw the spectrum values into graph inside a borland c++ builder form?

ive looked into several graph programs but they dont seem to be able to handle the data changing so frequently.

thanks very much

jon

  • You must to post comments
0
0

Create your own TGraphicControl component.
Create a Bitmap in it as your “buffer”.
Draw on the bitmap canvas
Then copy the final bitmap to the component->canvas

I think that that is the fastest you can get, without flickering.

  • You must to post comments
0
0

Hi Guys!

I use the Borland c++ Builder 6, but i’m a beginner..
I think that have the Spectrum (the array with 512 float stuff) but i don’t know that how can i put it into something.. into Graphic object. How can i draw it?
Please help me! :(

  • You must to post comments
0
0

You need to learn GDI to make a graphical representation of the spectrum on your own. The following tutorial seems OK:
h**p://www.functionx.com/bcb/index.htm

  • You must to post comments
0
0

2)in event on timer

void __fastcall Tfm1::Timer1Timer(TObject *Sender)
{
float *a;
float b;
/***************************************/
FSOUND_DSP_SetActive(FSOUND_DSP_GetFFTUnit(),true);

a=FSOUND_DSP_GetSpectrum();
b=a100/1.00;
/***************************************/
for(int j=0; j<512; j++)
{
if((a<=1.0)&&(a>0.8))
Image1->Width=b;
else
if((a<0.7)&&(a>0.5))
Image2->Width=b;//cualquier imagen


dunno+=64;
a++;
}

es faciiilll

  • You must to post comments
Showing 4 results
Your Answer

Please first to submit.