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
Softros LAN messenger 9.2
GetOrgChart 2.5.2
Alvas.Audio 2018.0
Bytescout PDF Viewer SDK 9.0.0.3079
SecureBridge 8.2
Magento Language Translator 1.0
Australia Post Shipping For Magento 1.0
Excel Add-in for SQL Server 1.7
ODBC Driver for BigCommerce 1.3
Excel Add-in for SQLite 1.7
SentiVeillance SDK Trial 6.0.183849
dotConnect for Dynamics CRM 1.7
Entity Developer 6.3
dbForge Documenter for Oracle 1.0
dbForge Data Generator for Oracle 2.0
Top Code
Online Food Ordeing System 1.0
K-means algorithm demo 1.0
Silence removal in speech signals 1.0
Ping Pong Game Code Script 1.1
Kalman Filter Tutorial 1.0
Ticket Booking System 1.0
Pet Listing & Classified Ads Script 1.0
Hotel Management - Full Board Version 6.55
Visual Basic utilities 20071207085454
JustAjax Table 0.7
IMPLEMENTATION OF GAUSS SEIDEL METHOD IN MATLAB 1.0
Huffman Coding and Decoding for Text Compression 1.1
Performance Tips and Tricks in .NET Applications
Car Dealer Website 1.0
Oracle Data Access Components 6.00
Top Rated
Output Messenger 1.8.0
Aliexpress Clone- Ec21 Script 1
Indiegogo Clone 3.0
Advanced MLM Software 1.2
Online Food Ordeing System 1.0
PHP Image Resize Script 1.0
Best Spotify Clone 1.0
Get Random Record Based on Weight 1.0.0
PHP Point of sale 10.0
Travel Portal Script 9.29
Excel Add-in for Bigcommerce 1.6
Magento Product Designer 1.0
OFOS - Just Eat Clone Script 1.0
PrestaShop Upload Images Module 1.2.1
Trading Software 1.2.4
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: 67
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: 67



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