Sponsored Content
Full Discussion: AudioScope Project.
Operating Systems OS X (Apple) AudioScope Project. Post 302999570 by wisecracker on Thursday 22nd of June 2017 03:05:18 PM
Old 06-22-2017
Well I have discovered that I was using a method to QUIT the program that was not allowed.
Thanks to Corona688 for putting me straight and using the correct method to quit now.
This was apparantly a major bug in bash and was in there until at least bash version 4.3.42.

When tested on bash 4.4.5 the bash bug had been removed and created a bug in the code, it is now cured.

There are two separate closedown modes available now:-

'QUIT<CR>' that quits, saving all four of the AudioScope files saved inside '$HOME'.
'EXIT<CR>' that literally exits without saving those files.

It has come to my attention that some terminals are NOT 80 x 24 or 25 from a default install.
In fact one comes in at 77 x 23, one wonders why? After all it is NOT a classic AMIGA which does have that sized CLI.

Well I have had to use this terminal escape code to correct to the size for AudioScope.sh "\x1B[8;24;80t" to force a size increase.
The original size is saved as stty size and the values used to reset the terminal size back to default state on 'QUIT' or 'EXIT'.
Of course this method might be subject to some terminals not responding to the escape codes so manual resizing will be needed.

The four images are a sung note, the spectrum up to 4KHz of said note, the 'QUIT' window and 'EXIT' window.
(Note: the absolute paths are created through "$HOME"/path../file .)

RMS code for fixed waveforms is done but not incorporated in this version.

Stats so far:-

# Total Lines=5128.
# Blank Lines=46.
# Code Lines=2356.
# Comments=2726, (including the builtin Manual).
# Filesize=221113 bytes.

Enjoy...

Again thanks to Corona688 for his input.

Last edited by wisecracker; 06-22-2017 at 04:13 PM..
This User Gave Thanks to wisecracker For This Post:
 

9 More Discussions You Might Find Interesting

1. Solaris

SSH doesn't pick up user's project from /etc/project

We have a system running ssh. When a user logs in, they do not get the project they are assigned to (they run under "system"). I verify the project using the command "ps -e -o user,pid,ppid,args,project". If you do a "su - username", the user does get the project they are assigned to (and all... (2 Replies)
Discussion started by: kurgan
2 Replies

2. News, Links, Events and Announcements

A new project was posted on The UNIX and Linux Forums project board.

A new project was posted on your project board. Project title: Bash Shell Tutoring Estimated Budget: $50/hr Start date: Immediately Required skills: Linux, Bash, Shell, UNIX I work as a datawarehouse designer and developer. Although I usually stick to the role of an analyst,... (0 Replies)
Discussion started by: Neo
0 Replies

3. What is on Your Mind?

AudioScope has had a magazine review. <shock>

Hi Admin and Staff... Thanks for hosting AudioScope.sh on this site. I have had the biggest surprise of my life today. This months issue of the UK Linux magazine "Linux Format" have done a small piece on the project. Issue April 2014, LXF 182, page 65... This I never expected and I... (1 Reply)
Discussion started by: wisecracker
1 Replies

4. OS X (Apple)

AC to DC trigger pulse for AudioScope.sh.

Hi all... Has _below_ ever been done in UNIX shell scripting before? (I have done this easily in Python but this is using purely the shell.) The DEMO version IS built and has been tested. Pre-amble... I now need at least one control pulse for the AudioScope.sh when in PURELY audio I/O mode,... (2 Replies)
Discussion started by: wisecracker
2 Replies

5. Shell Programming and Scripting

Experimental awk audio converter for CygWin and AudioScope.sh

Development machine:- Standard MBP 13 inch, OSX 10.7.5... GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin11) Copyright (C) 2007 Free Software Foundation, Inc. Scenario:- Audio capture for AudioScope.sh for CygWin without ANY third party installs. I am trying my hardest to get a... (6 Replies)
Discussion started by: wisecracker
6 Replies

6. OS X (Apple)

The Alternate DC board for AudioScope.sh.

Hi guys... Well I have entered an area of partial insnity... ;o) Below is a photo of the 'ALTDC' board for AudioScope.sh... I have decided to incorporate all three methods for obtaining DC into this MBP via the MIC input. 1) VFO. 2) CHOPPER. 3) COUNTER. The controller for the COUNTER... (9 Replies)
Discussion started by: wisecracker
9 Replies

7. What is on Your Mind?

AudioScope...

Boy oh boy, with only a MONO mic input to use AudioScope gets much more difficult when the ALTDC board is included. It needs, so far, two hits at the MIC input with a single hit at the HEADPHONE audio output. The first at the highest practical resolution for the AC component and the second... (0 Replies)
Discussion started by: wisecracker
0 Replies

8. OS X (Apple)

The DC Control and Timer boards for AudioScope.sh...

Hi all... Apologies for any typos... For those intersted in the AudioScope the next construction is finished. I have not been totally idle but working out the hard stuff to be able to be very simple to build. It is a single transistor simple timer that lasts for about 1.2 to 1.8 seconds.... (2 Replies)
Discussion started by: wisecracker
2 Replies

9. UNIX for Advanced & Expert Users

Has AudioScope found a bug in bash 4.4.5?

Using AudioScope.sh on Ubuntu 17.04 from a live DVD disc I came across an error. Consider the code below it is a MUCH shortened version of the KEYBOARD input in AudioScope. #!/bin/bash bash --version uname -a status=0 KEYBOARD() { read -r -p "Enter QUIT or EXIT to quit:- " kbinput if ||... (11 Replies)
Discussion started by: wisecracker
11 Replies
All times are GMT -4. The time now is 09:58 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy