
IMPORTANT READ!
---------------

The "DFT_IDFT_DWT_FFT/NOT_AMIGA/SPECIAL" drawer only:-
------------------------------------------------------

----------------------------------------------------------------------------
These are extracted from a huge 'bash' script I am creating of a text mode
AudioScope. FFT_RAW.py is a derivative of my upload to AMINET:-

http://aminet.net/package/dev/src/FFT_AMIGA.py

The reason for it was that the original Python FFT code had dependencies
of numpy, scipy and scipyIO.
I soon discovered that not all OSes had these modules by default, so, hence
the modification to the 'bash' code that only requires the builtin modules:-

sys
cmath
math

----------------------------------------------------------------------------

The 8000 byte 'symmetricalwave.raw' file is a genuine whistle of around
1100Hz, unsigned 8 bit depth, for 1 second, that is 8000 sps. This is then
converted inside Spec_AN.sh.
Although the "Spec_An.sh" code reads "/usr/bin/python3", line 112, the
python script created will also run all versions of python2, (including the
AMIGA using ADE, the *NIX emulator, technically).
If you haven't got python3, change it to python or python2 instead, the
python script is fully capable of running from Python 2.0.1 to 3.10.x,
without any modification at all.

----------------------------------------------------------------------------

To run. <CR> is the EMTER key:-
1) Copy all 5 files into your *NIX "/tmp/" directory|folder|drawer...
2) cd /tmp/<CR>
3) Change the access rights to:- chmod 755 Spec_An.sh<CR>...
4) Run as:- ./Spec_An.sh<CR>
5) Enjoy the result...

----------------------------------------------------------------------------

It should look like something this, in colour on a *NIX 'bash' shell:-
----------------------------------------------------------------------------

         ++----[ $VER Spec_An.sh_(C)2017_2022_B.Walker_CC0_Licence. ]-----++
     100 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 100
   U     ||       |       |       |       |       |       |       |       ||
   N  90 ++       +       +       +       +       +       +       +       ++ 80
   C     ||       |       |       |       |       |       |       |       ||
   A  80 ++       +       +       +       +       +       +       +       ++ 80
   L     ||       |       | *     |       |       |       |       |       ||
   I  70 ++       +       +**     +       +       +       +       +       ++ 70
   B     ||       |       |**     |       |       |       |       |       ||
   R  60 ++       +       +**     +       +       +       +       +       ++ 60
   A     ||       |       |**     |       |       |       |       |       ||
   T  50 ++       +       +**     +       +       +       +       +       ++ 50
   E     ||       |       |**     |       |       |       |       |       ||
   D  40 ++       +       +**     +       +       +       +       +       ++ 40
         ||       |       |***    |       |       |       |       |       ||
   L  30 +*       +       +***    +       +   *   +       +       +       ++ 30
   E     |******  |       *****   |       |   *   |       |       |       ||
   V  20 +******* +      *******  +       +  **   +       +       +       ++ 20
   E     |********* **************| ***   |  **   |       |       |       ||
   L  10 +************************************** *+       +       +       ++ 10
LOG10(X) |****************************************** ** ****   *  |  *    ||
       0 +*****************************************************************+ 0
 FREQ Hz +0------500----1000----1500----2000----2500----3000----3500----4000
                          Press <CR> to continue:- _

----------------------------------------------------------------------------

This is my AudioScope.sh main window of said huge bash script just for
interest, also in colour. This shows the whistle and its frequqncy...

      +-------+-------+-------+---[STORAGE]---+-------+-------+--------+
      |       |*      |       |       +       |       |       |        | MAX
      | *     **      *      *|     * +    ** |    *  |   *   |  *     |
      |**     **     **     * *    * *+   * * |   **  |  **   | **     |
    + +-*-----**-----*+*----*-*----*-*+---*-*-+--*-*--+-*-*---+-**-----+
      |  *   *| *   * |*    * *    * *+   * * |  * *  | * *   |*  *    |
      |  *   *| *   * |*   *  *    * *+   * * |  *  * | *  *  |*  *    |
      |  *   *| *   * |*   *  *   *  *+   *  *|  *  * | *  *  |*  *    |
    0 +-+*+-+*+-*-+-*-+*+-+*+-*-+-*-+-*-+*+-+*+-*-+-*-+-*-+*+-+*+-*-+--+ REF
      |  *   *| *   * |*   *  |*  *   *  *   *| *   * |*   *  |*  *    |
      |  *  * | *   * | *  *  |*  *   *  *   *| *   * |*   *  *    *  *|
      |   * * |  * *  | *  *  |*  *   *  *   *| *   * |*    * *    * * |
    - +---*-*-+--*-*--+-*-*---+*-*----*--*----*-*----*+*----*-*----*-*-+
      |   * * |  * *  | * *   |* *    +**     * *    *|*    * *    * * |
      |   * * |   **  |  **   | **    +**     **     **     * *     ** |
      |    *  |       |       |       + *     |*      *      *|        |
      |       |       |       |       +       |       |       |        | MIN
      +-------+-------+-------[      OFF      ]-------+-------+--------+
+-----------------------------[COMMAND  WINDOW]------------------------------+
| COMMAND:- Press <CR> to (re)run, HELP or QUIT<CR>:-                        |
+------------------------------[STATUS WINDOW]-------------------------------+
| Stopped...                                                                 |
| X=1mS/DIV, Y=Uncalibrated (m)V/DIV, AC coupled, SOX mode.                  |
+---------------------------------[1113 Hz]----------------------------------+

----------------------------------------------------------------------------

Enjoy...

Bazza...

