sox-users@lists.sourceforge.net unofficial mirror
 help / color / mirror / code / Atom feed
From: Jeff Learman <jjlearman@gmail.com>
To: thomas@tensi.eu, sox-users@lists.sourceforge.net
Subject: Re: Sine wave in an envelope
Date: Mon, 8 Jun 2020 15:24:14 -0400	[thread overview]
Message-ID: <CAGyjer5_0wb9ziRhjsZ--Et3P0B6pzFe+DZk6-yKrUG3Bqcsyw@mail.gmail.com> (raw)
In-Reply-To: <CAGyjer7ZcqDgD2yO3qLotFXpL2XRMnoaBDpy9PU8z-ZTUcpegg@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 2040 bytes --]

Ah, got it sorted:

LEN=0
OFFSET=0
LPHASE=40
RPHASE=90
FREQ=.75

For mono file:
    sox in.flac out.flac remix 1 1 synth $LEN $OFFSET $LPHASE sine amod
$FREQ $OFFSET $RPHASE sine amod $FREQ
For stereo file:
    sox in.flac out.flac synth $LEN $OFFSET $LPHASE sine amod $FREQ $OFFSET
$RPHASE sine amod $FREQ

Jeff

On Mon, 8 Jun 2020 at 08:20, Jeff Learman <jjlearman@gmail.com> wrote:

> Thanks.  Actually I'll have both mono and stereo cases, but was asking
> about the stereo case.  Of course I can split the stereo into two mono
> files.  I was hoping to do it in one line, which was the real question here
> -- the synth effect documentation says it can operate differently on
> different channels but I couldn't figure how to make that work.
>
> Jeff
>
> On Mon, 8 Jun 2020 at 07:13, Dr. Thomas Tensi <t.tensi@gmx.de> wrote:
>
>> 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
>>
>

[-- Attachment #1.2: Type: text/html, Size: 3036 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



[-- Attachment #3: Type: text/plain, Size: 158 bytes --]

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

      parent reply	other threads:[~2020-06-08 19:24 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
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 [this message]

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=CAGyjer5_0wb9ziRhjsZ--Et3P0B6pzFe+DZk6-yKrUG3Bqcsyw@mail.gmail.com \
    --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
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).