Stereo “tone-generator” for linux? Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) 2019 Community Moderator Election Results Why I closed the “Why is Kali so hard” questionAudio tone/sine generator with frequency gaugeVLC surround to stereo problemAudio tone/sine generator with frequency gaugeNo output through stereo jackdisable “stereo mix” or audio loopback in linux mint 17.3Audio stereo jack plugin not detectedPulseaudio: Two headphones (bluetooth, analog-stereo)Does the dmix plugin convert to stereo automatically?How do I get stereo output on Asus Xonar DGX in Linux?ALSA behaviour on stereo mic during process suspendUsing and configuring ALSA plugins dmix and dsnoop for stereo play and capture

Most bit efficient text communication method?

Trademark violation for app?

When the Haste spell ends on a creature, do attackers have advantage against that creature?

What does this Jacques Hadamard quote mean?

How do I find out the mythology and history of my Fortress?

What's the meaning of "fortified infraction restraint"?

What is the longest distance a player character can jump in one leap?

Did MS DOS itself ever use blinking text?

Withdrew £2800, but only £2000 shows as withdrawn on online banking; what are my obligations?

What font is "z" in "z-score"?

Is there a kind of relay only consumes power when switching?

Wu formula for manifolds with boundary

Does classifying an integer as a discrete log require it be part of a multiplicative group?

How could we fake a moon landing now?

How to react to hostile behavior from a senior developer?

How to compare two different files line by line in unix?

When a candle burns, why does the top of wick glow if bottom of flame is hottest?

Is there any way for the UK Prime Minister to make a motion directly dependent on Government confidence?

Fundamental Solution of the Pell Equation

If a contract sometimes uses the wrong name, is it still valid?

Is it fair for a professor to grade us on the possession of past papers?

What is homebrew?

Crossing US/Canada Border for less than 24 hours

Should I use a zero-interest credit card for a large one-time purchase?



Stereo “tone-generator” for linux?



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
2019 Community Moderator Election Results
Why I closed the “Why is Kali so hard” questionAudio tone/sine generator with frequency gaugeVLC surround to stereo problemAudio tone/sine generator with frequency gaugeNo output through stereo jackdisable “stereo mix” or audio loopback in linux mint 17.3Audio stereo jack plugin not detectedPulseaudio: Two headphones (bluetooth, analog-stereo)Does the dmix plugin convert to stereo automatically?How do I get stereo output on Asus Xonar DGX in Linux?ALSA behaviour on stereo mic during process suspendUsing and configuring ALSA plugins dmix and dsnoop for stereo play and capture



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








11















Is there something like a stereo (separate left-and right-channel) tone-generator for Linux? Where you can set volume and tone/pitch for each channel, and preferably also set the wave-form (sine, square, sawtooth, ...) and invert one channel (as opposed to the other).



If not, any ideas for a good places to start to make one? I guess the simplest would be to adapt existing programs like synths... But if that work poorly, are there any libraries (like SDL?) that can be used as bases for such a program?










share|improve this question






















  • You might be able to get it done with sox.

    – Renan
    Jul 7 '13 at 22:27











  • Related: unix.stackexchange.com/questions/245897/…

    – Nathaniel M. Beaver
    Apr 14 at 23:37

















11















Is there something like a stereo (separate left-and right-channel) tone-generator for Linux? Where you can set volume and tone/pitch for each channel, and preferably also set the wave-form (sine, square, sawtooth, ...) and invert one channel (as opposed to the other).



If not, any ideas for a good places to start to make one? I guess the simplest would be to adapt existing programs like synths... But if that work poorly, are there any libraries (like SDL?) that can be used as bases for such a program?










share|improve this question






















  • You might be able to get it done with sox.

    – Renan
    Jul 7 '13 at 22:27











  • Related: unix.stackexchange.com/questions/245897/…

    – Nathaniel M. Beaver
    Apr 14 at 23:37













11












11








11


3






Is there something like a stereo (separate left-and right-channel) tone-generator for Linux? Where you can set volume and tone/pitch for each channel, and preferably also set the wave-form (sine, square, sawtooth, ...) and invert one channel (as opposed to the other).



If not, any ideas for a good places to start to make one? I guess the simplest would be to adapt existing programs like synths... But if that work poorly, are there any libraries (like SDL?) that can be used as bases for such a program?










