sox-users@lists.sourceforge.net unofficial mirror
 help / color / Atom feed
From: Albert Berger <nbdspcl@gmail.com>
To: sox-users@lists.sourceforge.net
Subject: Generating tones with alternating frequencies
Date: Mon, 4 May 2020 16:28:40 +0300
Message-ID: <20200504132840.GA98674@kw.merryville> (raw)

Hello,

first I'd like to use the occasion and thank the programmers, who is
developing Sox, for their amazing work!

And here is my question.

Sox allows one to generate a tone whose frequency changes from freq1 to freq2:

play -n synth 4 sine 200-400

If one needs the tone to oscillate between these frequencies, this can be 
achieved e.g. with the following:

play -n synth 4 sine 200:400 sine 400:200 delay 0 4 remix 1,2 1,2 repeat 999

The tone will oscillate between 200 and 400 Hz with the 4 second period.

With even more trickery one can achieve that several tones simultaneously
oscillate between different frequencies with *different* periods. That is
one tone alternates between frequencies more faster than another.

What I cannot figure out how to achieve (and this is my question) is the
following:

is it possible with Sox to generate a stream where several tones oscillate
between different frequencies with different periods **and** these periods
are themselves oscillate (that is for each tone the speed of alternating 
between frequencies constantly changes back and forth between some given
boundaries)?


Albert.


_______________________________________________
Sox-users mailing list
Sox-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users

                 reply index

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://lists.sourceforge.net/lists/listinfo/sox-users

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200504132840.GA98674@kw.merryville \
    --to=sox-users@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

sox-users@lists.sourceforge.net unofficial mirror

Archives are clonable: git clone --mirror https://public-inbox.org/sox-users

Example config snippet for mirrors

Newsgroups are available over NNTP:
	nntp://news.public-inbox.org/inbox.comp.audio.sox
	nntp://ou63pmih66umazou.onion/inbox.comp.audio.sox
	nntp://news.gmane.io/gmane.comp.audio.sox

 note: .onion URLs require Tor: https://www.torproject.org/

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git