Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Code Samples & Tips > Additional Libraries
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Additional Libraries Users contributed libraries.
This sub-forum is only available to licensed users.

Desktop Recorder

Reply
 
LinkBack Thread Tools Display Modes
  #81 (permalink)  
Old 03-23-2010, 09:18 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

I'm afraid there is something wrong. If Ttransform = 2 then "3 Sines" transforms and inverses fine but "3 Cosines" does not retrurn the correct time series after the IFFT. I don't know where the problem lies. I thought that it worked fine on your previous version but unfortunately I can't check it as the latest version overwrote that previous version in my project folder and I can't download it again as you have removed it. Please can you have a look if you still have a previous version available?
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
Reply With Quote
  #82 (permalink)  
Old 03-23-2010, 10:12 PM
Junior Member
 
Join Date: Jan 2009
Posts: 23
Default

Quote:
Originally Posted by klaus View Post
How do you like the attached sample program ?
Tachometer with moving needle.
Well, after a bit of playing around, I came to this user-interface with a moving needle, and without much effort, thanks to your code.
I should be ready in a few days to post the final program, once I did some more testing. Your name ("Klaus") is in the credit list, if you don't mind. I would even put your real/complete name with pleasure, but that would be rather indiscrete to ask, I think.


Attached Images
File Type: jpg 6.1_Tachometer.jpg (15.7 KB, 33 views)
Reply With Quote
  #83 (permalink)  
Old 03-24-2010, 09:17 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

@Klaus - I found the error, it was a silly typo that was so obvious I couldn't see it at first

EDIT :- It wasn't that. I'm presently totally baffled
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.

Last edited by agraham : 03-24-2010 at 09:25 AM.
Reply With Quote
  #84 (permalink)  
Old 03-24-2010, 09:46 AM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 4,459
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

Hi Andrew,

Unfortunately I don't have the previous versions either.

I don't rember having seen this before.
The CalcInvFFT function has not been changed in the FFTdemo program in the last versions.

I had a closer look to undestand what happens.
I modified the FFTdemo program to:
- set the second half of the real and imaginary part in B4PPC
- and calculate the InvFFT with FFT.Inverse

When you run the test program it will show a single cosine.
Click on FFT to show the first half of the FFT signals
Click on CalcInvFFT we get what we see in the FFTdemo program
Click on CFFT and FFT to calculate a new FFT with the inverse time signals with Transform1
We see that
sample 0 has a value of 2 instead of 0
sample 256 has a value of -2 instead of 0.
I don't know where these values do come from.

Click on CSetFFT the program adds the second half of the FFT signal
and sets DataReal(0)=2 and DataReal(256)=-2
Click on C Inv FFT you see the same as what we get with the FFTdemo program.

Then change lines 940 -943
DataReal(256)=0
DataImag(256)=0
' DataReal(0)=2
' DataReal(256)=-2

Repeat the same as above, the inverse transform works.

Best regards.
__________________
Klaus
Switzerland

Beginner's Guide / User's Guide
Reply With Quote
  #85 (permalink)  
Old 03-24-2010, 09:51 AM
Basic4ppc Expert
 
Join Date: May 2008
Location: Berkshire, UK
Posts: 810
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Quote:
Originally Posted by klaus View Post
Unfortunately I don't have the previous versions either.
Not sure what versions you want but I downloaded and still have FFT zips 1.1, 1.6 and 1.7...

Mike.
Reply With Quote
  #86 (permalink)  
Old 03-24-2010, 10:02 AM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 4,459
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

If you still have versions 1.6 and 1.7 of the demo programs could you please post them.
If you mean the FFT library versions I have them all.

Thank you and Best regards.
__________________
Klaus
Switzerland

Beginner's Guide / User's Guide
Reply With Quote
  #87 (permalink)  
Old 03-24-2010, 10:38 AM
Basic4ppc Expert
 
Join Date: May 2008
Location: Berkshire, UK
Posts: 810
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Quote:
Originally Posted by klaus View Post
If you still have versions 1.6 and 1.7 of the demo programs could you please post them.
No, sorry, I only have FFTDemoKC1.zip.

Mike.
Reply With Quote
  #88 (permalink)  
Old 03-24-2010, 10:44 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Well spotted Kalus. "DataReal(n/2)=0" was the problem.

When rebuilding the complex conjugate part I earlier said in post #56 "This leaves no value to be relected into index 256 so I have left it as zero." The implicit assumtion was that the data array was initialised to zero but as you are reusing the array there is an unwanted value in there. Fixed dll attached together with almost final help that incorporates your description of the demo which I have taken the liberty of slightly amending to more idiomatic English - hope you don't mind!

Quote:
Originally Posted by klaus View Post
If you still have versions 1.6 and 1.7 of the demo programs could you please post them.
I'm afraid that I only have the latest as the later ones overwrote the earlier ones.
Quote:
If you mean the FFT library versions I have them all.
So do I, and all the sources. My version control system is pretty strict - at least for the stuff I generate myself!

We are nearly there! A couple of comments about the demo.

1) Why not make the "Calc Inv FFT" button visible at the beginning? Once it is visible it stays visible anyway.
2) "Click on one of the sine buttons to continue" implies you can't click the cosines button! How about "signal buttons"?
3) The "Inverse FFT Imaginary" graph legend is wrapped as the label is too short.
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
Reply With Quote
  #89 (permalink)  
Old 03-24-2010, 05:22 PM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 4,459
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

Hi Andrew,
Quote:
When rebuilding the complex conjugate part I earlier said in post #56 "This leaves no value to be relected into index 256 so ...
I remembered this post, and as the CalcInvFFT routine in the FFTdemo program was not changed I was looking at the second half of the FFT samples.
Quote:
I have taken the liberty of slightly amending to more idiomatic English - hope you don't mind!
No problem, I'm glad that you do it.

Your suggestions are included.

Unfortunately in the FFT1.9.zip file the FFT.cs file is missing.

Attached the last FFTdemo program.

Best regards.
Attached Files
File Type: sbp FFTdemo.sbp (26.8 KB, 5 views)
__________________
Klaus
Switzerland

Beginner's Guide / User's Guide
Reply With Quote
  #90 (permalink)  
Old 03-24-2010, 05:33 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Quote:
Originally Posted by klaus View Post
Unfortunately in the FFT1.9.zip file the FFT.cs file is missing.
I didn't bother including it as I'll now post the library and other usual items in a release quality archive in a new thread, probably tomorrow.
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
player-recorder derez Share Your Creations 5 11-23-2009 07:59 PM
Recorder That Emails the File craigisaacs Open Source Projects 9 07-15-2009 06:22 PM
Question about Desktop Recorder for Erel Pachuquin Questions (Windows Mobile) 3 07-10-2009 07:37 AM
Recorder Erel Additional Libraries 11 12-23-2008 04:36 PM
Calendar Recorder Rioven Share Your Creations 5 10-21-2007 06:55 AM


All times are GMT. The time now is 06:49 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0