04-04-2016
Hi Don...
# defined, $VER will not be expanded in an awk string constant.
This made me smile...
It is not meant to be a variable at all.
As I am still an ancient AMIGA _fanatic_ this is how any executable file in the AMIGA directory tree displays what the program and its version is when _asked_.
$VER is always the first 4 characters followed by a space and after that is pure text. I use underscores instead of other spaces.
So if you see anything of mine it will always have $VER in it. In AudioScope the '$' is escaped so as not to be confused with a variable in 'sh'...
It is a quirk of mine...
All of the files are now created but I forgot about the 'close()' you mentioned in post 8, my bad.
Anyhow it looks as though this creation will be yours too... ;oD
Once again you have added to my learning and I had thought about a function but was not sure at this stage where to start.
As for the ARBITRARY waveform size anything greater that 480,000 bytes is OK and that was my next job...
2 questions:-
Eventually for the ARBITRARY generation I was going to call the shell command ed as this is difinitve on all versions of Linux and UNIX flavours.
1) Which editor would you use to call?
2) Is it possible to save the file without a newline?
I have checked three editors, 'Gedit' is my GUI editor of choice, 'ed' and 'vi(m)'. I might be missing something with 'ed' and 'vi(m)' as I am no expert by any stretch of the imagination...
TIA.
8 More Discussions You Might Find Interesting
1. Programming
IKHz_SW_OSX.py
A DEMO mono _pure_ sinewave generator using standard text mode Python 2.6.7 to at least 2.7.3.
This code is EASILY modifyable to Python version 3.x.x...
This DEMO kids level 1KHz generator is mainly for a MacBook Pro, (13 inch in my case), OSX 10.7.5 and above. See below...... (0 Replies)
Discussion started by: wisecracker
0 Replies
2. Shell Programming and Scripting
A very simple crude sinewave generator.
The file required is generated inside the code, is linear interpolated and requires /dev/audio to work. Ensure you have this device, if not the download oss-compat from your OS's repository...
It lasts for about 8 seconds before exiting and saves a... (5 Replies)
Discussion started by: wisecracker
5 Replies
3. Shell Programming and Scripting
Thanks Guys
This really helped (5 Replies)
Discussion started by: robert89
5 Replies
4. Slackware
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)
Discussion started by: qzxcvbnm
2 Replies
5. OS X (Apple)
This is a small program as a tester for a basic sweep generator for bandwidth testing of AudioScope.sh.
This DEMO is only capable of 4KHz down to about 85Hz and back due to the low bit rate, but it is proof of concept for a much wider variant using a much higher bit rate.
The file generated... (4 Replies)
Discussion started by: wisecracker
4 Replies
6. OS X (Apple)
Hi all...
I intend to do an Audio Function Generator using Awk, (already started thanks to Don), but the biggest thing I have struggled with was variable frequency.
I was going to generate differing sized waveforms on the fly but that would that would mean the frequencies are dependent on any... (2 Replies)
Discussion started by: wisecracker
2 Replies
7. OS X (Apple)
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
8. Shell Programming and Scripting
Hello
I use a bash script to creating the hosts file /etc/hosts
But there is a bug inside my output and I want to fix this.
My Array looks like this:
205,IP 111.122.133.20
205,HOST2 unas
205,HOST1 unas15533
205,COMMENT # UNAS
775,IP ... (9 Replies)
Discussion started by: Marti95
9 Replies
LEARN ABOUT DEBIAN
soap::wsdl::factory::generator
SOAP::WSDL::Factory::Generator(3pm) User Contributed Perl Documentation SOAP::WSDL::Factory::Generator(3pm)
NAME
SOAP::WSDL::Factory:Generator - Factory for retrieving generator objects
SYNOPSIS
# from SOAP::WSDL::Client:
$generator = SOAP::WSDL::Factory::Generator->get_generator({
soap_version => $soap_version,
});
# in generator class:
package MyWickedGenerator;
use SOAP::WSDL::Factory::Generator;
# register as generator for SOAP1.2 messages
SOAP::WSDL::Factory::Generator->register( '1.2' , __PACKAGE__ );
DESCRIPTION
SOAP::WSDL::Factory::Generator serves as factory for retrieving generator objects for SOAP::WSDL.
The actual work is done by specific generator classes.
SOAP::WSDL::Generator tries to load one of the following classes:
o the class registered for the scheme via register()
METHODS
register
SOAP::WSDL::Generator->register('Lite', 'MyWickedGenerator');
Globally registers a class for use as generator class.
get_generator
Returns an object of the generator class for this endpoint.
WRITING YOUR OWN GENERATOR CLASS
Registering a generator
Generator classes may register with SOAP::WSDL::Factory::Generator.
Registering a generator class with SOAP::WSDL::Factory::Generator is done by executing the following code where $version is the SOAP
version the class should be used for, and $class is the class name.
SOAP::WSDL::Factory::Generator->register( $version, $class);
To auto-register your transport class on loading, execute register() in your generator class (see SYNOPSIS above).
Generator package layout
Generator modules must be named equal to the generator class they contain. There can only be one generator class per generator module.
Methods to implement
Generator classes must implement the following methods:
o new
Constructor.
o generate
Generate SOAP interface
Generators may implements one or more of the following configuration methods. All of them are tried via can() by wsdl2perl.
o set_wsdl
Set the raw WSDL XML. Implement if you have your own WSDL parser.
o set_definitions
Sets the (parsed) SOAP::WSDL::Definitions object.
o set_type_prefix
Sets the prefix for XML Schema type classes
o set_element_prefix
Sets the prefix for XML Schema element classes
o set_typemap_prefix
Sets the prefix for typemap classes (class resolvers).
o set_interface_prefix
Sets the prefix for interface classes
o set_typemap
Set user-defined typemap snippet
LICENSE AND COPYRIGHT
Copyright 2007 Martin Kutter. All rights reserved.
This file is part of SOAP-WSDL. You may distribute/modify it under the same terms as perl itself
AUTHOR
Martin Kutter <martin.kutter fen-net.de>
REPOSITORY INFORMATION
$Rev: 176 $
$LastChangedBy: kutterma $
$Id: Serializer.pm 176 2007-08-31 15:28:29Z kutterma $
$HeadURL: https://soap-wsdl.svn.sourceforge.net/svnroot/soap-wsdl/SOAP-WSDL/trunk/lib/SOAP/WSDL/Factory/Serializer.pm $
perl v5.10.1 2010-12-21 SOAP::WSDL::Factory::Generator(3pm)