Sponsored Content
Operating Systems OS X (Apple) A Bash Audio Sweep Generator... Post 302912350 by Corona688 on Thursday 7th of August 2014 12:28:05 PM
Old 08-07-2014
He has raw header values to make a WAV file of 8KHz 8-bit audio, which happens to be the format /dev/dsp uses if not told otherwise. If you used any other format than 8-bit 8khz, you'd either hear it too fast, scrambled, or pure noise.

You probably hear a tiny scratch of noise as-is when it starts, that would be the WAV header.

I believe he makes the sweep by making a small-as-possible pulse and appending it to the wav file... A bit more dead space is added to the pulse before appending it again. This moves the pulses gradually further and further apart.
 

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Error with Audio Conversion Bash Script

Good evening, I'm currently working on a BASH script to convert audio between file formats and I've come across a snag. At the beginning of the script, I'm having the system check to see if any files with the .m4a extension exist in the directory, and if so, it runs the script. If there are no... (1 Reply)
Discussion started by: KBurkholder
1 Replies

2. Programming

Python, Platform Independent, Pure Audio Sinewave Generator...

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

3. Shell Programming and Scripting

A Crude 1KHz Audio Sinewave Generator Demo...

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

4. Shell Programming and Scripting

IP Ping Sweep

I put this together to search for unused IP addresses on a router. It's run as a Bash Command on OSX 10.9. Basically the user inputs the router address' IP range to sweep. 'jot' spits out a list of IP addresses based on that input and each one of those gets pinged. The output looks like this (tab... (4 Replies)
Discussion started by: sudo
4 Replies

5. Slackware

Problems with audio recording in Audacity 2.0.5. Slackware64 14.1; Intel HD Audio.

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

6. OS X (Apple)

An Audio Function Generator...

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)
Discussion started by: wisecracker
11 Replies

7. OS X (Apple)

Variable frequency audio generator...

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

8. OS X (Apple)

A simple variable frequency sinewave audio generator.

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
DNOISE(1)						  The Canonical Csound Reference						 DNOISE(1)

NAME
dnoise - Reduces noise in a file. . DESCRIPTION
This is a noise reduction scheme using frequency-domain noise-gating. SYNTAX
dnoise [flags] -i noise_ref_file -o output_soundfile input_soundfile INITIALIZATION
Dnoise specific flags: o (no flag) input soundfile to be denoised o -i fname input reference noise soundfile o -o fname output soundfile o -N fnum # of bandpass filters (default: 1024) o -w fovlp filter overlap factor: {0,1,(2),3} DON'T USE -w AND -M o -M awlen analysis window length (default: N-1 unless -w is specified) o -L swlen synthesis window length (default: M) o -D dfac decimation factor (default: M/8) o -b btim begin time in noise reference soundfile (default: 0) o -B smpst starting sample in noise reference soundfile (default: 0) o -e etim end time in noise reference soundfile (default: end of file) o -E smpend final sample in noise reference soundfile (default: end of file) o -t thr threshold above noise reference in dB (default: 30) o -S gfact sharpness of noise-gate turnoff, range: 1 to 5 (default: 1) o -n numfrm number of FFT frames to average over (default: 5) o -m mingain minimum gain of noise-gate when off in dB (default: -40) Soundfile format options: o -A AIFF format output o -W WAV format output o -J IRCAM format output o -h skip soundfile header (not valid for AIFF/WAV output) o -8 8-bit unsigned char sound samples o -c 8-bit signed_char sound samples o -a alaw sound samples o -u ulaw sound samples o -s short_int sound samples o -l long_int sound samples o -f float sound samples. Floats also supported for WAV files. (New in Csound 3.47.) Additional options: o -R verbose - print status info o -H [N] print a heartbeat character at each soundfile write. o -- fname output to log file fname o -V verbose - print status info Note DNOISE also looks at the environment variable SFOUTYP to determine soundfile output format. The -i flag is used for a reference noise file (normally created from a short section of the denoised file, where only noise is audible). The input soundfile to be denoised can be given anywhere on the command line, without a flag. PERFORMANCE
This is a noise reduction scheme using frequency-domain noise-gating. This should work best in the case of high signal-to-noise with hiss-type noise. The algorithm is that suggested by Moorer & Berger in "Linear-Phase Bandsplitting: Theory and Applications" presented at the 76th Convention 1984 October 8-11 New York of the Audio Engineering Society (preprint #2132) except that it uses the Weighted Overlap-Add formulation for short-time Fourier analysis-synthesis in place of the recursive formulation suggested by Moorer & Berger. The gain in each frequency bin is computed independently according to gain = g0 + (1-g0) * [avg / (avg + th*th*nref)] ^ sh where avg and nref are the mean squared signal and noise respectively for the bin in question. (This is slightly different than in Moorer & Berger.) The critical parameters th and g0 are specified in dB and internally converted to decimal values. The nref values are computed at the start of the program on the basis of a noise_soundfile (specified in the command line) which contains noise without signal. The avg values are computed over a rectangular window of m FFT frames looking both ahead and behind the current time. This corresponds to a temporal extent of m*D/R (which is typically (m*N/8)/R). The default settings of N, M, and D should be appropriate for most uses. A higher sample rate than 16 Khz might indicate a higher N. CREDITS
Author: Mark Dolson August 26, 1989 Author: John ffitch December 30, 2000 Updated by Rasmus Ekman on March 11, 2002. AUTHORS
Barry Vercoe MIT Media Lab Author. Dan Ellis MIT Media Lab, Cambridge Massachussetts Author. COPYRIGHT
5.10 08/01/2011 DNOISE(1)
All times are GMT -4. The time now is 10:30 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy