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

Code junkies hangout here

Moderators: ChrisThornett, LXF moderators

Postby Bazza » Mon Nov 11, 2013 9:07 pm

Hi towy71...

> Eek 1373 lines of code,......

It might stay there if I can't work out how to get DC level and
polarity into a Macbook Pro 13" with only ONE mic input to play
with all inside two grabs; one for the AC component and one
for both the DC level AND polarity...

I am working on chopping the DC for the level and using the
same chopper multivib' as a VCO to detect polarity.

AM and FM in one swoop. I have some test HW built but I have
not written any shell scripting for it yet. I could use a VCO
entirely and have a look up table but _centre_point_ stability
would be a RPITA.

> ......shouldn't that be on github or something ;)

It might be good but it ain't THAT good.
"github" is for real coders, I am a mere amateur... :o)
73...

Bazza, G0LCU...

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

Postby Bazza » Mon Dec 30, 2013 10:32 pm

Well this is a complete code update.

The untested Windows generator batch file now modified, tested and working using SOX
for Windows.

The HSHIFT now locks to the last positon you set it to.

The two images are a low level whistle into firstly this Macbook Pro 13 inch, OSX 10.7.5
using SOX and secondly my ACER ASPIRE ONE, PCLOS 2009 using /dev/dsp...

4 commands added.

AC, DC, STATUS and MODE...

AC and DC don't do much ATM.

STATUS re-prints the LAST status shown to the STATUS window for 3 seconds.
MODE re-prints the last line in the STATUS window.

SHIFT now renamed VSHIFT.

HSHIFT now fixes the position after exit as opposed to resetting back to the start of the
file.

Lots of other minor changes.

The Manual is well out of date ATM but still has some use...

Enjoy...
ImageImage
Code is here:-
http://wisecracker.host22.com/public/AudioScope.sh
73...

Bazza, G0LCU...

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

Postby Bazza » Sat Jan 11, 2014 12:41 pm

Latest version 0.20.58...

Now has 2 votes of 5 stars and a thank you on www.unix.com.

Auto-detects where sox is and whether /dev/dsp exists.

Other improvements too...
Read the code for more information.
The sox auto-detect is commented out so just alter line below
it if you know where your sox is. Minimum sox install is version
14.4.0...

Now experimenting with Arduino as another input for LF
and DC components...

The photos are the vertical calibrator, dc amplitude and polraity
tester unit and a vartical amplifer tester unit...
I have not decided on the tester boards yet they are shown to
show that I am not remaining idle on the buliding...

Code here:-

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

Image
Image
Image
Image
73...

Bazza, G0LCU...

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

Postby guy » Sat Jan 11, 2014 4:24 pm

Bazza wrote:
> ......shouldn't that be on github or something ;)
...
"github" is for real coders, I am a mere amateur... :o)


Linus Torvalds was an amateur when he wrote the Linux kernel. Don't be so modest, put it out there. :evil:
Cheers,
Guy
The eternal help vampire
User avatar
guy
LXF regular
 
Posts: 1078
Joined: Thu Apr 07, 2005 12:07 pm
Location: Worcestershire

Postby Bazza » Sat Jan 11, 2014 8:22 pm

Hi guy...

If it offends you that much then I will let the Moderators decide
whether to close the thread or not, or alternatively, put it to the
people who are DLing it and let them decide...

Remember you don't have to view it...

It is as much a learning tool for me as others trying it but I can
live without it being on here...

CYA...
73...

Bazza, G0LCU...

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

Postby guy » Sat Jan 11, 2014 10:07 pm

Bazza wrote:If it offends you that much


What's to offend? I just think that your code deserves the best break you can give it.
Cheers,
Guy
The eternal help vampire
User avatar
guy
LXF regular
 
Posts: 1078
Joined: Thu Apr 07, 2005 12:07 pm
Location: Worcestershire

Postby Bazza » Sun Jan 12, 2014 11:11 am

Hi guy...

My apologies, I misinterpreted your smiley...

I personally don't think it is THAT good, not yet at least.

It is certainly different and is beginning to look cool, but, is it
execeptional code? That is open for debate, as this was my way
of learning shell scripting in a big way. Simple one liners is not
the same as an _application_...

It does show how versatile shell scripting is however and if all
goes according to plan should become a useful kids level tool.

I will certainly look into Github however...

EDIT, now on Github here:-

https://github.com/wisecracker-bazza/Scope
73...

Bazza, G0LCU...

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

Postby purplepenguin » Thu Feb 27, 2014 10:57 pm

Hey Bazza have you seen this months issue?

All I'll say (just in case you haven't yet) is that beats any letters page. :D
So it looks like I'm back to LinuxMint again. Why you ask? Because my machine smell nicer.

I'm not too sure I'd want a Mint and Cinnamon muffin with my brew though. Guess I'm lucky they don't run my local bakery.
purplepenguin
LXF regular
 
Posts: 130
Joined: Wed Oct 05, 2011 2:19 pm
Location: Blissfully at the Command Line

Postby Bazza » Mon Mar 03, 2014 7:30 pm

Hi pp...

