sox-users@lists.sourceforge.net unofficial mirror
 help / color / mirror / code / Atom feed
From: "Måns Rullgård" <mans@mansr.com>
To: Noah Essl <arche1@gmx.at>
Cc: sox-users@lists.sourceforge.net
Subject: Re: playing more than 2 sounds with synth option
Date: Tue, 11 Aug 2020 15:02:52 +0100	[thread overview]
Message-ID: <yw1xtux9uvoz.fsf@mansr.com> (raw)
In-Reply-To: <05d925ef-164f-8e00-03ac-6c5aa93bfe00@gmx.at> (Noah Essl's message of "Tue, 11 Aug 2020 14:34:34 +0200")

Noah Essl <arche1@gmx.at> writes:

> On 8/10/20 7:36 PM, Måns Rullgård wrote:
>> Noah Essl <arche1@gmx.at> 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åns Rullgård


_______________________________________________
Sox-users mailing list
Sox-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users

  reply	other threads:[~2020-08-11 14:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-10 15:57 playing more than 2 sounds with synth option Noah Essl
2020-08-10 17:36 ` Måns Rullgård
2020-08-11 12:34   ` Noah Essl
2020-08-11 14:02     ` Måns Rullgård [this message]
2020-08-10 19:03 ` Jan Stary

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://lists.sourceforge.net/lists/listinfo/sox-users

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=yw1xtux9uvoz.fsf@mansr.com \
    --to=sox-users@lists.sourceforge.net \
    --cc=arche1@gmx.at \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/sox.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).