Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/widdershin/sonic-pi-cli
A simple command line interface for Sonic Pi, written in Ruby
https://github.com/widdershin/sonic-pi-cli
Last synced: 12 days ago
JSON representation
A simple command line interface for Sonic Pi, written in Ruby
- Host: GitHub
- URL: https://github.com/widdershin/sonic-pi-cli
- Owner: Widdershin
- License: mit
- Created: 2015-02-08T13:49:14.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2020-12-02T01:33:30.000Z (almost 4 years ago)
- Last Synced: 2024-10-23T04:57:37.334Z (21 days ago)
- Language: Ruby
- Homepage:
- Size: 27.3 KB
- Stars: 142
- Watchers: 11
- Forks: 21
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
sonic-pi-cli
====A simple command line interface for Sonic Pi, written in Ruby.
**Requires Sonic Pi v2.7 or higher**.
ver 0.1.3 allows compatibility with Sonic Pi v3.2: tested on Linux, Raspberry Pi and Windows
Installation
-------gem install sonic-pi-cli
Usage
-----Sonic Pi must be running, as this is just a client.
sonic_pi play 50
sonic_pi sample :loop_breakbeat, rate: 0.5
sonic_pi stopor
echo 'sample :loop_amen' | sonic_pi
cat music.rb | sonic_pior
$ irb
irb(main):001:0> require 'sonic_pi'
=> true
irb(main):002:0> SonicPi.new.run('play [50, 55, 60]')
=> 36License
------sonic-pi-cli is released under the MIT license. See LICENSE file for more details.
Alternatives
------
[lpil/sonic-pi-tool](https://github.com/lpil/sonic-pi-tool) - written in Rust, also supports viewing logs.Thanks to Sam Aaron for creating Sonic Pi. Official command line support is planned for Sonic Pi 3.0.
For those interested, the code weighs in at around 120 lines and is stupid simple. Take a look.