• Stars
    star
    141
  • Rank 259,971 (Top 6 %)
  • Language
    Ruby
  • License
    MIT License
  • Created almost 10 years ago
  • Updated almost 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A simple command line interface for Sonic Pi, written in Ruby

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 stop

or

echo 'sample :loop_amen' | sonic_pi
cat 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.

Alternatives

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.

More Repositories

1

programmers-oath

An oath for programmers, comparable to the Hippocratic Oath
723
star
2

flask-desktop

flask-desktop lets you create first class desktop applications in Python with HTML/CSS
Python
367
star
3

markdown-doctest

Test all the code in your markdown docs!
TypeScript
166
star
4

cycle-restart

Swap out the code in your Cycle.js apps on the fly!
JavaScript
123
star
5

cycle-ecosystem

What are the most popular and trending libraries for Cycle.js? (curated by robots and people)
JavaScript
76
star
6

rxjs-ecosystem

What are the most popular libraries in the RxJS ecosystem?
JavaScript
66
star
7

cycle-animation-driver

A Cycle driver for requestAnimationFrame
JavaScript
34
star
8

cycle-hot-reloading-example

A Cycle.js starter project with hot reloading using browserify-hmr
JavaScript
27
star
9

tricycle

Try Cycle.js in your browser, no setup required.
JavaScript
25
star
10

stream-tree

stream-tree is a way to write functions as ASCII flowcharts in JavaScript.
JavaScript
24
star
11

rx-undoable

Easily add undo and redo to your RxJS or Cycle.js apps
JavaScript
22
star
12

hypertmux

A web powered tmux client
JavaScript
21
star
13

positron

Compile your Javascript apps to Android
JavaScript
17
star
14

recycle

cycle-restart built from the ground up for xstream
JavaScript
17
star
15

handwritten-wasm

Wasm examples, brought to you by humans!
16
star
16

cycle-collections

Moved to cyclejs/collection
JavaScript
9
star
17

cycle-music-sequencer

An easy way to make melodies in your browser, powered by Cycle.js and Tone.js
JavaScript
9
star
18

wat-shell

Replace Bash with Ruby, because why not?
Ruby
6
star
19

dotfiles

My terminal config. tmux/zsh/neovim
Vim Script
5
star
20

BushingPicker

A website to generate customized bushing setups for longboard trucks!
Python
4
star
21

bonsai-editor

JavaScript
3
star
22

cycle-carousel-example

Because a person in a youtube comment asked if it was possible
JavaScript
3
star
23

ghostwriter

An autocompleting editor for writing raps and rhymes.
JavaScript
3
star
24

cycle-dev-server

An experimental development server for Cycle.js with an inbuilt web editor
JavaScript
3
star
25

how-to-write-javascript-without-going-insane

Because it's clearly too late for me.
JavaScript
2
star
26

cycle-scripts-widdershin

My personal Cycle.js starter, for use with create-cycle-app
JavaScript
2
star
27

cycle-talk

My slides for my Cycle.js talk at Node.js Wellington
JavaScript
2
star
28

kaihoko

A shopping list that automagically buys your groceries for you.
Ruby
2
star
29

cycle-architecture-test

Testing an architecture idea for Cycle.js apps
JavaScript
2
star
30

node-line-profiler

An experimental line by line profiler for Node.js.
TypeScript
2
star
31

katana

A CLI app for code katas. Hone your mind.
Ruby
2
star
32

Tuara

Tuara is a platform aimed at connecting people with niche skills with the organizations in their community that their help could most impact.
CSS
1
star
33

randall

Discord bot used for Freestyle Fortres
Ruby
1
star
34

imagine-him-happy

Ludum Dare 50 Entry
ShaderLab
1
star
35

cho

A digital Table Tennis scoreboard
JavaScript
1
star
36

swat4-positional-audio

A Mumble plugin for SWAT 4, adding positional audio support
C++
1
star
37

Twytter

Dev Academy Week 4 Team Project - Twitter Clone
Ruby
1
star
38

talks

Any talks I give that I happen to record.
1
star
39

timestacker

Ruby
1
star
40

cycle-rest-collection

TypeScript
1
star
41

skelemation

TypeScript
1
star
42

fdbk

A space for giving and receiving feedback on your creative works
Ruby
1
star
43

cycle-pong

Pong implemented in Cycle.js, recorded as I go
JavaScript
1
star
44

something-completely-different

Stuck in a loop browsing the internet? Try something completely different.
TypeScript
1
star
45

declarate

TypeScript
1
star
46

eda-code-downloader

Download all the code you wrote at Dev Academy, I dare you!
Ruby
1
star
47

mind-your-breath

An app for mindfulness meditation
Objective-C
1
star
48

old-game-maker-games

All my old projects from when I first started coding
Game Maker Language
1
star
49

emoji-world

TypeScript
1
star
50

nzskate-search

Search all the NZ skate shops from one place!
Python
1
star
51

graphy-graph

Graphing first and second order derivatives with Cycle.js
JavaScript
1
star
52

genetic-vim-golf

Solve vim golf problems with genetic programming
JavaScript
1
star
53

workspaces

Workspaces lets you create temporary folders to work in, that can then be archived or deleted easily.
Shell
1
star