The Start Of A Simple Audio Scope Shell Script...


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting The Start Of A Simple Audio Scope Shell Script...
# 22  
Old 03-23-2013
Hi Corona688...

You are correct of course WRT security but I don't expect very many people to be interested in what I code for, and, that any computer used to test said code to be internet enabled, etc. I will change the "777" to "600" in the not too distant future, however in the meantime I will be working on _line_drawing_ the plotted points joining them up.

Your assistance with the config file is next though. ;o)

That should be done over the WE.
Then working out a simple speudo-sync/trigger idea, +ve going, -ve going, equal to and _free_ running.

Then the tougher stuff starts... ;oO

---------- Post updated 23-03-13 at 11:12 AM ---------- Previous update was 22-03-13 at 07:00 PM ----------

Don't know how this got edited my upload should be a new one...

---------- Post updated at 11:25 AM ---------- Previous update was at 11:12 AM ----------

The next stage of the shell AudioScope.sh fun project.

I am not sure how many are actually following this thread but at least one person is. ;o)

Hi Corona688, I have changed "chmod 777 <somefile>" permissions now.

Still using "/tmp" FTTB as my machine clears out all files per reboot; good news as it saves me the aggro and proves whether the next bit below works or crashes out...

Your steering me to do a config file the correct way made life SOOOO easy, except, I HAD to use an "else" sub-statement, ARGH, I didn't want to use "else"'s but hey I am game for anything... ;oD

So Corona688 many thanks for your input so far.

The latest version with an AudioScope.config file generated and auto-saved on script exit...

Last edited by wisecracker; 07-14-2013 at 06:03 AM.. Reason: Code now an attachment.
# 23  
Old 03-26-2013
We now have a pseudo vertical shift control. Just type SHIFT at command mode and press "U" or ''D" to shift up or down 4 text lines from the centre. Press <CR> to do a rescan in HOLD mode...

Now decisions, decisions; do I use the real 8 bit grab for SYNC/TRIGGER points or the 4 bit quantised values?

Toying with this ATM...

Here is the latest incarnation of AudioScope.sh...

Enjoy...

Last edited by wisecracker; 07-14-2013 at 06:07 AM.. Reason: Code now an attachment.
# 24  
Old 03-31-2013
The Terminal Title bar now includes the program name:- "Shell AudioScope."

Start of a DRAWing routine to join up the plotted points.

The function is just a NOP at the moment but will be finished for the next upload.

Added 4 small photos of the circuit at the end of the script...

Last edited by wisecracker; 07-14-2013 at 06:10 AM.. Reason: Code now an attachment.
# 25  
Old 04-01-2013
The command DRAW facility is now finished. The attached image is a whistle into the Macbook Pro microphone with the Timebase TBVAR command set to tart 10 bytes in with a jump of 3 bytes.

I.E. the TB set to 10 along and the same as 500uS/DIV...

The next upload will be sorting out the Pseudo-sync/Trigger and may take a while as I am in the middle of a simple vertical calibrator using the sinewave generator at the start of the script.

This is now functional and entirely in very basic shell concepts...

Enjoy...

Last edited by wisecracker; 07-14-2013 at 06:20 AM.. Reason: Code now an attachment.
# 26  
Old 04-02-2013
I must say that looks fantastic. Amazing what you can do in shell when you've got the right tools.
This User Gave Thanks to Corona688 For This Post:
# 27  
Old 04-02-2013
Hi Corona688...

Thanks a lot, coming from you that is indeed a compliment...

BTW, the script is still in its infancy there is still a lot I want to do, but, is there a limit to a script file size before it fails to run?

Again thanks for the compliment...
# 28  
Old 04-02-2013
Practically speaking, no. It could be megabytes large and still work. The 'configure' shell scripts that come with source packages these days are flipping enormous and getting bigger all the time.

Of course, if it's megabytes large, there's probably things that can be slimmed down too. I really ought to get around to testing this before I start offering more advice than I have though.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. OS X (Apple)

A simple variable frequency sinewave audio generator.

Hi all... Well I have not been inactive but working out how to make OSX 10.14.x command line audio player have a variable sample rate. This is a back door as afplay does not have a sample rate flag unlike aplay for ALSA, in Linux flavours. This is a DEMO only but a derivative of it will... (2 Replies)
Discussion started by: wisecracker
2 Replies

2. Shell Programming and Scripting

Generate 10000 unique audio file of 2MB each using shell script.

Hi, I want 10000+ unique Audio file of approx 2MB each. How can i generate numerous audio files using shell script. Any tool, command or suggestions are welcome. If i give one audio seed file then can we create numerous unique files with same seed file? Any help is highly appreciable.... (11 Replies)
Discussion started by: sushil.kumar
11 Replies

3. OS X (Apple)

Python script to do simple audio capture...

This site is the first to get this snippet. It will capture an audio recording of any time length within the limits of OSX's QuickTime Player's capablility... A shell script derivative of this will be used as a further capture for CygWin's AudioScope.sh. Thoroughly read ALL the comments in... (0 Replies)
Discussion started by: wisecracker
0 Replies

4. UNIX for Dummies Questions & Answers

unable to start shell script

Hi, Pleasse could someone advise why i'm getting this error below - No such file or directory dev6:$ ls -ltr ReleaseManagement.sh -rwxr-xr-x 1 dev fix 4830 Aug 22 11:13 ReleaseManagement.sh dev6:$ ./ReleaseManagement.sh : No such file or directory dev6:$ thank you (2 Replies)
Discussion started by: venhart
2 Replies

5. Shell Programming and Scripting

The scope of the shell/perl script is to read the input text file. Validate the expiry date of each

The scope of the shell/perl script is to read the input text file. Validate the expiry date of each certificate and send the mail to the user. The user takes action to add the new certificate to the storage file and user owns the responsibility to update the input text file with the new certificate... (5 Replies)
Discussion started by: casmo
5 Replies

6. What is on Your Mind?

Scope of Shell Programming and scripting

Hi all, I want to know what is the scope and job status of shell Programming and scripting. Does it have any attractive jobs? (2 Replies)
Discussion started by: malikshahid85
2 Replies

7. Shell Programming and Scripting

Help with stop/start Shell Script.

Hi All, I would like to develop a shell script for stop & start an application server (1-4) on Solaris box. Here are the user requirements for this task. 1. User will input the option which server they wish to stop. 2. Will clear cache files from specific location. 3. ... (1 Reply)
Discussion started by: venga
1 Replies

8. Shell Programming and Scripting

scope of a Variable inside shell script

hi all, i'm using the following script, Status=1 Function_do () { while read line; do if ; then #echo $line if ; then Status=0 echo " LINKINK ERROR " fi fi done < ldd.log } Function_do (4 Replies)
Discussion started by: vij_krr
4 Replies

9. Shell Programming and Scripting

simple shell - how to get a parameter typed in a shell script

Hi, I am new to unix and using linux 7.2. I would like to create a script that would make it easyer for me to run my java programms. At the moment I have to type java myJavaprogram I am trying to write a script that will allow me to type something like this "myscript myJavaprogram" or maybe... (4 Replies)
Discussion started by: cmitulescu
4 Replies

10. Shell Programming and Scripting

problem with shell variable's scope

Hi, I am stuck while developing a shell sub-routine which checks the log file for "success" or "failure". The subroutine reads the log file and checks for key word "success", if found it set the variable (found=1). It returns success or failure based on this variable. My problem is, I can... (2 Replies)
Discussion started by: cjjoy
2 Replies
Login or Register to Ask a Question