From: Darryl Lewis <darryl.lewis@unsw.edu.au>
To: "sox-users@lists.sourceforge.net" <sox-users@lists.sourceforge.net>
Subject: Re: Sine wave in an envelope
Date: Wed, 3 Jun 2020 15:05:20 +0000 [thread overview]
Message-ID: <23B7F1CA-9EDA-4A16-B6AA-711F3D0DDE50@unsw.edu.au> (raw)
In-Reply-To: <72549934-94d1-6b25-19e8-54cef71361f6@gmx.de>
Thanks Dr Tensi,
Those examples are fantasic and give me a great base to work from.
Kind regards
Darryl
On 4/6/20, 12:34 am, "Dr. Thomas Tensi" <t.tensi@gmx.de> wrote:
Hello Darryl,
you wrote:
> [modulate a sine wave with another in SoX?]
What you could do as an easy approach is modulate a sine wave with a
tremolo. Assume a target bit depth of 24bit, a sample rate of 44.1kHz, a
carrier of 1500Hz with a length of 20s and a modulation of 0.5Hz with a
depth of 100%
sox -n -b 24 -r 44100 test.wav synth 20 sine 1500 tremolo 0.5 100
Tremolo can only do a sine modulation with a fixed phase of 90°.
Even more powerful is the cascading of synth effects. Same logic, the
carrier is amplitude-modulated by a sine with 0.5Hz with the same 20s
length:
sox -n -b 24 -r 44100 test.wav synth 20 sine 1500 synth 20 sine amod 0.5
If you don't want a full modulation (from 0 to 100%), you can add a
dc-offset to the second waveform.
Hope this helps!
Best regards,
Thomas
_______________________________________________
Sox-users mailing list
Sox-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users
_______________________________________________
Sox-users mailing list
Sox-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users
next prev parent reply other threads:[~2020-06-03 15:06 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-03 11:38 Sine wave in an envelope Darryl Lewis
2020-06-03 14:33 ` Dr. Thomas Tensi
2020-06-03 15:05 ` Darryl Lewis [this message]
2020-06-03 15:13 ` Dr. Thomas Tensi
2020-06-07 21:05 ` Jeff Learman
2020-06-08 11:11 ` Dr. Thomas Tensi
2020-06-08 12:20 ` Jeff Learman
2020-06-08 15:13 ` Dr. Thomas Tensi
2020-06-08 19:24 ` Jeff Learman
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=23B7F1CA-9EDA-4A16-B6AA-711F3D0DDE50@unsw.edu.au \
--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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/sox.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).