5 ms·
I keep this in my .bashrc alias brownnoise='play -n synth brownnoise synth pinknoise mix synth sine amod 0.3 10' It sounds like waves gently coming ashore. I
by mod 4y ago
I keep this in my .bashrc
alias brownnoise='play -n synth brownnoise synth pinknoise mix synth sine amod 0.3 10'
It sounds like waves gently coming ashore.
I'm sure I collected it somewhere here on HN, because I don't know anything about how the command works.
Edit: I have these, too, and I like them all:
alias whitenoise='play -q -c 2 -n synth brownnoise band -n 1600 1500 tremolo .1 30'
alias pinknoise='play -t sl -r48000 -c2 -n synth -1 pinknoise .1 80'
- ineedasername 4y agoNot in front of my Linux box right now, are these tools built in or part of stand repository?
- deleted 4y ago[deleted]
- mod 4y agoThese are just using the 'play' command, the aliases are just so I don't have to remember the arguments. Play is a standard package from your package manager
- deleted 4y ago[deleted]
- nannal 4y agoIt's part of SoX which may be in your repo depending on which distro you use.
- disabled 4y agoPersonally, I just use brew to install SoX on Ubuntu. brew is a really nice package installer that works with both MacOS and Linux.
- kzrdude 4y agosox is in the default repository (for example jammy/universe). And it will be suggested as an install if you try to run play when it's not installed. So brew, any "killer apps" on brew for linux? What's nice to get from there?
- LoganDark 4y agoLinuxbrew is pretty convenient for installing dependencies, especially on "stable" distributions like Debian/Ubuntu. You can install specific versions of dependencies that you want, even keep them side-by-side. It's also distro-agnostic, so it works almost everywhere.
- kzrdude 4y agoLooks interesting. It both says that installing without sudo is a feature, which sounds neat, and that installing into ~/.linuxbrew is an unsupported feature. # On Linux, it installs to /home/linuxbrew/.linuxbrew if you have sudo access # and ~/.linuxbrew (which is unsupported) if run interactively. HOMEBREW_PREFIX_DEFAULT="/home/linuxbrew/.linuxbrew" HOMEBREW_CACHE="${HOME}/.cache/Homebrew"
- philshem 4y agoMacOS users can get get "play" by installing SoX (Sound eXchange) brew install sox
- mod 4y agoThanks, I should have realized searching for "play" in a package manager was going to be a poor user experience. I think it must be installed by default in my distro.
- duncancarroll 4y agoWow these are great, thank you