OK, now the start of the audio scope...

Code junkies hangout here

Moderators: ChrThor, LXF moderators

Postby Bazza » Sat Apr 26, 2014 5:32 pm

CygWin is SSLLOOWW but that has not deterred me from attempting to include it.
The FREQ command works but is totally unusable do to said speed.
The BURST command only works in DSP mode, not DEMO.
SOX has not been included although I might attempt it.

Only tested on an old dual core HP laptop, and a quad core Philips desktop both
running Windows Vista, and a fairly recent version of CygWin.

You will have to set up test and mic inputs yourselves but DEMO mode still works
as normal...

Comments welcome, and tests on other Windows versions would be of great help.

It is uploaded in CygWin guise and is marginally slower on real UNIX like machines
however ALL of the original code is commented out and NOT deleted. All you need
to do is search for CYGWIN and comment out the relevant line(s)
below it and uncomment the single line above it. This changes the hex dumper from
"od" back to the original "hexdump" again...

Also another simple circuit at the end for the DC control pulse under construction.

Other changes too...

Enjoy finding simple solutions to often very difficult problems...

http://wisecracker.host22.com/public/AudioScope.sh
73...

Bazza, G0LCU...

Team AMIGA...
User avatar
Bazza
LXF regular
 
Posts: 1486
Joined: Sat Mar 21, 2009 11:16 am
Location: Loughborough

Postby Bazza » Sun Jun 29, 2014 9:49 pm

Well chaps lots of changes have happened.
I missed out version 02500 on here and jumped you to 02550
instead.

The unfinished Manual is now generated inside the script and
saved on program exit. The Amplifier and other circuits are now
part of the script. Pulse generators are now created as part of
the calibration proceedures...

I am well into the next upload but want to test it on Raspberry
Pi in DEMO mode first to see the possibility of using it on that
machine...

AudioScope.sh is here:-

https://github.com/wisecracker-bazza/Sc ... azza/Scope

Amplifier photos in here:-

https://github.com/wisecracker-bazza/Sc ... 36c2699286

Enjoy...
73...

Bazza, G0LCU...

Team AMIGA...
User avatar
Bazza
LXF regular
 
Posts: 1486
Joined: Sat Mar 21, 2009 11:16 am
Location: Loughborough

Re: OK, now the start of the audio scope...

Postby Bazza » Sat Nov 08, 2014 6:05 pm

Hi Guys and gals...

There has been much done to AudioScope.sh and i have missed you lot out.

It is now at version 0.30.20 and you will have to read the file for more information.

There is now a new capture for OSX 10.7.x plus and it creates an AppleScript to use QuickTime Player in quiet mode to snatch an audio snippet.

I am working on a Windows capture using SoundRecorder.exe also in quiet mode for CygWin.

An ALSA version is also in the piepline using arecord as the capture mode.

Soory but I forgot all about you guys...

BTW I am not updating GitHub as it can be a real PITA to access using this MBP.

Here are two pointers:-

http://wisecracker.host22.com/public/AudioScope.sh

And the original host site:-

http://www.unix.com/shell-programming-a ... ipt-7.html

Descriptions of updates are in the URL above thread...

Enjoy...
73...

Bazza, G0LCU...

Team AMIGA...
User avatar
Bazza
LXF regular
 
Posts: 1486
Joined: Sat Mar 21, 2009 11:16 am
Location: Loughborough

Re: OK, now the start of the audio scope...

Postby Bazza » Tue Nov 11, 2014 9:12 pm

OK, this new official release 0.30.40 now has a capture for CygWin using SoundRecorder.exe.

It now captures at CD quality in WAVE format and there is a simple converter to convert form
signed 16 bit, stereo, 44100Hz WAVE file to RAW format.

There is a further awk converter to quantise down from 16 bit signed stereo data to 8 bit
unsigned mono data for the 'Scope.

The two hidden commands are OSX107PLUS<CR> for the OSX QuickTime Player capture and
WINSOUND<CR> for the CygWin SoundRecorder.exe capture.

Both are SLOW but work well.

You experiment with them it your own risk as these commands are not visible from the internal
HELP file yet.

Now for ALSA...

http://wisecracker.host22.com/public/AudioScope.sh

Enjoy...
73...

Bazza, G0LCU...

Team AMIGA...
User avatar
Bazza
LXF regular
 
Posts: 1486
Joined: Sat Mar 21, 2009 11:16 am
Location: Loughborough

Re: OK, now the start of the audio scope...

Postby Bazza » Sun Dec 07, 2014 8:11 pm