share|improve this question














Is there something like a stereo (separate left-and right-channel) tone-generator for Linux? Where you can set volume and tone/pitch for each channel, and preferably also set the wave-form (sine, square, sawtooth, ...) and invert one channel (as opposed to the other).



If not, any ideas for a good places to start to make one? I guess the simplest would be to adapt existing programs like synths... But if that work poorly, are there any libraries (like SDL?) that can be used as bases for such a program?







audio libraries






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jul 7 '13 at 18:26









Baard KopperudBaard Kopperud

4,51842845




4,51842845












  • You might be able to get it done with sox.

    – Renan
    Jul 7 '13 at 22:27











  • Related: unix.stackexchange.com/questions/245897/…

    – Nathaniel M. Beaver
    Apr 14 at 23:37

















  • You might be able to get it done with sox.

    – Renan
    Jul 7 '13 at 22:27











  • Related: unix.stackexchange.com/questions/245897/…

    – Nathaniel M. Beaver
    Apr 14 at 23:37
















You might be able to get it done with sox.

– Renan
Jul 7 '13 at 22:27





You might be able to get it done with sox.

– Renan
Jul 7 '13 at 22:27













Related: unix.stackexchange.com/questions/245897/…

– Nathaniel M. Beaver
Apr 14 at 23:37





Related: unix.stackexchange.com/questions/245897/…

– Nathaniel M. Beaver
Apr 14 at 23:37










4 Answers
4






active

oldest

votes


















13














It sounds like you're looking for Audacity which is a cross-platform open source audio editor. One of its features is to allow you to generate tones. It's a multi-track audio editor, so you can easily create a stereo tone.



Under the Generate menu, you're able to create Sine, Sawtooth, and Square waveform tones of arbitrary frequency, amplitude, and length without the need for recording or needing additional input files.






share|improve this answer

























  • But can it generate tones "from nothing"? And I'm not intending to record and playback anything, just generate two slightly different tones (one for each channel) "for eternity".

    – Baard Kopperud
    Jul 7 '13 at 18:38






  • 1





    @BaardKopperud Yes, I updated my answer to clarify.

    – j883376
    Jul 7 '13 at 18:47


















7














You might look at speaker-test, which (on an Arch machine) I find in alsa-utils package.



speaker-test -c2 -t sine run from an xterm, gave me a 440 Hz sine wave for about 6 seconds each, alternating left and right speakers. In the xterm, it gave some information about which speaker it thought it was using.



According to the man page, it can do sine waves of arbitrary frequency and pink noise.






share|improve this answer


















  • 1





    speaker-test -c2 -t sine -f 440 will complement your example by giving the frequency parameter. Thanku.

    – christian
    Jun 3 '18 at 12:37



















3














The siggen program should do the trick.



screenshot of siggen



It has two channels with independent signals and a phase between them. Each channel can do these signal types:



  • sine

  • cosine

  • square

  • triangle

  • sawtooth

  • pulse

  • noise

You can run it in stereo mode like this:



$ siggen -2


Since /dev/dsp is deprecated in most modern Linux distros, you will probably need to install a compatibility library. On Debian-based distros, install the alsa-oss package and run it like this:



$ aoss siggen -2


You can also try it with the PulseAudio OSS Wrapper:



$ padsp siggen -2





share|improve this answer

























  • I get: [siggen] Input/output error : /dev/dsp

    – Ole Tange
    10 hours ago











  • Hm. Does the PulseAudio OSS wrapper help at all?

    – Nathaniel M. Beaver
    10 hours ago


















0














You might be looking for Gnaural.






share|improve this answer




















  • 2





    It would be best to edit this answer to include more information about how this program provides the features being asked about - similar to the other answers previously posted.

    – Anthony Geoghegan
    Aug 17 '18 at 17:46











Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f82112%2fstereo-tone-generator-for-linux%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























4 Answers
4






active

oldest

votes








4 Answers
4






active

oldest

votes









active

oldest

votes






active

oldest

votes









13














It sounds like you're looking for Audacity which is a cross-platform open source audio editor. One of its features is to allow you to generate tones. It's a multi-track audio editor, so you can easily create a stereo tone.



Under the Generate menu, you're able to create Sine, Sawtooth, and Square waveform tones of arbitrary frequency, amplitude, and length without the need for recording or needing additional input files.






