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)
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)
Hi all...
I don't think this has been done before but I am open to being corrected...
This batch file generates a 65536 byte binary file to give 8 seconds of pure sinewave at the earphone/speaker output(s)...
It uses ONLY a default Windows 32 bit installation, to Windows 7, except for the... (0 Replies)
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)
This site is the first to get this snippet.
It will capture an audio recording of any time length within the limits of OSX's QuickTime Player's capablility...
A shell script derivative of this will be used as a further capture for CygWin's AudioScope.sh.
Thoroughly read ALL the comments in... (0 Replies)
Ok guys, gals and geeks...
As from today I am starting to learn awk in earnest doing something totally different.
I am going to create a pseudo-Audio_Function Generator centred around OSX 10.11.x minimum. The code below is a tester to see what the possibilities are.
All waveforms will be... (11 Replies)
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)
This is a DEMO shell script to generate a simple graticule and plot inside it...
Apologies for any typos...
it is another building block along with my other two shell uploads recently to start a semi_serious project of an Terminal_AudioScope...
The fist upload I posted recently was to show... (83 Replies)
Discussion started by: wisecracker
83 Replies
LEARN ABOUT PLAN9
audio
AUDIO(3) Library Functions Manual AUDIO(3)NAME
audio - digital audio input and output
SYNOPSIS
bind -a #A /dev
/dev/audio
/dev/volume
DESCRIPTION
The audio device serves a one-level directory, giving access to the stereo audio ports. Audio is the data file, which can be read or writ-
ten to use the port. Audio data is a sequence of stereo samples, left sample first. Each sample is a 16 bit little-endian two's comple-
ment integer; the default sampling rate is 44.1 kHz. Some implementations only support audio output and return a zero length when read.
Volume is the control file associated with the audio port. Each input and output source has an associated stereo volume control, ranging
from 0 (quiet) to 100 (loud). In addition, there are controls for the sampling rate of the D/A and A/D converters and for any tone con-
trols. Reads return lines of the form
source in left value right value out left value right value
possibly abbreviated if the values are shared or non-existent. For example, if all of the values are shared, the form degenerates to
`source value'. Valid sources depend on the particular audio device, though all devices have a audio stereo source, which controls the
output volume from the D/A converter connected to audio.
Writes accept the same format with same abbreviations. Writing the string reset sets all of the attributes to their default value, and if
no attribute is supplied, audio is assumed.
The Sound Blaster 16 (or MCD) is half-duplex and has the following controls.
audio out
Data written to audio.
synth in out
MIDI synthesizer.
cd in out
CD player.
line in out
Line-level input.
mic in out
Monaural microphone input.
speaker in out
Monaural internal speaker connection.
treb out
Stereo treble tone control. Values less than 50 decrease the treble, those greater increase it.
bass out
Stereo bass tone control.
speed in out
Sampling rate for the D/A and A/D converters, expressed in Hz. Defaults to 44100.
Indigo audio is full-duplex and has the following controls.
audio out
Data written to audio.
line in out
Line-level input.
mic in out
Microphone input.
aes in out
Digital input.
Nextstation audio is output only and has the following controls.
audio Data written to audio.
deemp A value of zero turns off the stereo de-emphasis filter, any other value turns it on.
SOURCE
/sys/src/9/*/devaudio.c
AUDIO(3)