Search
Code Directory
 ASP
 ASP.NET
 C/C++
 CFML
 CGI/PERL
 Delphi
 Development
 Flash
 HTML
 Java
 JavaScript
 Pascal
 PHP
 Python
 SQL
 Tools
 Visual Basic & VB.NET
 XML
New Code
Easy CSS Menu 5.0
Bytescout PDF SDK 1.7.0.222
Kickstarter clone script 2.0.5
Indiegogo Clone 3.0
Mercato 1.0
Readymade PHP Classified Script 3.3
Udacity Clone Script 1.20
PHP News Script 1.0.5
Exe Guarder 4.14
dbForge Search 2.2
EaseClouds Virtual File System SDK 2.1.1.2
dbForge SQL Decryptor 3.1
Fortune Gigs Script 2.03
Pricing Plans and Subscription Payment Script 1.0
PHP Image Resize Script 1.0
Top Code
Billing System 1.0.1
StreamChat 6.6
latgsqr 1.0
TAdvPicture 1.2
Simple Hill-Climbing 1.0
JNAerator / NativeLibs4Java 1.0
Best Spotify Clone 1.0
Revenue Auto Pilot 1.0
PostDate 2.4.40
CONVOLUTION IN MATLAB WITHOUT USING conv(x,h) 1.0
An SVG framework in C# and an SVG-GDI+ bridge
Readymade MLM Software 2.02
ASIO Proxy
JDrawingPanel 0.1
Javast 1.0
Top Rated
PHP Image Resize Script 1.0
Jango Clone Script 1.0
Best Spotify Clone 1.0
Get Random Record Based on Weight 1.0.0
Travel Portal Script 9.29
Magento Product Designer 1.0
OFOS - Just Eat Clone Script 1.0
PrestaShop Upload Images Module 1.2.1
Trading Software 1.2.4
ADO.NET Provider for ExactTarget 1.0
Solid File System OS edition 5.1
Classified Ad Lister 1.0
Aglowsoft SQL Query Tools 8.2
Sine Wave Using JavaFX 1.0
ICPennyBid Penny Auction Script 4.0
Simple 1KHz Audio Function Generator Using Standard Python In Linu x...
File ID: 64466






Simple 1KHz Audio Function Generator Using Standard Python In Linu x...
Download Simple 1KHz Audio Function Generator Using Standard Python In Linu x...http://code.activestate.com/recipes/578101-colours-inside-text-mode-python/Report Error Link
License: Freeware
Downloads: 66
User Rating:2 Stars  (1 rating)
Submit Rating:
Simple 1KHz Audio Function Generator Using Standard Python In Linu x... Description
Description: Simple 1KHz Audio Function Generator Using Standard Python In Linux - afg.py

This code is a stand alone program to generate a signal, at the earphone sockets, of 1KHz.
It is a basic audio signal generator and can be used as a starter test signal source for amateur electronics
enthusiasts testgear suite(s).

It needs /dev/audio to work; if you haven't got it then install oss-compat from your distro's repository.

Ensure the audio system is NOT in use for this to work.

Sine, Square, Triangle, Sawtooth+, Sawtooth-, Pulse+ and Pulse- signals are generated in 10 second bursts.
The waveforms generated are unfiltered and therefore not "pure", but hey, an audio function generator
signal source, for free, without external hardware, AND, using standard Python, what more do you want... :)
An oscilloscope will show the waveforms generated at the earphone socket.

Noise is not included but that is SO easy that I left it out FTTB.
(This will be a future upload. ;o)

All that is required to make this a piece of audio test equipment is a cable plugged into to the earphone
socket.

Assuming it is copied into the module(s) drawer just type:-

>>> import afg[RETURN/ENTER]

And away you go...

This is Public Domain and you may do with it as you like.

Read the program for more information.
(There will be more to come in the future... :)

License: Freeware

Related: Audio, Demo, Function, Generator, Linux, Program, Signal, Sound, Source

O/S:Windows

Downloads: 66



More Similar Code

Simple White Noise Generator Using Standard Python In Linux - noise.py

This code is a stand alone program to generate a signal, at the earphone sockets, of white noise.

It needs /dev/dsp to work; if you haven't got it then install oss-compat from your distro's repository.
(NOTE:- /dev/audio could also be used but I decided to use /dev/dsp to show that this was within easy
reach of standard Python too.)



AudioScope.py

I think this might be a first for both Python.

Initially uploaded to LXF, now also here under the MIT licence.

I am building a kids level seismometer and wanted to use standard Python inside Linux.



A Linux DEMO to show how to display a waveform using standard text mode Python.
The audio device /dev/dsp is used and must be available. Levels are set using the
standard audio mixers.

Just feed a signal of say 300Hz to 3KHz,...



A very simple random integer generator using rand().
[just for educational purpose ;) !!]



A simple, fast, finite state machine (fsm) C code generator using an awk script to read a fsm specification (state, event, action, next state) to produce data for use by included transition function. You provide the fsm spec and the action functions.



I needed a simple standard Python analogue and digital display along with an overload beep when used as a
basic voltmeter.

Analogue readout, for quick glance.
Digital readout, for better accuracy.
Beep, to warn me of...



Arduino-Linux2x.py

This is a simple Python example of accessing a(n) Arduino Diecimila Board using Standard Python 2.x.x.

This code requires NO PySerial to work, just standard Linux(/Unix?) commands and a Standard Python...



A simple calculator that works with whole numbers written in C/Python.

The purpose of this implementation is only to show how a simple extension C/Python that can help people who are starting with C/Python.

In this cookbook...



The Velleman PCSGU250 is a combination 2-channel oscilloscope and function generator. This MATLAB Support package allows you to:
* configure scope properties such as triggers and time range
* retrieve waveforms from the scope
*...



The Radial Basis Function (RBF) using pseudo-inverse method for Simulink.
The Radial Basis Function (RBF) with fixed centers selected at random and
pseudo-inverse method for Simulink.

Marcelo Augusto Costa Fernandes
DCA -...

User Review for Simple 1KHz Audio Function Generator Using Standard Python In Linu
- required fields
     

Please enter text on the image