share|improve this answer

























  • But can it generate tones "from nothing"? And I'm not intending to record and playback anything, just generate two slightly different tones (one for each channel) "for eternity".

    – Baard Kopperud
    Jul 7 '13 at 18:38






  • 1





    @BaardKopperud Yes, I updated my answer to clarify.

    – j883376
    Jul 7 '13 at 18:47















13














It sounds like you're looking for Audacity which is a cross-platform open source audio editor. One of its features is to allow you to generate tones. It's a multi-track audio editor, so you can easily create a stereo tone.



Under the Generate menu, you're able to create Sine, Sawtooth, and Square waveform tones of arbitrary frequency, amplitude, and length without the need for recording or needing additional input files.






share|improve this answer

























  • But can it generate tones "from nothing"? And I'm not intending to record and playback anything, just generate two slightly different tones (one for each channel) "for eternity".

    – Baard Kopperud
    Jul 7 '13 at 18:38






  • 1





    @BaardKopperud Yes, I updated my answer to clarify.

    – j883376
    Jul 7 '13 at 18:47













13












13








13







It sounds like you're looking for Audacity which is a cross-platform open source audio editor. One of its features is to allow you to generate tones. It's a multi-track audio editor, so you can easily create a stereo tone.



Under the Generate menu, you're able to create Sine, Sawtooth, and Square waveform tones of arbitrary frequency, amplitude, and length without the need for recording or needing additional input files.






share|improve this answer















It sounds like you're looking for Audacity which is a cross-platform open source audio editor. One of its features is to allow you to generate tones. It's a multi-track audio editor, so you can easily create a stereo tone.



Under the Generate menu, you're able to create Sine, Sawtooth, and Square waveform tones of arbitrary frequency, amplitude, and length without the need for recording or needing additional input files.







share|improve this answer














share|improve this answer



share|improve this answer








edited Jul 7 '13 at 18:46

























answered Jul 7 '13 at 18:33









j883376j883376

1,6431112




1,6431112












  • But can it generate tones "from nothing"? And I'm not intending to record and playback anything, just generate two slightly different tones (one for each channel) "for eternity".

    – Baard Kopperud
    Jul 7 '13 at 18:38






  • 1





    @BaardKopperud Yes, I updated my answer to clarify.

    – j883376
    Jul 7 '13 at 18:47

















  • But can it generate tones "from nothing"? And I'm not intending to record and playback anything, just generate two slightly different tones (one for each channel) "for eternity".

    – Baard Kopperud
    Jul 7 '13 at 18:38






  • 1





    @BaardKopperud Yes, I updated my answer to clarify.

    – j883376
    Jul 7 '13 at 18:47
















But can it generate tones "from nothing"? And I'm not intending to record and playback anything, just generate two slightly different tones (one for each channel) "for eternity".

– Baard Kopperud
Jul 7 '13 at 18:38





But can it generate tones "from nothing"? And I'm not intending to record and playback anything, just generate two slightly different tones (one for each channel) "for eternity".

– Baard Kopperud
Jul 7 '13 at 18:38




1




1





@BaardKopperud Yes, I updated my answer to clarify.

– j883376
Jul 7 '13 at 18:47





@BaardKopperud Yes, I updated my answer to clarify.

– j883376
Jul 7 '13 at 18:47













7














You might look at speaker-test, which (on an Arch machine) I find in alsa-utils package.



speaker-test -c2 -t sine run from an xterm, gave me a 440 Hz sine wave for about 6 seconds each, alternating left and right speakers. In the xterm, it gave some information about which speaker it thought it was using.



According to the man page, it can do sine waves of arbitrary frequency and pink noise.






share|improve this answer


















  • 1





    speaker-test -c2 -t sine -f 440 will complement your example by giving the frequency parameter. Thanku.

    – christian
    Jun 3 '18 at 12:37
















7














You might look at speaker-test, which (on an Arch machine) I find in alsa-utils package.



speaker-test -c2 -t sine run from an xterm, gave me a 440 Hz sine wave for about 6 seconds each, alternating left and right speakers. In the xterm, it gave some information about which speaker it thought it was using.



According to the man page, it can do sine waves of arbitrary frequency and pink noise.






