I tried your _graticule_ but it reminded me of my Cossor 339[A] Oscillograph given to me when I was a young kid but reverted back again.
Well Quicktime Player is now capturing a signal CRUCIFYINGLY slowly.
The image is a low level signal around 1KHz whistled into the microphone.
This line in the QT capture had me stumped all of yesterday evening, 27-08-2019, then voila I went to bed and slept on it and realised my mistake:
Yes it was converting to '.wav' but was ignoring the sample rate and it wasn't until I woke up this morning I realised I was using double quotes and '@' is important in perl.
The code so far. A few additions to cater for '_bit_error_', '_noise_floor_' artifacts affecting the display.
As I have not done the drawing routine yet then the image of the low level whistle into mic looks as though it is joined up.
I am beginning to enjoy this as it has been much harder to do than in the shell, believe it or not.
I still feel the shell is unbelievably flexible for my uses, but perl makes me think for a change.
BTW I have found pdfs' of the first two books and will be using them for the next stages, many thanks for the information.
I have no idea if those pdfs' contain malware, but I don't care... ;o)
Bazza.
These 2 Users Gave Thanks to wisecracker For This Post:
Location: Saint Paul, MN USA / BSD, CentOS, Debian, OS X, Solaris
Posts: 2,288
Thanks Given: 430
Thanked 480 Times in 395 Posts
Hi.
Looks like progress.
When I run into trouble with perl that I cannot seem to solve by looking in the books, I often search PerlMonks - The Monastery Gates -- they have an enormous body of snippets, articles, questions/answers, and discussions to address many issues.
If you are interested in pretty-printing/tidying your code on macOS, I see that perltidy is available via brew:
So I'm using:
The graph looks better to me -- keep on perlin' ... cheers, drl
Hi fellas and dames...
(Apologies for any typos, etc...)
I have not been idle on this but I am on holiday/vacation and I only have limited www access AND Linux Mint 19, current updates as of 06-09-2019. My OSX machine is safely at home.
Well needless to say, what works in OSX 10.14.3 and the Perl version it possesses didn't work in Linux Mint and its Perl version. ;o/
As I am still out here on holiday I have released this Linux Mint 19 version so far. I have no idea what needs compromising until I get home and test on OSX 10.14.3.
"DSP", '/dev/dsp/' and "ALSA", 'arecord' now work as planned, 'RESTART' is now a complete 'RESET'.
This line in the 'RESET' section, exit(system("$abs_path")); is way cool, and the 'Title Bar' now reads "Perl Audio Oscillograph.".
I am NOT taking this fun project to the same limits as AudioScope.sh at all, just enough to whet peoples appetites and better it or reconstruct/translate the idea completely to another language.
There are lots of other changes that are in there too.
When I return home I will let you all know about how OSX 10.14.3 and 'QT' reacts to these changes.
Bizarre as it might sound I could NOT get Linux Mint's Perl version to recognise the 'current directory' as the valid default, so PATHs are now absolute.
As I have NOT done the drawing routine yet this is a low level whistle into the internal microphone using the ALSA capture mode.
Have fun ripping it apart...
This User Gave Thanks to wisecracker For This Post:
I don't know who as tried this out but you will notice that inside the white [DISPLAY] area at the top if the image, during an audio capture it turns green and displays the capture mode in use.
Well I have now tested it on OSX 10.14.3 and I noticed a spelling error in there, 'QEMAC' which should read 'QTMAC'. oh well it will be picked up on the next upload, DUH.
It runs exactly the same as Linux Mint without alteration EXCEPT QuickTime Player is excruciatingly SSLLOOWW.
I am not going to use SoX as that is a dependency so ALSA, DSP and QT are the only 3 REAL modes to use.
I am not even going to test under CygWin either because I have no idea whether Perl is available under CygWin.
Ok guys, gals and geeks...
As from today I am starting to learn awk in earnest doing something totally different.
I am going to create a pseudo-Audio_Function Generator centred around OSX 10.11.x minimum. The code below is a tester to see what the possibilities are.
All waveforms will be... (11 Replies)
I'm trying to record audio using Audacity 2.0.5 installed from SlackBuilds. My system is 64-bit Slackware 14.1 and a sound card is Intel HD Audio. I didn't change my sound system to OSS. (Default sound system in Slackware 14.1 is ALSA, isn't it?) First, I set Internal Microphone slider in KMix... (2 Replies)
Hi I recently installed BT 5 Gnome on my Asus laptop running on Intel HD graphics.
I've been having problems with audio, at first I experienced the basic problem that was solved by adding pulse audio to the starting programs. This allowed me to open Sound preferences but I still have no sound.... (0 Replies)
Hello all,
Could anyone help to me :as to how can i record an audio file in unix and convert it into a text . Or anything with audio recording to get started would help .
thanks, (3 Replies)
Hi all,
I play audio through the web browser and it plays ok on windows. When i try the same thing on unix i get the error message "sh: /usr/local/bin/sox: not found. I've tried 'locate sox' and can't seem to find it. Is there some way I can change the browser settings so they play the audio... (3 Replies)
I know about next to nothing, and I am trying to play an audio file on HP-UX 10.2 (743i) every time I try to use the ‘/opt/audio/bin/AudioCP &' command I get an error message that says “Unable to access audio hardware.” I checked the man page on audio, and both Aserver and rpcd are running. Am I... (4 Replies)