Sponsored Content
Full Discussion: A metronome...
Operating Systems OS X (Apple) A metronome... Post 302946023 by Corona688 on Friday 5th of June 2015 05:41:45 PM
Old 06-05-2015
Interesting idea, it'd be more accurate to generate appropriate amounts of silence in a file and let the sound card do its own accounting of time. You could get quite high rates that way. Something like:

Code:
dd if=/dev/zero bs=1 count=${silence_bytes} > /tmp/silence.raw

while true
do
        cat /tmp/tick.raw /tmp/silence.raw /tmp/tock.raw /tmp/silence.raw
done > /dev/dsp

rm /tmp/silence /tmp/tick /tmp/tock

 
MULTIMON(1)						      General Commands Manual						       MULTIMON(1)

NAME
gen - program to generate test files of radio transmission modulation SYNOPSIS
gen [options] output_file DESCRIPTION
This manual page documents briefly the gen command. This manual page was written for the Debian GNU/Linux distribution because the original program does not have a manual page. multimon is a program that decodes radio transmissions, gen generates modulated files suitable for decoding with multimon. OPTIONS
-t <type> output file type (any other type than raw requires sox). allowed types: raw aiff au hcom sf voc cdr dat smp wav maud vwe -a <ampl> amplitude. -d <str> encode DTMF string. -z <str> encode ZVEI string. -s <freq> encode sine of given frequency. -p <text> encode hdlc packet using specified text. EXAMPLE
Create a file /tmp/message.wav containing sound samples of packet radio message: gen -p "This is a message." -t raw /tmp/message.wav To dial a number directly to the sound card output: gen -d 8675309 SEE ALSO
multimon(1) AUTHOR
This manual page was written by A. Maitland Bottoms <bottoms@debian.org>, for the Debian GNU/Linux system (but may be used by others). June 19, 2000 MULTIMON(1)
All times are GMT -4. The time now is 06:37 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy