This is DEMO code only and has NO error detection or correction, nor out of bounds checking.
I have succumbed to Python and scipy to do the FFT heavy lifting as I have absolutely no idea where to start do such a thing using AWK. This is a taster for me to include into AudioScope.sh. I am thinking of doing each vertical plot in differing colours and juggling the numbers to suit.
This IS a bash script but creates a 250Hz 1 second WAV file and the python script on the fly.
At the moment the plotting takes a few seconds, but I am not bothered about that at this point. The fact that it works has even amazed me!
The two images show the pre-generated 250Hz spectrum and a 1 second burst of me talking into the MBP's mic...
COMMENTS?!
I await the flak...
This User Gave Thanks to wisecracker For This Post:
I do think Python, Perl, etc is about as good as you can expect for FFT unless we can convince a genuine, credentialed Computer Scientist to build one for us. It's possible to do it - I've seen it done in Basic - but the mathematics are very subtle and involve complex numbers or ways to cheat around non-complex numbers.
I do think Python, Perl, etc is about as good as you can expect for FFT unless we can convince a genuine, credentialed Computer Scientist to build one for us. It's possible to do it - I've seen it done in Basic - but the mathematics are very subtle and involve complex numbers or ways to cheat around non-complex numbers.
Boy don't I know it now.
It took a couple of days to get my head around how to set about jumping from the python result into a bash array but in the end I decided on saving to disk then using cat to get that result into the bash array. So I took the easy way out.
As for you previous post I don't need the for loop at all as it will get the WAV file from the FREQ command in AudioScope to look at its spectrum. There it little point in looking at the main capture as a few users might just use the internal mic only.
However I will use your method of generating the window although I have already modified it for my requirements.
The image is the new look and colours of the spectrum of a single sung note into the mic from FREQ command in AudioScope...
Whooda thunk that the humble bash shell, terminal and the plethora of utilities could do something like this eh!
I would love to know if it has been done before.
;o)
---------- Post updated at 08:52 PM ---------- Previous update was at 06:45 PM ----------
Apologies if this reply attaches itself to the previous one.
I have done away with the display window function completely and the code for the window is now generated per file call.
Sometime in the 90's, I made a microphone oscilloscope which operated in DOS 80x25 text mode at 128x128 resolution. It updated the display by changing the font every single frame. This made it fast and flicker-free. I could do 128x256, which was less oddly shaped, but suffered graphical artifacts because of characters the video card blithely assumed were "line drawing" characters which it should extend to meet the neighboring character.
Oscilloscope was the best I could do. I struggled with it for a long time but never managed to port a working FFT algorithm from anywhere. There weren't widely available libraries back then.
Everything was done in Borland Turbo C for DOS, an IDE which students across the globe still use to this day for learning purposes.
Last edited by Corona688; 04-26-2017 at 05:07 PM..
Hi guys...
Finally decided to release this, I have a python version too but that is unimportant to me.
It is a text mode "Dual_VU.sh" meter.
It actually calls dash as the interpreter but change the shebang to suit yourselves.
It uses the bell character for overload per channel and... (1 Reply)
This is a DEMO only...
Someone recently asked about creating a box to make something look nicer on screen.
I suggested that with careful colouring a 3D effect could be created...
Linux version; this also works on a Macbook Pro but is not as easy to see as the other code below:-
... (0 Replies)
Dear All,
i am trying to install the redhat linux using graphical mode...but it stucks while probing video card...i have installed linux using text mode it works fine and whole the installation goes fine. after installation if i give startx command it again stucks....looks like a vga card... (9 Replies)
Hello everyone
Had a problem booting Fedora. I installed it as a server without any desktop environment(kde, gnome) except for X. Problem is when i booting system after it loads kernel suddenly screen messes up with parts of fedora graphics(it's not clear but you can see it -... (8 Replies)
Hi All,
I used to have my suse linux(VM) server in graphic mode but not anymore since morning. I cant rolback since i loose somuch work. Any idea how to it back to normal. Thanks (6 Replies)
Hi all
I have installed solaris 5.10 and it is loading in GUI mode by default.
I want to load in text mode by default. How to do this? How to switch from GUI to text mode and vise versa.?
Please help.. (2 Replies)
hello all
I saw somewhere there is some kind of version of emacs in full text mode ?
how can I get/download it? if I have ordenry emacs installed can I start it in text mode?
thanks (2 Replies)
Hi.
I need to run old full-screen text-mode application under X-Windows. (By the way it is touch-screen calibrator firmware). The screen resolution is to be 1280x1024 exactly. The program expect text-mode geometry 80x25. Running xterm (no window manager) I have adjusted the font pararameters to... (3 Replies)
Hi people... Is there any way to configure the conection i text mode ? I need to know how to make the modem work and how to configure a dial up conection in text mode by redhat 7.1 and if possible how to configure the email...
I use the workstation installation...any help will be welcome...... (2 Replies)