sox-users@lists.sourceforge.net unofficial mirror
 help / color / Atom feed
From: "Dr. Thomas Tensi" <t.tensi@gmx.de>
To: sox-users@lists.sourceforge.net
Subject: Re: Sine wave in an envelope
Date: Mon, 8 Jun 2020 13:11:53 +0200
Message-ID: <88bb31d9-33a9-1b91-0717-395627a6a196@gmx.de> (raw)
In-Reply-To: <CAGyjer5m=kbUMjCZN3Afj12GSi4qEoNmTbLoHzP1-7uoonE6DA@mail.gmail.com>

Hello Jeff,


you wrote:
 > > [similar problem as amplitude modulating a sine wave]
 > I want to produce a stereo tremolo by using the sine amod
 > effect, out of phase on the left and right channels.

I am not sure whether this can be done in one command, but you could
modulate the channels into left and right mono versions and combine
(merge) the file into a stereo file. I assume that your source is in mono?
To paraphrase your solution:

-----
INFILE=rd73_064__E4_082.flac
OUTFILE=x.flac
tempfileLeft=left.flac
tempfileRight=right.flac

LEN=0
OFFSET=0
phaseLeft=0
phaseRight=180

# sox command fragments
tremPrefix=synth $LEN $OFFSET
tremSuffix=2 sine amod 0.5

sox $INFILE $tempfileLeft  $tremPrefix $phaseLeft  $tremSuffix
sox $INFILE $tempfileRight $tremPrefix $phaseRight $tremSuffix
sox -M $tempfileLeft $tempfileRight $OUTFILE
-----

Is this what you wanted?


         Best regards,

                 Thomas


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

  reply index

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-03 11:38 Darryl Lewis
2020-06-03 14:33 ` Dr. Thomas Tensi
2020-06-03 15:05   ` Darryl Lewis
2020-06-03 15:13     ` Dr. Thomas Tensi
2020-06-07 21:05   ` Jeff Learman
2020-06-08 11:11     ` Dr. Thomas Tensi [this message]
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=88bb31d9-33a9-1b91-0717-395627a6a196@gmx.de \
    --to=sox-users@lists.sourceforge.net \
    --cc=thomas@tensi.eu \
    /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