cat /dev/urandomgenerates a random sequence of all possibles "values".cat /dev/urandom | padsp tee /dev/audio > /dev/nulldirects these "values" to your audio device, turning them into "random noise" or "random tones" (see: Generating random noise for fun in /dev/snd/)
But how can I do the same but instead of random noise/tones I pick a single value out of all possibles values and cat that to the audio device indefinitely (creating a sequence of the same value rather than random values)?
This should produce a single consistent tone.
Interface
You can manually experiment with different values, but one imaginary "interface" to make it easier to pick/hit the value you want could be:
- Frequency (Hz) e.g. 440
- Amplitude (0 - 1) e.g. 0.8
I'd rather not use an audio file, e.g. file.wav, file.mp3, file.ogg, etc. Just a bash script and defaultish cli applications (e.g. cat, padsp, etc).