Page 1 of 3 123 LastLast
Results 1 to 10 of 22

Thread: Fast Fourier Transform in TBASS

  1. #1
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732

    Fast Fourier Transform in TBASS

    Thanks to Eros new TBASS exposes TBASS_ChannelGetData.
    It allows to retrieve FFT (fast fourier transformation) of the channel played.

    It can be used in many ways - from music visualisation, sound analysis to some more abstract things.

    This little script shows you how to visualise FFT data from played sound in realtime.

    Latest beta required.
    Attached Images Attached Images
    Attached Files Attached Files
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

  2. #2
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,777
    Rep Power
    10

    Re: Fast Fourier Transform in TBASS

    That is great Petr
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  3. #3
    Member
    Join Date
    Mar 2009
    Location
    Netherlands
    Age
    52
    Posts
    248
    Rep Power
    40

    Re: Fast Fourier Transform in TBASS

    yes very nice Petr! And only with a few lines of code

    Eros, are you also still working on BassFX?

  4. #4
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,777
    Rep Power
    10

    Re: Fast Fourier Transform in TBASS

    Quote Originally Posted by martin
    Eros, are you also still working on BassFX?
    Of course yes. And that DLL is already embedded inside TBASS module but you cannot see at the moment because BASS and BASSFX libraries are exploded in memory when TBASS module is loaded.

    My delay (and I'm sorry about that) is related to the fact I had to recover thinAir situation and continuous GPF. Now it seems I'm on the right road, the most important part is done, I just need to tune some important points on thinAir code and than I will go back to BASSFX and on ODBC for which I promised to produce some examples on how to manage tables with primaries keys and auto increment fields.

    Ciao
    Eros
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  5. #5
    Member
    Join Date
    Mar 2009
    Location
    Netherlands
    Age
    52
    Posts
    248
    Rep Power
    40

    Re: Fast Fourier Transform in TBASS

    I am happy to hear that Eros. It's completely understandable that you focus first on the things with high priority. Looking forward to the ODBX examples as well!

    Martin

  6. #6
    thinBasic MVPs kryton9's Avatar
    Join Date
    Nov 2006
    Location
    Naples, Florida & Duluth, Georgia
    Age
    67
    Posts
    3,869
    Rep Power
    404

    Re: Fast Fourier Transform in TBASS

    Petr, it is giving an error. I did download the latest thinBasic from the link you provided.
    Here is a screenshot of what it says. I am running Windows 7.

    I do hear the music and after I close the error box, I see the window frame empty for just a second till Windows exits out from the program.
    Attached Images Attached Images
    Acer Notebook: Win 10 Home 64 Bit, Core i7-4702MQ @ 2.2Ghz, 12 GB RAM, nVidia GTX 760M and Intel HD 4600
    Raspberry Pi 3: Raspbian OS use for Home Samba Server and Test HTTP Server

  7. #7
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,777
    Rep Power
    10

    Re: Fast Fourier Transform in TBASS

    Kent,

    are other TBASS script examples working?
    Can you check you do not have other "thinBasic_TBASS.dll" around in your computer?

    The error you are having seems TBASS module is not correct and is an old version vecause TBASS_ChannelGetData is a new function present only in latest thinBasic beta 1.7.10

    Thanks
    Eros
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  8. #8
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732

    Re: Fast Fourier Transform in TBASS

    Hi Kent,

    could you try to uninstall thinBASIC, clear your browser cache, install thinBASIC beta from provided link please? As Eros said, the functionality is new in the latest preview. The error you get is defintely caused by old DLL - there are some other TBASS commands before TBASS_ChannelGetData, and they ran fine on your PC.


    Petr
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

  9. #9

    Re: Fast Fourier Transform in TBASS

    Hi Petr, now that is very cool! I like it.

  10. #10
    thinBasic MVPs kryton9's Avatar
    Join Date
    Nov 2006
    Location
    Naples, Florida & Duluth, Georgia
    Age
    67
    Posts
    3,869
    Rep Power
    404

    Re: Fast Fourier Transform in TBASS

    Ok, this is strange. I uninstalled thinBasic and in the uninstall list it showed it as version 1.7.10.0
    I went ahead and uninstalled it.
    I then went to drive C and deleted the thinBasic folder.

    I installed the new version again.
    I tried the TBASS examples in the samplescripts folder. They all worked except for the two that played
    from memory.
    Also Petr's newest must play from memory too and so it too didn't work.

    Hope this helps trace what could be the problem.
    Acer Notebook: Win 10 Home 64 Bit, Core i7-4702MQ @ 2.2Ghz, 12 GB RAM, nVidia GTX 760M and Intel HD 4600
    Raspberry Pi 3: Raspbian OS use for Home Samba Server and Test HTTP Server

Page 1 of 3 123 LastLast

Similar Threads

  1. How fast is your CPU
    By Michael Clease in forum Shout Box Area
    Replies: 5
    Last Post: 05-02-2010, 09:42

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •