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.5 required=3.0 tests=AWL,BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H2,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 C457E1F66E for ; Tue, 11 Aug 2020 14:03:21 +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 1k5Uru-0004tl-Qk; Tue, 11 Aug 2020 14:03:10 +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 1k5Urs-0004tQ-Mt for sox-users@lists.sourceforge.net; Tue, 11 Aug 2020 14:03:08 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Transfer-Encoding:Content-Type:MIME-Version :Message-ID:In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To: 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=kQIzck0mpJX/PH1Jn4Rh8qXhPDGRZQYOS1yMwwzsgug=; b=OKD7dsAS72L+8/Y3/7OaTYv+MC o6RHxQsriSQfMIcbqw1ICypT5vtwuZr1+Fx9uM9wKsEgvd9Um7qIgfmjJCQ3zv6aypWQeHCRNXHS9 nOSdRRgIWPaxCwGNzMzH1CJqq4qjVsRfKlQiK4jSxx18UtEq/BiiZw3HY0S2aCXDebn0=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID: In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To: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=kQIzck0mpJX/PH1Jn4Rh8qXhPDGRZQYOS1yMwwzsgug=; b=k1lQQVGZBZM3Ikt9bWjX72OgFk rLOU8T0JHbFh8uUyoy0qlCeBfjqaSqgwHBgSrUAgvk6eCxL3r4+BG6ysSsPOEehpRfF9NIz7KBcId qdxCY8NYmTuAR7bMW/4gu3pirgNH7uDluPuCUTmWNAVZRrCOqPuRd0IahfVtwd68Rb8M=; Received: from unicorn.mansr.com ([81.2.72.234]) by sfi-mx-1.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92.2) id 1k5Uro-00188o-Mq for sox-users@lists.sourceforge.net; Tue, 11 Aug 2020 14:03:08 +0000 Received: from raven.mansr.com (raven.mansr.com [81.2.72.235]) by unicorn.mansr.com (Postfix) with ESMTPS id 2FFD715360; Tue, 11 Aug 2020 15:02:52 +0100 (BST) Received: by raven.mansr.com (Postfix, from userid 51770) id 2408821A6F2; Tue, 11 Aug 2020 15:02:52 +0100 (BST) From: =?iso-8859-1?Q?M=E5ns_Rullg=E5rd?= To: Noah Essl References: <301f169b-bcd4-0c13-fcf9-9780bd30d8b7@gmx.at> <05d925ef-164f-8e00-03ac-6c5aa93bfe00@gmx.at> Date: Tue, 11 Aug 2020 15:02:52 +0100 In-Reply-To: <05d925ef-164f-8e00-03ac-6c5aa93bfe00@gmx.at> (Noah Essl's message of "Tue, 11 Aug 2020 14:34:34 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 X-Headers-End: 1k5Uro-00188o-Mq Subject: Re: playing more than 2 sounds with synth option 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 Cc: sox-users@lists.sourceforge.net Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Errors-To: sox-users-bounces@lists.sourceforge.net Noah Essl writes: > On 8/10/20 7:36 PM, M=E5ns Rullg=E5rd wrote: >> Noah Essl writes: >> >>> Hi! >>> >>> I am playing 2 frequencies like this: >>>> play -qn synth $a_number_variable sine $sound_1 sine $sound_2 fade h >>> $some $random $numbers >>> >>> and I am trying to play even more sounds like: >>>> play -qn synth $a_number_variable sine $sound_1 sine $sound_2 sine >>> $sound_3 sine $sound_4 >>> or like: >>>> play -qn synth $a_number_variable sine $sound_1 sine $sound_2 synth >>> sine $sound_3 sine $sound_4 >>> >>> but that doesn't work. How would I do it to play 4 frequencies parallel >>> with the same command? Is there no support for that and if so, why limit >>> it to 2? >>> >>> Thanks in advance for any help! >> Your commands create a new channel for each tone. If you want to mix >> them you can do that in a few ways. One is like this: >> >> $ play -n synth 10 sine 1k synth sine mix 2k synth sine mix 3k >> >> Another way: >> >> $ play -n synth 10 sine 1k sine 2k sine 3k remix - >> >> If that's not what you're looking for, you'll have to describe in more >> detail what you're trying to achieve. >> > Thanks for your input! > I tried several ways and I liked the "remix -" option the most. > > What am I doing: I am programming a 4-voiced random music generator (in > bash) that endlessly plays in the background bc I am fed up with > available music. > Wanna try it: https://github.com/noahsmindfuck/random_music_generator > > Is there a way to make the sounds sound like a piano instead of a pure > sine? Or can i actually import/use preexisting curves of existing > instruments (e.g. the 'pluck' that plays a guitar)? Try 'pluck' instead of 'sine' in the synth command. -- = M=E5ns Rullg=E5rd _______________________________________________ Sox-users mailing list Sox-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sox-users