We are now at version 0.30.90.
Lots done here:-
1) Calibrated timebase ranges now in 1,2,5 sequence, commands 1mS, 2mS, 5mS, 10mS, 20mS, 50mS and 100mS.
2) Slowest timebase range also added to complement the Fastest one.
3) Lots of code cleanup but not using latest bash techniques, sticking rigidly to backwards compatibility as far as possible.
4) The second build, DC restorer described in the manual and usage to setup display polarity.
5) The final part of the second build to change the DC restorer to Voltage doubler ready for future use.
6) All captures now not hidden anymore.
7) Other minor things I can't remember at the moment...
8) The AC coupled ONLY vertical amplifier is next...

Everything is now slowly coming together to give a basic AC coupled calibrated AudioScope...
Calibrated DC will be much more difficult using the sound card.

Enjoy...

The script is now 131697 bytes in size...

Bazza...

It can be found here:-

http://wisecracker.host22.com/public/AudioScope.sh
73...

Bazza, G0LCU...

Team AMIGA...
User avatar
Bazza
LXF regular
 
Posts: 1486
Joined: Sat Mar 21, 2009 11:16 am
Location: Loughborough

Re: OK, now the start of the audio scope...

Postby Bazza » Mon Dec 29, 2014 6:58 pm

AudioScope.sh version now at 0.30.95...

The vertical amplifier circuit at the end of the script has been modified to suit a comment about using analogue modems' isolating 600 Ohm 1 : 1 transformers. C2 is AC coupled to the transformer now and the emitter resistor is now connectd to ground.
No other changes have been done. The original circuit can still be used without modification so there is no need to alter it.

There is now a SWEEP generator built in and is used for bandwidth and LF roll-off tests.
It goes from 4KHz down to about 85Hz and back, twice. It is a poor squarewave that has a certain amount of sinewave ringing on it, this a function of 8 bit depth and 8000Hz sampling speed but was easy to implement.

Its prime objective is to quickly see how the waveform differentiates at LF and integrates at HF/MF giving a quick assessment of the total amplifier BW...

The command is SWEEP<CR> to run it...

Only three modes can play it back inside the code:-
afplay for OSX 10.7.5 and above.
aplay for Linux machines using ALSA.
/dev/dsp for CygWin and Linux machnes with OSS and PulseAudio.

It does not autorun inside a separate xterm window but is there to create the files to be run on a separate machine.

The manual has been updated to include this and the file is now over 130KB in size... EEK!

Enjoy...

http://wisecracker.host22.com/public/AudioScope.sh
73...

Bazza, G0LCU...

Team AMIGA...
User avatar
Bazza
LXF regular
 
Posts: 1486
Joined: Sat Mar 21, 2009 11:16 am
Location: Loughborough

Re: OK, now the start of the audio scope...

Postby Bazza » Mon Feb 02, 2015 10:29 pm

This is the latest release of AudioScope.sh; Version 03120.

http://wisecracker.host22.com/public/AudioScope.sh

Now working on ALTDC a simple home brew board to get DC into the computer via the Mic input...

This is a preliminary text mode drawing of the chopper section only.

This should work from DC to 200Hz to give a total bandwidth from DC to 20KHz through a single Mic input.
It is assumed that the mic BW is from around 300Hz upwards...

The voltage doubler board will be required for this tio work when it is finished.

I am trying to make Arduino redundant as it requires a driver dependency before it can work.

Enjoy...

Code: Select all
                                 R3 = 1M
      O/P O-----------------*----/\/\/\----+
                            |            __|__
                            |            /////
                           === C1 = 1uF
                            |
   LF AC OR    R1 = 1K      |
   DC I/P O----/\/\/\----*--*--+
                         |     |
                         \     o C  Q1 = BC549
                         /      \    b
               R2 = 100K \       \|__o----/\/\/\----O Square wave in from approx 2KHz multivib at TTL level.
                         /       /|      R4 = 22K
                         \     |/_
                         /     o e
                         |     |
    _GND_ O------*-------)--*--*----*---------------O
               __|__     |  |       | +
               /////     |  O     --+--
                         |   /     / \  D1 = 1N4148
                         |  O     '---'
                         |  |       |    R5 = 3K9
 0.7V REF O--------------*--*-------*-----/\/\/\----> +5 to +9V.
73...

Bazza, G0LCU...

Team AMIGA...
User avatar
Bazza
LXF regular
 
Posts: 1486
Joined: Sat Mar 21, 2009 11:16 am
Location: Loughborough

Previous

Return to Programming

Who is online

Users browsing this forum: Yahoo [Bot] and 0 guests