share|improve this answer


















  • 1





    speaker-test -c2 -t sine -f 440 will complement your example by giving the frequency parameter. Thanku.

    – christian
    Jun 3 '18 at 12:37














7












7








7







You might look at speaker-test, which (on an Arch machine) I find in alsa-utils package.



speaker-test -c2 -t sine run from an xterm, gave me a 440 Hz sine wave for about 6 seconds each, alternating left and right speakers. In the xterm, it gave some information about which speaker it thought it was using.



According to the man page, it can do sine waves of arbitrary frequency and pink noise.






share|improve this answer













You might look at speaker-test, which (on an Arch machine) I find in alsa-utils package.



speaker-test -c2 -t sine run from an xterm, gave me a 440 Hz sine wave for about 6 seconds each, alternating left and right speakers. In the xterm, it gave some information about which speaker it thought it was using.



According to the man page, it can do sine waves of arbitrary frequency and pink noise.







share|improve this answer












share|improve this answer



share|improve this answer










answered Jul 7 '13 at 21:55









Bruce EdigerBruce Ediger

35.7k670120




35.7k670120







  • 1





    speaker-test -c2 -t sine -f 440 will complement your example by giving the frequency parameter. Thanku.

    – christian
    Jun 3 '18 at 12:37













  • 1





    speaker-test -c2 -t sine -f 440 will complement your example by giving the frequency parameter. Thanku.

    – christian
    Jun 3 '18 at 12:37








1




1





speaker-test -c2 -t sine -f 440 will complement your example by giving the frequency parameter. Thanku.

– christian
Jun 3 '18 at 12:37






speaker-test -c2 -t sine -f 440 will complement your example by giving the frequency parameter. Thanku.

– christian
Jun 3 '18 at 12:37












3














The siggen program should do the trick.



screenshot of siggen



It has two channels with independent signals and a phase between them. Each channel can do these signal types:



  • sine

  • cosine

  • square

  • triangle

  • sawtooth

  • pulse

  • noise

You can run it in stereo mode like this:



$ siggen -2


Since /dev/dsp is deprecated in most modern Linux distros, you will probably need to install a compatibility library. On Debian-based distros, install the alsa-oss package and run it like this:



$ aoss siggen -2


You can also try it with the PulseAudio OSS Wrapper:



$ padsp siggen -2





share|improve this answer

























  • I get: [siggen] Input/output error : /dev/dsp

    – Ole Tange
    10 hours ago











  • Hm. Does the PulseAudio OSS wrapper help at all?

    – Nathaniel M. Beaver
    10 hours ago















3














The siggen program should do the trick.



screenshot of siggen



It has two channels with independent signals and a phase between them. Each channel can do these signal types:



  • sine

  • cosine

  • square

  • triangle

  • sawtooth

  • pulse

  • noise

You can run it in stereo mode like this:



$ siggen -2


Since /dev/dsp is deprecated in most modern Linux distros, you will probably need to install a compatibility library. On Debian-based distros, install the alsa-oss package and run it like this:



$ aoss siggen -2


You can also try it with the PulseAudio OSS Wrapper:



$ padsp siggen -2





share|improve this answer

























  • I get: [siggen] Input/output error : /dev/dsp

    – Ole Tange
    10 hours ago











  • Hm. Does the PulseAudio OSS wrapper help at all?

    – Nathaniel M. Beaver
    10 hours ago













3












3








3







The siggen program should do the trick.



screenshot of siggen



It has two channels with independent signals and a phase between them. Each channel can do these signal types:



  • sine

  • cosine

  • square

  • triangle

  • sawtooth

  • pulse

  • noise

You can run it in stereo mode like this:



$ siggen -2


Since /dev/dsp is deprecated in most modern Linux distros, you will probably need to install a compatibility library. On Debian-based distros, install the alsa-oss package and run it like this:



$ aoss siggen -2


You can also try it with the PulseAudio OSS Wrapper:



$ padsp siggen -2





share|improve this answer















The siggen program should do the trick.



screenshot of siggen



It has two channels with independent signals and a phase between them. Each channel can do these signal types:



  • sine

  • cosine

  • square

  • triangle

  • sawtooth

  • pulse

  • noise

You can run it in stereo mode like this:



$ siggen -2


Since /dev/dsp is deprecated in most modern Linux distros, you will probably need to install a compatibility library. On Debian-based distros, install the alsa-oss package and run it like this:



