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 E846C1F55B for ; Sun, 7 Jun 2020 21:06:19 +0000 (UTC) Received: from [127.0.0.1] (helo=sfs-ml-4.v29.lw.sourceforge.com) by sfs-ml-4.v29.lw.sourceforge.com with esmtp (Exim 4.90_1) (envelope-from ) id 1ji2Ug-00056d-4h; Sun, 07 Jun 2020 21:06:14 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-4.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ji2Ue-00056W-Og for sox-users@lists.sourceforge.net; Sun, 07 Jun 2020 21:06:12 +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=WsycSimgRGI/X4t77bITS4VIhNKlNnU/AuoBeJPs/mQ=; b=VwZ1l4fEynj0iwX6UfvylRWUe W0/6zdvslU6rnTrQe8EVYHzM4uyQc0d+2R1g1H9MDwcnaqPZT8XdsDAHtj0LCxqU1OVlnW3zojlZx AZ9Q/tPcdd3SKqn1hskvRUFAsM/jqITuCMQfdd2eW1vQSQrePLyPkV8iHl6HKSuAGldmo=; 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=WsycSimgRGI/X4t77bITS4VIhNKlNnU/AuoBeJPs/mQ=; b=TrY4s/PLXTPR1UZynQ0G0gZed+ Pn2TP0VLH6sBpKM98TQDTIGH3OJnPFCxS0AN1+qd2i3BhlLvYp4FYq8q1PPt6lGoxaQU6MomABLFV LIOLdrbJH1EWEWPDlVCo97vpImPgAyHKiZ1Owf4MOCoGH+Xh14fCQX3DpzRKFb4kY1Dg=; Received: from mail-wm1-f46.google.com ([209.85.128.46]) by sfi-mx-4.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.92.2) id 1ji2Ua-00FN5L-QL for sox-users@lists.sourceforge.net; Sun, 07 Jun 2020 21:06:12 +0000 Received: by mail-wm1-f46.google.com with SMTP id u26so12915623wmn.1 for ; Sun, 07 Jun 2020 14:06:08 -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=WsycSimgRGI/X4t77bITS4VIhNKlNnU/AuoBeJPs/mQ=; b=Wrp2vxWza9GoSVEK/aXk5PZPG5bfd60dUwhWLnPH8LZae0/5B6h6dTLFAww0iyyeEv 2XZTVoP6f0WNrpBWfW64ieKOpbUd5UfNJoaDUnbjgJOvZ2B47ZfIxmAPE8EJ9gWnmew/ RWWZFIevVxmosAKaGfdEEcxrilYfM/oHrUUSSHTEktDNMITNWO8cFOw8lpdWaheqZJOY VAhz8EODEVGc6z5cmVtQX9PsGJxv6OjvmynDS2+DlEauIpRH7oJLQthrtJQzAetwT/pC LFjRFYKXHxs0fohiXlSmFQtmQbANrzkhRrX1YnH2oyyufMf98oDoEcVDFtm/scD2TeiP fhag== 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=WsycSimgRGI/X4t77bITS4VIhNKlNnU/AuoBeJPs/mQ=; b=WEsBNVyV5IWH53CYCzTvnjtXsnr5ZYjyv/KyHW+ycv/X8nuwvGK5AbbiF60847JFHm mzY96lDIDlntZRIVvmt7t7X2YYVBAMD3jCl8eYKiySD2rwteTd937IV57+boOb6H12nB gy4JTDywqXc+0U/tt4xByrqPJySXswkklh9FJB29j+CYBh0mL8x7jPVR82iDZ3tNyYsz ftJEuZk/xaMGKfLEoikz9fv0RtZHocJN0PUo98Cw/UjuhIeBhq+GbK5Ux9BOH8DeE6iX lAQjOa5GTT6SUKuGUuOA9TN805lFCamc+QRsv3aI4wbjHYfWv0GT3ppzDxwncsg/pz7g wk6g== X-Gm-Message-State: AOAM530Qk0WJDPqt90ntm1UALyo11KfcoYusORWe4heBnPfRuNjs2vQO ZBk7F28tI8N7E/ROZW1iYar79MJAoYjq/T8qjAeb+lNYYQ== X-Google-Smtp-Source: ABdhPJwdTji7mA2yURQfPCHTSbP1o3cxf48Kk+rdPzfDFRx3bXyNcijXyKiqnEnHX+D19wr7CdlEaQYgHOQ58hXfme0= X-Received: by 2002:a7b:c343:: with SMTP id l3mr4845156wmj.178.1591563962285; Sun, 07 Jun 2020 14:06:02 -0700 (PDT) MIME-Version: 1.0 References: <72549934-94d1-6b25-19e8-54cef71361f6@gmx.de> In-Reply-To: <72549934-94d1-6b25-19e8-54cef71361f6@gmx.de> From: Jeff Learman Date: Sun, 7 Jun 2020 17:05:50 -0400 Message-ID: To: sox-users@lists.sourceforge.net X-Headers-End: 1ji2Ua-00FN5L-QL 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="===============1671124810409876523==" Errors-To: sox-users-bounces@lists.sourceforge.net --===============1671124810409876523== Content-Type: multipart/alternative; boundary="0000000000009c023705a784dc55" --0000000000009c023705a784dc55 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, I'm trying to do a very similar thing but modulating the audio from a file. I want to produce a stereo tremolo by using the sine amod effect, out of phase on the left and right channels. LEN=3D0 OFFSET=3D0 PHASE=3D0 PHASE2=3D180 The following works for mono, producing the desired tremolo in mono: sox rd73_064__E4_082.flac x.flac synth $LEN $OFFSET $PHASE 2 sine amod 0.5 I thought the following would work for stereo: sox rd73_064__E4_082.flac x.flac synth $LEN $OFFSET $PHASE2 2 sine amod $LEN $OFFSET $PHASE2 but I get a parameter error. Any suggestions? Thanks! On Wed, 3 Jun 2020 at 10:34, Dr. Thomas Tensi 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=C2=B0. > > 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 > --0000000000009c023705a784dc55 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi, I'm trying to do a very similar thing but mod= ulating the audio from a file.=C2=A0 I want to produce a stereo tremolo by = using the sine amod effect, out of phase on the left and right channels.
LEN=3D0
OFFSET=3D0
PHASE=3D0
PHASE2= =3D180
The following works for mono, producing the= desired tremolo in mono:=C2=A0 sox rd73_064__E4_082.flac x.flac synth $LEN= $OFFSET $PHASE 2 sine amod 0.5
I thought the following would= work for stereo: sox rd73_064__E4_082.flac x.flac synth $LEN $OFFSET $PHAS= E2 2 sine amod=20 $LEN $OFFSET $PHASE2

but I get a parameter err= or.=C2=A0 Any suggestions?

Thanks!
=
On Wed= , 3 Jun 2020 at 10:34, Dr. Thomas Tensi <t.tensi@gmx.de> wrote:
Hello Darryl,


you wrote:
=C2=A0> [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%

=C2=A0 =C2=A0sox -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=C2=B0.

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:

=C2=A0 =C2=A0sox -n -b 24 -r 44100 test.wav synth 20 sine 1500 synth 20 sin= e 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!


=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
--0000000000009c023705a784dc55-- --===============1671124810409876523== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============1671124810409876523== 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 --===============1671124810409876523==--