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 C5FBD1F55B for ; Mon, 8 Jun 2020 12:21:11 +0000 (UTC) Received: from [127.0.0.1] (helo=sfs-ml-2.v29.lw.sourceforge.com) by sfs-ml-2.v29.lw.sourceforge.com with esmtp (Exim 4.90_1) (envelope-from ) id 1jiGm1-00088K-Fj; Mon, 08 Jun 2020 12:21:05 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-2.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jiGm0-000889-B4 for sox-users@lists.sourceforge.net; Mon, 08 Jun 2020 12:21:04 +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=u27oQEMhrinxYo46FdOHYuWb+8SLyAW5GIbiSOHxqjU=; b=Jl+64jlns3lai5oTolMAmUVqg wS2W4kKrZbZr6O6xRk8bNfU3fq9HufwfGo1cQNl0Gm8Tb2d90oX6OHJF4qHYBLpFdNuwD+ANZr00U MAwuizi2TKQ4Ml/9X6oaT5STT5KOA/fvrIhn790m9X78NcrseHJ44xSRTgRBzKrapimMg=; 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=u27oQEMhrinxYo46FdOHYuWb+8SLyAW5GIbiSOHxqjU=; b=iOwJzlraqrH4UV3GmRkuXI0O5L Y6foi1r/ORJ4AH/fQdcU50l1IGEy3wh3IcaUplZr1KSK8+B1ejnHrwV2vkptBGBCNIbF2hw0kDLas O/lv8CofJmpWOFmDthFrhWSkIUUQB4NoGIpMPTvVJonmdMtKBwd9+Ah6SF1eTo0xZfZQ=; Received: from mail-wr1-f43.google.com ([209.85.221.43]) by sfi-mx-3.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.92.2) id 1jiGly-00DQUg-QY for sox-users@lists.sourceforge.net; Mon, 08 Jun 2020 12:21:04 +0000 Received: by mail-wr1-f43.google.com with SMTP id l11so17177868wru.0 for ; Mon, 08 Jun 2020 05:21:02 -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=u27oQEMhrinxYo46FdOHYuWb+8SLyAW5GIbiSOHxqjU=; b=WoFBZej+j/5l9HF7O99xARxo5KStuZLP9+nClgRIu+GtwXz6Bzcx6X717E74GObqts NxQBmQDcNR3XwaYMwRJVetj0dtn4OwmqB4lkI5tSSJXJKU0wGtnTNYbWapuPk8EaT+WB SXSW0zdnY8Iy1a4z32WP/VWHctZKI+NvszlCZI7jIKCAZvzTTgPNgxBnIMpnTqsdFbUi OWWLz9JBqri7MGbkMItOI/m+vUIqXtqnNwX1UID3SAACRZOsBEfVigo31ADI7GRJmNcX 2a9t+9fgYPr8IqGogaJul1QCIT8OknjFYIiVjH0nKu7q4j0L6OrPo61UJTfztVqLVOtT haMQ== 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=u27oQEMhrinxYo46FdOHYuWb+8SLyAW5GIbiSOHxqjU=; b=DlvF8S3p57VG8pFhAxXk1wPcnAtkkcoU6HsKNJmPJHTC0eBJXVjtZAzPto4+8HTBqt aUxOjtJEbwaT0BeznnzFMWqD07txQ7fFwRL7exEDWgFJl1rcXWN4VAUWR0AqdXtcUsuk IqC9D3LbtAPhNNU4Fo3tE2c6J2qW0Udpwi8ukaFgL2ZfpoD2T4Cn1otyGpqnrqiv8vTr PLHC0EB4aceSjIS6Id9Pwzn4rVtkCmqnFTzthEKAW3WYJ8FEvFLuPfj23vbMVy5utuN/ j14zmG5bGWYntgBGAqr8sJTQmVcqOBCs1JUb7awAg6af30wp56FKYHq3nxW4HK2n8K7z mpxQ== X-Gm-Message-State: AOAM533HS3MFno1gnVatioC2oprHGuwueA9/HR2GSdYDtlFyz1qQ6Oz8 RUrZ6N1zhi4TlDoR53Ma1WGXXYNo/UVi9x+v1YieS48= X-Google-Smtp-Source: ABdhPJw7ouHDVuIV/lfZxMyofDxBYGa7vKj96bOvZH0EJlS8LAVD43w03RXTnnMpP/9E0q8L1Lay0vYmCdBL8jdE+/4= X-Received: by 2002:a5d:49c4:: with SMTP id t4mr22744361wrs.127.1591618856494; Mon, 08 Jun 2020 05:20:56 -0700 (PDT) MIME-Version: 1.0 References: <72549934-94d1-6b25-19e8-54cef71361f6@gmx.de> <88bb31d9-33a9-1b91-0717-395627a6a196@gmx.de> In-Reply-To: <88bb31d9-33a9-1b91-0717-395627a6a196@gmx.de> From: Jeff Learman Date: Mon, 8 Jun 2020 08:20:45 -0400 Message-ID: To: thomas@tensi.eu, sox-users@lists.sourceforge.net X-Headers-End: 1jiGly-00DQUg-QY 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="===============1466164920150492213==" Errors-To: sox-users-bounces@lists.sourceforge.net --===============1466164920150492213== Content-Type: multipart/alternative; boundary="0000000000008f287805a791a41d" --0000000000008f287805a791a41d Content-Type: text/plain; charset="UTF-8" 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 > --0000000000008f287805a791a41d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks.=C2=A0 Actually I'll have both mono and st= ereo cases, but was asking about the stereo case.=C2=A0 Of course I can spl= it 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 ho= w to make that work.

Jeff

On Mon, 8 Jun 2= 020 at 07:13, Dr. Thomas Tensi <t.tens= i@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
--0000000000008f287805a791a41d-- --===============1466164920150492213== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============1466164920150492213== 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 --===============1466164920150492213==--