生成MAC命令行特定频率的音 [英] Generate tones of specific frequency on mac command line
问题描述
我需要生成命令行上的给定频率的音符
I need to generate musical notes of a given frequency on the command line
下面是音符 HTTP频率的列表://www.phy。 mtu.edu/~suits/notefreqs.html
例如:
$ some-app -frequency 523.25 -timeinseconds 3
它可以是原生的Mac,Python或Ruby工具。越少的库,我需要再安装好。也许我可以做一些与Mac?或说afplay
It can be native mac, python or ruby tool. The fewer libraries I need to install then better. Maybe i can do something with mac: say or afplay?
这将用于其他项目,该项目将发送音符,我想听到它,而与它一起工作。
This will be used for other project that will send music notes, and I want to hear it while working with it.
推荐答案
这很简单,老无人维护,但看看<一个href=\"https://github.com/psycotica0/tone-generator\">https://github.com/psycotica0/tone-generator
It's simple, old and unmaintained but take a look at https://github.com/psycotica0/tone-generator
$ brew install sdl
$ git clone https://github.com/psycotica0/tone-generator.git
$ cd tone-generator && make
$ ./generator 2600 2
这篇关于生成MAC命令行特定频率的音的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!