No I hadn't until you mentioned it. I am too busy preparing the
next part. Getting DC and LF into the unit/code. Arduino is going
to be the way. The vertical amplifier is being rebuilt to make it
completely isolated from the laptop/notebook/netbook...

Now I have seen it... Ouch!

This I did not expect and I owe it all to guy whom I misunderstood
with a reply from him. Thanks guy you were correct it seems as
though I do have a big audience now. Not sure how to handle my
fame now... ;oD

On a serious note however this project is getting much harder
to keep kids level simple...

Thanks to LXF for my short burst of fame and to the Forum
for being tolerant of my uploading of the code and LBNL to you
pp for making me aware of it... ;o)
73...

Bazza, G0LCU...

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

Postby purplepenguin » Tue Mar 04, 2014 9:14 am

Glad you've seen it. You should be very proud of your work. Fancy getting into the Hot Picks of the number 1 Linux magazine.

Whatever happens with your new found fame. Just promise us all you wont end up on "I'm a celebrity get me out of here" or something similar.

Kudos
So it looks like I'm back to LinuxMint again. Why you ask? Because my machine smell nicer.

I'm not too sure I'd want a Mint and Cinnamon muffin with my brew though. Guess I'm lucky they don't run my local bakery.
purplepenguin
LXF regular
 
Posts: 130
Joined: Wed Oct 05, 2011 2:19 pm
Location: Blissfully at the Command Line

Postby guy » Tue Mar 04, 2014 9:54 am

And don't forget my 20% introduction fee. 8)
Cheers,
Guy
The eternal help vampire
User avatar
guy
LXF regular
 
Posts: 1078
Joined: Thu Apr 07, 2005 12:07 pm
Location: Worcestershire

Postby Bazza » Tue Mar 04, 2014 9:48 pm

Hi pp...

Ha ha...
There is one thing for sure no matter what fame I might get,
being a celebrity is certainly not part of it...

Hi guy...
20% of nothing > /dev/null all paid in full... ;oD
Remember the code is Public Domain, not GPL...
73...

Bazza, G0LCU...

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

Postby Bazza » Sun Mar 09, 2014 3:14 pm

(Apologies for typos.)

An unofficial release is here from today's date stamp...
Version is 0.21.90...

It now creates an 8 second sinewave burst in .WAV format so as to be able to use just about any music player available, to become a pure sinewave test signal source.
Just put the player on repeat and away you go...

I have uploaded it to my phone and now this has become my remote signal source.

Also an early manual version of detecting Arduino. This is being removed on the official release for a semi-automatic version.
The Command is DC<CR> and follow on screen prompts...

I can't remember if the previous version had a load facility but it can now _import_ any previous scan for re-use...
Command is LOAD<CR> and follow on screen prompts...

The DC section also creates a .PDE file to program the Arduino for a single ADC only <- read the code for more info...

I have also thought of an extremely simple method of getting DC into the sound-card for those who have not got an Arduino.

It will hopefully remove the hardware already built and shown and be even more 10 year old friendly...

Can't remember anything else at the moment...

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

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

Bazza...
73...

Bazza, G0LCU...

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

Postby Bazza » Sun Mar 16, 2014 8:55 am

Lots of changes here for version 0.22.10...

A semi-automatic Arduino detection command:- ARDDET<CR>
This requires a small amount of user input.
The ARDDET<CR> section also creates a .PDE file to program the Arduino for a single ADC only <- read the code for more info...
To see Arduino working after programming it just temporarily wire a 10K pot' between +5V and Gnd with the wiper connected to ANALOG 0.

An 8 second pure sinewave wave file now created for multi-platform use.
It IS now on my 'phone as a signal source using the default 'phone player in loop mode - nice'n'easy... ;o)

Another command:- BURST<CR> plays the above wave file using "afplay" for OSX or "aplay" for Linux.

DC now allows REAL DC into the scope IF Arduino is detected.
IF NOT then it defaults to a DEMO mode and samples /dev/urandom.
It displays itself inside the YELLOW section of the COMMAND window for a short period.

Another command:- ALTDC<CR> is a placeholder for a sound card DC input under development.

Other minor changes too...

This WILL have bugs and any discovered please let me know on this thread.

This is now an OFFICIAL release, 16 March, 2014...

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

Enjoy...
73...

Bazza, G0LCU...

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

Postby Bazza » Fri Apr 25, 2014 5:44 pm

Right guys and Gals...

I have not been idle on AudioScope.sh but I have finally got it working on CygWin using the default /dev/dsp inside CygWin, using the relatively limited command set with CygWin...

I have not attempted to use Windows SOX yet but that might be on the agenda.

This is a snapshot only taken today, 25-04-2014, of AudioScope.sh running inside CygWin on an ancient HP laptop running Windows Vista.
It is SSLLOOWW ATM but works reasonably well...

Ignore the version number as this was the closest thing to current that I had at hand... ;o)
I am not releasing the code yet until I have cleaned it up on the current version but it is coming soon.

I forgot to add that the waveform is a whistle into the laptop's mic.

Image
73...

Bazza, G0LCU...

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

PreviousNext

Return to Programming

Who is online

Users browsing this forum: No registered users and 3 guests