FORUM

FORUM



SearchSearch   Users   Registration   Entrance
Today: 04.04.2026 - 14:54:35
Pages:  1  2  

JSFX real FFT (v5.25+)

AuthorMessage

JT///M3

usr


Statistics:
Messages: 3,628
Registration: 02.14.2003

I thought I would post some examples of the new fft_real() / ifft_real() JSFX functions. Here is a pulse tone generator, that uses the FFT to convert a naive waveform into its Fourier coefficients (in @init). It then uses the inverse FFT to generate an alias-free waveform (in @slider). It seems to be about twice as fast as when doing the same using the complex FFT, while using only half the memory, plus you don't have to worry about mirroring the negative frequency bins. Code:


---------------------
'08 M5 Sepang Bronze/Portland - Modded- '11 328i M Sport Le Manns Blue/Oyster - wifeymobile '02 525i Touring Alpine White/Sand - Getting modded '06 Mini Cooper JCW GP#1281 - SOLD '10 MiniCooper S Laurel Sport Edition 1/100 - SOLD '99 M Coupe Laguna S
Message # 1 14.10.22 - 19:46:22
RE: JSFX real FFT (v5.25+)

VANOSNinja

usr


Statistics:
Messages: 204
Registration: 12.19.2002

Here is another example showing how to do convolution using the real FFT: Code:


---------------------
Mauritiusblau/Dove Grey 325is
Message # 2 14.10.22 - 19:55:00
RE: JSFX real FFT (v5.25+)

mcoupe197

usr


Statistics:
Messages: 249
Registration: 12.24.2003

Awesome, thanks! And thanks for the real FFT implementation too ;)



Message # 3 14.10.22 - 20:06:21
RE: JSFX real FFT (v5.25+)

smoothracing

usr


Statistics:
Messages: 188
Registration: 02.22.2002

Sounds great ! I am not an expert on that issue at all, but from some discussion about FFT in JSFX I learned that there are some standard tasks that seemingly nearl always need to be done (e.g. managing the FFT window with respect to the sample block size). This is said to be rather time consuming when done in loops in the JSFX. I wonder if there could be a chance to do native code support functions that allow for speeding up certain standard tasks that are related to FFT handling. Thanks for listening, -Michael


---------------------
"I love you for what you should be, not for what you are"- James Demmitt
Message # 4 14.10.22 - 20:14:00
RE: JSFX real FFT (v5.25+)

Renee M Coupe

usr


Statistics:
Messages: 85
Registration: 06.09.2002

Thanks Tale, much obliged.


---------------------
http://www.flickr.com/photos/reneen/...7601910739497/
Message # 5 14.10.22 - 20:22:53
RE: JSFX real FFT (v5.25+)

millm3

usr


Statistics:
Messages: 505
Registration: 08.24.2002

Thanks Tale! :) (I think that "Thanks Tale! :)" is my most posted message)



Message # 6 14.10.22 - 20:31:41
RE: JSFX real FFT (v5.25+)

myse7en

usr


Statistics:
Messages: 9
Registration: 01.07.2002

Big Thanks Tale :D


---------------------
paul dean 89 730ise auto 94 YZF750R www.thee32register.co.uk
Message # 7 14.10.22 - 20:38:47
RE: JSFX real FFT (v5.25+)

mad skilz

usr


Statistics:
Messages: 80
Registration: 04.01.2003

Cool! BTW, maybe someone could move this thread to the JSFX forum, now that real FFT support is "official"?


---------------------
Topmount T4 GT35R
Message # 8 14.10.22 - 20:46:34
RE: JSFX real FFT (v5.25+)

1996 328ti

usr


Statistics:
Messages: 5,937
Registration: 12.21.2003

I analyzed the "FFT SPlitter" JSFX and did some testing. I understand that the (complex) FFT can convert two (real) signals at the same time and provided that the action done to the spectrum are linear (e.g. a multiplication with another spectrum to do a convolution), the inverse FFT will provide the action (e.g. convolution) applied to both signals. Is this correct ? Is it correct to assume that the "real FFT" only handles a single signal and runs faster with the same window size ? -Michael



Message # 9 14.10.22 - 20:56:29
RE: JSFX real FFT (v5.25+)

Cal

usr


Statistics:
Messages: 598
Registration: 05.10.2003

Tale, Thank you! I do not know exactly how it works mathematically, but I used it once in my script. It works twice as fast (I have not used a window)



Message # 10 14.10.22 - 21:06:42
RE: JSFX real FFT (v5.25+)
Sampletank plays back outta time : Previous topicNext topic: Hole in piston
Pages:  1  2  

The administrator has prohibited guests from replying to messages! To register, follow the link: register


Participants

Forum powered by: IP.Board © 2025 5.0.6