$ aoss siggen -2


You can also try it with the PulseAudio OSS Wrapper:



$ padsp siggen -2






share|improve this answer














share|improve this answer



share|improve this answer








edited 10 hours ago

























answered Oct 8 '17 at 21:41









Nathaniel M. BeaverNathaniel M. Beaver

220118




220118












  • I get: [siggen] Input/output error : /dev/dsp

    – Ole Tange
    10 hours ago











  • Hm. Does the PulseAudio OSS wrapper help at all?

    – Nathaniel M. Beaver
    10 hours ago

















  • I get: [siggen] Input/output error : /dev/dsp

    – Ole Tange
    10 hours ago











  • Hm. Does the PulseAudio OSS wrapper help at all?

    – Nathaniel M. Beaver
    10 hours ago
















I get: [siggen] Input/output error : /dev/dsp

– Ole Tange
10 hours ago





I get: [siggen] Input/output error : /dev/dsp

– Ole Tange
10 hours ago













Hm. Does the PulseAudio OSS wrapper help at all?

– Nathaniel M. Beaver
10 hours ago





Hm. Does the PulseAudio OSS wrapper help at all?

– Nathaniel M. Beaver
10 hours ago











0














You might be looking for Gnaural.






share|improve this answer




















  • 2





    It would be best to edit this answer to include more information about how this program provides the features being asked about - similar to the other answers previously posted.

    – Anthony Geoghegan
    Aug 17 '18 at 17:46















0














You might be looking for Gnaural.






share|improve this answer




















  • 2





    It would be best to edit this answer to include more information about how this program provides the features being asked about - similar to the other answers previously posted.

    – Anthony Geoghegan
    Aug 17 '18 at 17:46













0












0








0







You might be looking for Gnaural.






share|improve this answer















You might be looking for Gnaural.







share|improve this answer














share|improve this answer



share|improve this answer








edited Aug 17 '18 at 15:41









Michael Mrozek

62.5k29194214




62.5k29194214










answered Aug 17 '18 at 15:07









user306058user306058

1




1







  • 2





    It would be best to edit this answer to include more information about how this program provides the features being asked about - similar to the other answers previously posted.

    – Anthony Geoghegan
    Aug 17 '18 at 17:46












  • 2





    It would be best to edit this answer to include more information about how this program provides the features being asked about - similar to the other answers previously posted.

    – Anthony Geoghegan
    Aug 17 '18 at 17:46







2




2





It would be best to edit this answer to include more information about how this program provides the features being asked about - similar to the other answers previously posted.

– Anthony Geoghegan
Aug 17 '18 at 17:46





It would be best to edit this answer to include more information about how this program provides the features being asked about - similar to the other answers previously posted.

– Anthony Geoghegan
Aug 17 '18 at 17:46

















draft saved

draft discarded
















































Thanks for contributing an answer to Unix & Linux Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f82112%2fstereo-tone-generator-for-linux%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







-audio, libraries

Popular posts from this blog

Frič See also Navigation menuinternal link

Identify plant with long narrow paired leaves and reddish stems Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?What is this plant with long sharp leaves? Is it a weed?What is this 3ft high, stalky plant, with mid sized narrow leaves?What is this young shrub with opposite ovate, crenate leaves and reddish stems?What is this plant with large broad serrated leaves?Identify this upright branching weed with long leaves and reddish stemsPlease help me identify this bulbous plant with long, broad leaves and white flowersWhat is this small annual with narrow gray/green leaves and rust colored daisy-type flowers?What is this chilli plant?Does anyone know what type of chilli plant this is?Help identify this plant

fontconfig warning: “/etc/fonts/fonts.conf”, line 100: unknown “element blank” The 2019 Stack Overflow Developer Survey Results Are In“tar: unrecognized option --warning” during 'apt-get install'How to fix Fontconfig errorHow do I figure out which font file is chosen for a system generic font alias?Why are some apt-get-installed fonts being ignored by fc-list, xfontsel, etc?Reload settings in /etc/fonts/conf.dTaking 30 seconds longer to boot after upgrade from jessie to stretchHow to match multiple font names with a single <match> element?Adding a custom font to fontconfigRemoving fonts from fontconfig <match> resultsBroken fonts after upgrading Firefox ESR to latest Firefox