From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=AWL,BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_INVALID,DKIM_SIGNED, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, HTML_MESSAGE,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.sourceforge.net (lists.sourceforge.net [216.105.38.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 437861F55B for ; Mon, 8 Jun 2020 19:24:47 +0000 (UTC) Received: from [127.0.0.1] (helo=sfs-ml-1.v29.lw.sourceforge.com) by sfs-ml-1.v29.lw.sourceforge.com with esmtp (Exim 4.90_1) (envelope-from ) id 1jiNNy-0006DY-1m; Mon, 08 Jun 2020 19:24:42 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-1.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jiNNx-0006DM-2w for sox-users@lists.sourceforge.net; Mon, 08 Jun 2020 19:24:41 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Type:To:Subject:Message-ID:Date:From: In-Reply-To:References:MIME-Version:Sender:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=wsb4IPs/s5wrYMlTdUPBKjMd/zPOa7OHy53Q5diBDOk=; b=DFkVh8W12RTNne0YGfcJYHXwG PiHy9tlYwXYeLlIf+QqCaiha4afKwwQa4GeyV3teqPfb4eZssVQyEtvMJuZCw04cflaCt7eKr+JPS JGmyW1oHBoPGPj+6AQjn7c+EmJYcUh8Idb9+AX9v+IAdsWW8CB3XwPC3QPWpZ6bPrQvXI=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Type:To:Subject:Message-ID:Date:From:In-Reply-To:References: MIME-Version:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=wsb4IPs/s5wrYMlTdUPBKjMd/zPOa7OHy53Q5diBDOk=; b=hX0T0NZyfXusx9q6c/pNt9BK4q YmOQQnSb6FNJsiN4+I/8MuJVvDvTXkwIqfPN2e/qufgPI0UyDOOhk/Cvd43dgxSKLOvFXm79VEKNE KDv10UESQa7tUyhVvQvjVWbNR9pXEQKCFSqPvrfXNwZvMljI06tjQi0ChJtKiaFQL0xk=; Received: from mail-wr1-f45.google.com ([209.85.221.45]) by sfi-mx-3.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.92.2) id 1jiNNv-00DnJ6-7z for sox-users@lists.sourceforge.net; Mon, 08 Jun 2020 19:24:41 +0000 Received: by mail-wr1-f45.google.com with SMTP id p5so18683304wrw.9 for ; Mon, 08 Jun 2020 12:24:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=wsb4IPs/s5wrYMlTdUPBKjMd/zPOa7OHy53Q5diBDOk=; b=DlQjlXHog3QUPg78YF9inJTXeNXin/IDcdQP6hRgndCaybLPanMKklkO2GHSQSSDsD JFd0N0DYX8SPvY50FKrergJRZC3qrPHaMoMPlSgh2EkTsjDs2y71h0fus/sl4bzth4sk eAguUbbKDF+f0zCuVG+Vprb2GkdX2pPox9FDIlSQNcR6LsXBq1sGJ1XHuV3qxokTwk2x TgILeoWdq5yKbqissGeutdL8ICpbGAyBNdT8W1oEz6lH9Gb+J+m2GtigdBjXCpjBFRG+ Sgzq3UE8OytvKJgSDKLX0dw8EfsSadkNeitLLoDRTrNcajxLiS9Yf9EfglTKvcmB/P0y lJsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=wsb4IPs/s5wrYMlTdUPBKjMd/zPOa7OHy53Q5diBDOk=; b=t2J/srnwx/pxcAoPurGfPHDKWkZv5ITyTPSLYWgQfsTNcr2BCWRoptAiX6SGifn1Ly aXhgxVwH0OhoTq2vuFLKrOedThVFH3SniiV6ufB/f7W19Q+WQCye8Y/UJ+o6w+P1tQLp kv347tnKFXpS3rjc6CtU8M7/E1rJrHVsljo7q9Cb7hbzJ14pFhIzhAmk1/OYbCplx6sz 2D0yLzuYBN8UQc065xTN4QGC1YVj238NWExYd7H56kixI6iIMNUR2ZYtVTZuby92lfI3 wU9i2OPGCzSD1WIPjymWRyAjE6sF3WxkMkAehbgNS+4VJZzzxRs7bqx0Z1xvjJ9jrQEh Dz1Q== X-Gm-Message-State: AOAM530C4fX2SQ662m9hx6AjIV72/l+xT5980uy+SVlWoLG6F6ymLdPq S86JWir5fh85ENdjP6sKyFlHdeUY8nQAZ3iCL3MoVGU9dw== X-Google-Smtp-Source: ABdhPJzc4q2ljiugm/KSu18xsBS8MO0cWOHGP7Cb2fGl84f3i38wRUakKCAJbWOxiXzv1+/ur6aTi+eZLZx6nb664T4= X-Received: by 2002:adf:9404:: with SMTP id 4mr288311wrq.367.1591644265865; Mon, 08 Jun 2020 12:24:25 -0700 (PDT) MIME-Version: 1.0 References: <72549934-94d1-6b25-19e8-54cef71361f6@gmx.de> <88bb31d9-33a9-1b91-0717-395627a6a196@gmx.de> In-Reply-To: From: Jeff Learman Date: Mon, 8 Jun 2020 15:24:14 -0400 Message-ID: To: thomas@tensi.eu, sox-users@lists.sourceforge.net X-Headers-End: 1jiNNv-00DnJ6-7z Subject: Re: Sine wave in an envelope X-BeenThere: sox-users@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: sox-users@lists.sourceforge.net Content-Type: multipart/mixed; boundary="===============8126219260748554266==" Errors-To: sox-users-bounces@lists.sourceforge.net --===============8126219260748554266== Content-Type: multipart/alternative; boundary="0000000000001363b905a7978f93" --0000000000001363b905a7978f93 Content-Type: text/plain; charset="UTF-8" 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 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 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 >> > --0000000000001363b905a7978f93 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Ah, got it sorted:

LEN=3D0OFFSET=3D0
LPHASE=3D40
RPHASE=3D90
FREQ=3D.75

For mono fi= le:
=C2=A0 =C2=A0 sox in.flac out.flac remix 1 1 synth $LEN $OFFSET $LPH= ASE sine amod $FREQ $OFFSET $RPHASE sine amod $FREQ
For stereo file:
= =C2=A0 =C2=A0 sox in.flac out.flac synth $LEN $OFFSET $LPHASE sine amod $FR= EQ $OFFSET $RPHASE sine amod $FREQ

Jeff
<= /div>
O= n Mon, 8 Jun 2020 at 08:20, Jeff Learman <jjlearman@gmail.com> wrote:
Thanks.=C2=A0 Actually I&= #39;ll have both mono and stereo cases, but was asking about the stereo cas= e.=C2=A0 Of course I can split the stereo into two mono files.=C2=A0 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.

J= eff

On Mon, 8 Jun 2020 at 07:13, Dr. Thomas Tensi <t.tensi@gmx.de> wrote:
Hello Jeff,


you wrote:
=C2=A0> > [similar problem as amplitude modulating a sine wave]
=C2=A0> I want to produce a stereo tremolo by using the sine amod
=C2=A0> 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?<= br> To paraphrase your solution:

-----
INFILE=3Drd73_064__E4_082.flac
OUTFILE=3Dx.flac
tempfileLeft=3Dleft.flac
tempfileRight=3Dright.flac

LEN=3D0
OFFSET=3D0
phaseLeft=3D0
phaseRight=3D180

# sox command fragments
tremPrefix=3Dsynth $LEN $OFFSET
tremSuffix=3D2 sine amod 0.5

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

Is this what you wanted?


=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Best regards,

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Thomas


_______________________________________________
Sox-users mailing list
Sox-us= ers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/s= ox-users
--0000000000001363b905a7978f93-- --===============8126219260748554266== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============8126219260748554266== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Sox-users mailing list Sox-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sox-users --===============8126219260748554266==--