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 07:23:16 -0500 Message-ID: References: <20160805103840.GA9368@starla> 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 1470399923 12023 195.159.176.226 (5 Aug 2016 12:25:23 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 5 Aug 2016 12:25:23 +0000 (UTC) To: sox-users@lists.sourceforge.net Original-X-From: sox-users-bounces@lists.sourceforge.net Fri Aug 05 14:25:19 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.179 as permitted sender) client-ip=209.85.217.179; envelope-from=jhaynes9@gmail.com; helo=mail-ua0-f179.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=9O6eRaMoG/OQ76x+acefT97Bq/qz3NWQsFwT3dHbb5k=; b=YwD29A2hmsDbYyhLEBIAlyDTR9GtRlKktCr5eakA7/PhfD1pXZ36IEYS3L4WHp1YVC hpQdMxzIJ6I7I/LqPy+xYgzWAs32BzNDfVGZk0JLlQ2aYrsW65HEfw4rm208F+1UAgK2 OEhKHFqB44ib3hd2BSOXWjMicaozSwRF4UjJzwCEuKcalDhTMytqXxtIhfwVviBa7Bus 3c6f7KzufmuEJ/o/oun1qtiK6AKqfNUuyPJ31u/I68z1NEx1ZnTCq4dJQ9c44Z+pbEMY o/FBINWK4n7dK2WfgoNktRqxa/DDpAe8pbASYdml1qebiOIV1cKnmRwm32g72GRB9+GN MmHQ== X-Gm-Message-State: AEkoouveySMyBG00Kv2zmCyAq8j3l+2p2mgnKDncAwXDGeOmouMrNnaXVhFybm6txWGG1gA2xuJ/vnDRvlCEjw== X-Received: by 10.176.65.1 with SMTP id j1mr41469474uad.102.1470399796738; Fri, 05 Aug 2016 05:23:16 -0700 (PDT) In-Reply-To: <20160805103840.GA9368@starla> X-Google-Sender-Auth: vyxHe1NfK-sGdZq_yR2GcducheA X-Headers-End: 1bVe9q-000626-H3 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:6205 Archived-At: Received: from lists.sourceforge.net ([216.34.181.88]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bVeA0-0000FB-QV for gcas-sox-users@gmane.org; Fri, 05 Aug 2016 14:23:33 +0200 Received: from localhost ([127.0.0.1] helo=sfs-ml-4.v29.ch3.sourceforge.com) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1bVe9s-0004lZ-1L; Fri, 05 Aug 2016 12:23:24 +0000 Received: from sog-mx-3.v43.ch3.sourceforge.com ([172.29.43.193] helo=mx.sourceforge.net) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1bVe9r-0004lU-9x for sox-users@lists.sourceforge.net; Fri, 05 Aug 2016 12:23:23 +0000 Received: from mail-ua0-f179.google.com ([209.85.217.179]) by sog-mx-3.v43.ch3.sourceforge.com with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) id 1bVe9q-000626-H3 for sox-users@lists.sourceforge.net; Fri, 05 Aug 2016 12:23:23 +0000 Received: by mail-ua0-f179.google.com with SMTP id i31so50902784uai.2 for ; Fri, 05 Aug 2016 05:23:22 -0700 (PDT) Received: by 10.176.3.246 with HTTP; Fri, 5 Aug 2016 05:23:16 -0700 (PDT) Thank you Eric. I appreciate the follow-up. On Fri, Aug 5, 2016 at 5:38 AM, Eric Wong wrote: > > See the short SYNOPSIS at the top of the manpage, > many people probably skip over it :) > >> Is there a way to tell direct this output to a file instead of playing >> to system audio? > > Same as play, almost: > > sox "|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" \ > output.wav > > Basically, "play $INPUTS" is the same as "sox $INPUTS -t $FORMAT" > > So if you use alsa, the following should behave just like play > did for you: > > sox "|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" \ > -t alsa ------------------------------------------------------------------------------