From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Pierow Newsgroups: gmane.comp.audio.sox Subject: Re: =?utf-8?q?Question_about_syntax_for_--sox=E2=88=92pip?= =?utf-8?q?e_with_output_to_file?= Date: Fri, 5 Aug 2016 05:00:52 -0500 Message-ID: References: Reply-To: sox-users@lists.sourceforge.net NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1470391294 14495 195.159.176.226 (5 Aug 2016 10:01:34 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 5 Aug 2016 10:01:34 +0000 (UTC) To: sox-users@lists.sourceforge.net Original-X-From: sox-users-bounces@lists.sourceforge.net Fri Aug 05 12:01:26 2016 Return-path: Envelope-to: gcas-sox-users@gmane.org Received-SPF: pass (sog-mx-3.v43.ch3.sourceforge.com: domain of gmail.com designates 209.85.217.177 as permitted sender) client-ip=209.85.217.177; envelope-from=jhaynes9@gmail.com; helo=mail-ua0-f177.google.com; X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to; bh=E0uBfQBHw9541xssQlbW/EE5XrkruoLzp6WWgVREjkM=; b=h4ExPZnb2rpBkVAxZ2yV+CEsH++LaBzi26OhXIwEkn+tMxGLW0MxuPoHVaC2UTUn2q MtMR3c1hU5MtmqKoPsmdclW41XuH4l8hTlxouou93QsMXCN6eacKBzbxsXytGK+LVPsL EYGZ2jKeRLuNjgPez0jkgaP5O3JmU55JND/wfO9zoV/h9+O2Q57u3GdanN7Ms8zC24jY Yn5Eps7rNG4ugGazGx8EiUMN5pyK5alE+unuLmmZbOJgmkjQzonQYd2langVbEOYRpW/ PCcl7h25yKBODhejGlB6MfS5Jre9x/VtAPWdzJLhJ1IwHrlIa9r1Xc2CffxWjPFv7djL XIRA== X-Gm-Message-State: AEkoous1LmdwI+LOkm5GNnuILf+W1LteIVC9uGYwKAs4/tr1L+6WjK+2pcodx4oEkwEFlwOk9Go3JG8hgwaAyQ== X-Received: by 10.176.65.1 with SMTP id j1mr41132933uad.102.1470391252800; Fri, 05 Aug 2016 03:00:52 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: 3NaFa4eV3sy1BcF4iKkN_ZyR9MU X-Headers-End: 1bVbw2-0002I1-Im X-BeenThere: sox-users@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: sox-users-bounces@lists.sourceforge.net Xref: news.gmane.org gmane.comp.audio.sox:6203 Archived-At: Received: from lists.sourceforge.net ([216.34.181.88]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bVbwJ-0001TT-GT for gcas-sox-users@gmane.org; Fri, 05 Aug 2016 12:01:15 +0200 Received: from localhost ([127.0.0.1] helo=sfs-ml-2.v29.ch3.sourceforge.com) by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1bVbw8-0001P4-Pl; Fri, 05 Aug 2016 10:01:04 +0000 Received: from sog-mx-3.v43.ch3.sourceforge.com ([172.29.43.193] helo=mx.sourceforge.net) by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1bVbw8-0001Oz-2D for sox-users@lists.sourceforge.net; Fri, 05 Aug 2016 10:01:04 +0000 Received: from mail-ua0-f177.google.com ([209.85.217.177]) by sog-mx-3.v43.ch3.sourceforge.com with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) id 1bVbw2-0002I1-Im for sox-users@lists.sourceforge.net; Fri, 05 Aug 2016 10:01:04 +0000 Received: by mail-ua0-f177.google.com with SMTP id 35so194041322uap.1 for ; Fri, 05 Aug 2016 03:00:58 -0700 (PDT) Received: by 10.176.3.246 with HTTP; Fri, 5 Aug 2016 03:00:52 -0700 (PDT) My apologies. I had an error in my command that got clobbered when I copied and pasted. With that (admittedly very silly) mistake corrected, I am now able to write the output directly to a file by simply appending a filename. Clearly I need more sleep. :) On Thu, Aug 4, 2016 at 7:57 PM, Pierow wrote: > I am using -p to pipe a series of three SoX commands that generate three tones: > > play "|sox -n -p synth .276 sine 1200 gain -1" "|sox -n -p synth .276 > sine 900 gain -1" "|sox -n -p synth .380 sine 1200 gain -1" > > I would like to output the resulting three tones to a WAV file. I'm > sure that this is something that is easy to do but nothing that I have > tried seems to work. I have read the man page and searched through > the archives of the mailing list but I can't seem to find anything > that works with the piped commands. > > Is there a way to tell direct this output to a file instead of playing > to system audio? > > Thanks! ------------------------------------------------------------------------------