Results 1 to 6 of 6

Thread: FT Chip

  1. #1
    Wire Sofaking Fizyk's Avatar
    Join Date
    Jun 2008
    Location
    Łomianki, Poland
    Posts
    738
    Blog Entries
    1

    Default FT Chip

    I present to you the effect of my recent work, the FT chip. FT stands for Fourier Transform. Basically it allows you to see what frequencies are there in a signal.

    The chip itself just performs something like FFT, though not exactly. I modified the FFT algorithm to resemble the continuous version of the FT more. I made also two other chips, the "Gauss Generator", which generated a Gauss function at first and can now do sin(x) and square pulse too, and "Grapher", which graphs the effect on the oscilloscope.

    This could probably be used for some kind of smoothing or something, if someone wanted to, but it would still require quite a lot of work

    Screens:

    Sine:


    Square:


    Gauss:


    The left screen shows the generated function, the right shows its FT. For the sine function, you can clearly see a peak at some frequency. Changing the frequency moves the peak, you can test that

    Usage:
    • Spawn the dupe.
    • To control the function, use the chat. Commands are like this:
      !fun function [resolution [parameter]]
      "function" can be "sin", "gauss" or "square". Resolution means how much points there will be in the arrays, defaults to 20. Parameter is a parameter For Gauss, it's the width of the distribution, for square it's the width of the pulse, for sine it's the frequency. The parameter defaults to 1.
      For example "!fun sin 40 2" defines a sine wave calculated for 40 points, with frequency of 2 (2 periods will be visible).
    • When you defined a function, the left oscilloscope reacts immediately. For the right oscilloscope to update, you need to press the "Cake" button. FT calculation is quite expensive, so it doesn't do it for every trigger.
    • Enjoy!


    Adv. dupe and codes of all 3 chips are in the attachments.

    PS. The code is a bit messy, because the arrays can't contain complex numbers (TomyLobo, fix it ) and I had to work around that. Also I wasn't sure if arrays trigger inputs properly, so I used GLON to pass the arrays between chips.
    Attached Files Attached Files

    My programs: BIOS - Alcyone - Calculator - Notepad - Movie Player
    My tutorials: applyTorque - Quaternions - PID controllers
    Some other things I made: FT Chip - RK4 Solar System

  2. #2
    Expressionism 2.0 Syranide's Avatar
    Join Date
    Mar 2007
    Location
    Sweden
    Posts
    4,569

    Default Re: FT Chip

    Very nice, but I still have no idea what it would actually be useful for

  3. #3
    Wire Sofaking Fizyk's Avatar
    Join Date
    Jun 2008
    Location
    Łomianki, Poland
    Posts
    738
    Blog Entries
    1

    Default Re: FT Chip

    Honestly, I have pretty much no idea too It's fun to process images using FT, but I don't think GMod can handle images big enough to actually see the effect (blurring, sharpening etc. - using FT it's very easy to do).

    My programs: BIOS - Alcyone - Calculator - Notepad - Movie Player
    My tutorials: applyTorque - Quaternions - PID controllers
    Some other things I made: FT Chip - RK4 Solar System

  4. #4
    Wirererer Pangamini's Avatar
    Join Date
    Feb 2009
    Location
    Slovakia
    Posts
    358

    Default Re: FT Chip

    You can make a RC car or anything remote controlled using radio as analog transmitter. The transmitter will add multiple sine functions of different frequencies (each multiplied by desired value from 0 to 1) and then use FT on receiver as demodulator But it would be too slow to be used i think... still it can be an interesting experiment

  5. #5
    Lifetime Supporter Nikita's Avatar
    Join Date
    May 2009
    Posts
    789

    Default Re: FT Chip

    It could end world hunger or it could destroy the world. Fizyk once again proves his reputation of unquestionable genius of math



    FT is closely related to my attempts to synthesize music taken from wav files through wiremod sinewave sound emitters. But I still can't figure out what I'm supposed to do.
    Last edited by Nikita; 01-23-2010 at 06:03 PM.

  6. #6
    Wire Sofaking Fizyk's Avatar
    Join Date
    Jun 2008
    Location
    Łomianki, Poland
    Posts
    738
    Blog Entries
    1

    Default Re: FT Chip

    The problem is - I don't know either, what you could do with FT to achieve sound synthesis :P Sound synthesis is a really complex task and I think doing it in GMod will be extremely hard, if not impossible.

    My programs: BIOS - Alcyone - Calculator - Notepad - Movie Player
    My tutorials: applyTorque - Quaternions - PID controllers
    Some other things I made: FT Chip - RK4 Solar System

Similar Threads

  1. Help with my e2 chip plz.
    By ztrain in forum Installation and Malfunctions Support
    Replies: 1
    Last Post: 08-06-2009, 11:21 AM
  2. Following Chip (E2)
    By nazer1290 in forum Gate Nostalgia (Old School Wiring) Discussion & Help
    Replies: 12
    Last Post: 06-30-2009, 09:05 AM
  3. Expression Chip 2 and Cpu Chip aint working
    By bradmcco in forum Installation and Malfunctions Support
    Replies: 1
    Last Post: 01-19-2009, 07:53 AM
  4. A++/A-- Chip
    By Tricky in forum Ideas & Suggestions
    Replies: 12
    Last Post: 04-06-2007, 12:32 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
unnecessary
unnecessary
unnecessary
unnecessary
linguistic-parrots
linguistic-parrots
linguistic-parrots
linguistic-parrots