I didn't try the Perl builtin 'printf' as 'print' DID support terminal colours, so I made an assumption that 'printf' wouldn't plot either.
I will experiment with plotting using 'printf' and get back to you.
If I get stuck and plotting is still unable to be done then I will come back on here for solutions.
Well a cold start with the builtin 'print' DOES work but believe me, I tried for hours with hard coded valus as well is variables and I kept getting an major 'scalar' error report finally ending up saying it couldn't complie the code - hence reverting to the 'system' command.
I honestly do not know why I kept getting major errors when now it is working..
Here is the original test code i couldn't get working, but it is actually calling me a liar now.
And finally I am in the process of using 4 capture modes, DEMO, DSP, ALSA and QT, (DEMO is obviously working using the builtin random number generator but the final cut will create a raw 'noise' file using /dev/urandom).
I have already done the section to create the AppleScript and call it, but not done the binary file to byte sized decmial array or list yet but I am working on it...
Last edited by wisecracker; 3 Weeks Ago at 03:58 PM..
Reason: See EDIT:
Modified greatly and now captures real bytes from '/dev/urandom' and displays the plots.
Removed system() function calls where possible, (compare with post #1).
Saves a 'config' file to the current directory and loads on program restart, it just saves the capture mode on quitting at the moment.
As this is just an exercise in me learning the basics of Perl then this will not go anywhere near as sophisticated as AudioScope[.sh].
It is also ONLY capturing 64 bytes and running at maximum speed of 1mS per division as this is just a personal learning exercise.
Commented out the RANDOM line for the vertical axis FTTB.
Results before quitting:
All criticism welcome!
These 2 Users Gave Thanks to wisecracker For This Post:
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)
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)