A simple and functional CLI for Sonic Pi, written in Ruby.

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 stop

or

    echo 'sample :loop_amen' | sonic_pi
    echo music.rb | sonic_pi

or

    $ irb

    irb(main):001:0> require 'sonic_pi'
    => true
    irb(main):002:0> SonicPi.new.run('play [50, 55, 60]')
    => 36

License
------

sonic-pi-cli is released under the MIT license. See LICENSE file for more details.

Todo
----

- [ ] Tests
- [x] Command line help
- [x] Stop command


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 100 lines and is stupid simple. Take a look.


sonic-pi-cli
-----------

A simple and functional CLI for Sonic Pi, written in Ruby.

[![Join the chat at https://gitter.im/Widdershin/sonic-pi-cli](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/Widdershin/sonic-pi-cli?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

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 stop

or

    echo 'sample :loop_amen' | sonic_pi
    echo music.rb | sonic_pi

or

    $ irb

    irb(main):001:0> require 'sonic_pi'
    => true
    irb(main):002:0> SonicPi.new.run('play [50, 55, 60]')
    => 36

License
------

sonic-pi-cli is released under the MIT license. See LICENSE file for more details.

Todo
----

- [ ] Tests
- [x] Command line help
- [x] Stop command


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 100 lines and is stupid simple. Take a look.


Add gitter badge to readme
Add gitter badge to readme