Skip to content
Newer
Older
100644 64 lines (39 sloc) 2.11 KB
5481170 @maca arguments, ugens
authored Jul 4, 2009
1 == Scruby
2
3 Is a bare-bones SuperCollider livecoding library for Ruby, it provides comunication with a remote or local scsynth server and SynthDef creation with a
1ee0818 @maca version change, many changes not fully implemented but working. give …
authored Aug 7, 2009
4 in a similar way to Sclang.
5481170 @maca arguments, ugens
authored Jul 5, 2009
5
6 SynthDef creation and sending is robust but some features are not implemented such as SynthDef variations and others I may not be aware of.
7
8 livecode.rb executable is located in the bin directory and a TextMate bundle included in extras permits livecoding from TextMate, comunication is
9 thrugh *nix pipes. Similar functionality shouldn't be too dificult to implement from Emacs or Vim.
10
efdd59f @maca readme updated
authored Mar 21, 2011
11 == Install
9525c43 @maca version bump
authored Mar 21, 2011
12
13 $ [sudo] gem install scruby
14
e7e5fb3 @maca doc formatting test
authored Mar 21, 2011
15 Scruby is just a SuperCollider client so SC must be installed on the system. There's a PPA for installing SC under Ubuntu: https://launchpad.net/~supercollider/+archive/ppa.
9525c43 @maca version bump
authored Mar 21, 2011
16
efdd59f @maca readme updated
authored Mar 21, 2011
17
18 == Usage
1ee0818 @maca version change, many changes not fully implemented but working. give …
authored Aug 7, 2009
19
20 require 'scruby'
21
22 s = Server.new
23 s.boot
24
25 SynthDef.new :fm do |freq, amp, dur|
e82decb @maca small change in README
authored Aug 31, 2009
26 mod_env = EnvGen.kr Env.new( d(600, 200, 100), d(0.7,0.3) ), 1, :timeScale => dur
27 mod = SinOsc.ar freq * 1.4, :mul => mod_env
28 sig = SinOsc.ar freq + mod
29 env = EnvGen.kr Env.new( d(0, 1, 0.6, 0.2, 0.1, 0), d(0.001, 0.005, 0.3, 0.5, 0.7) ), 1, :timeScale => dur, :doneAction => 2
30 sig = sig * amp * env
31 Out.ar 0, [sig, sig]
1ee0818 @maca version change, many changes not fully implemented but working. give …
authored Aug 7, 2009
32 end.send
e82decb @maca small change in README
authored Aug 31, 2009
33
34 Synth.new :fm, :freq => 220, :amp => 0.4, :dur => 1
26d1e83 @maca extended a bit on README
authored Aug 31, 2009
35
36
37 To start a live coding session:
38
9525c43 @maca version bump
authored Mar 21, 2011
39 $ live
40
41 See http://github.com/maca/live
26d1e83 @maca extended a bit on README
authored Aug 31, 2009
42
1ee0818 @maca version change, many changes not fully implemented but working. give …
authored Aug 7, 2009
43
efdd59f @maca readme updated
authored Mar 21, 2011
44 == Todo
5481170 @maca arguments, ugens
authored Jul 5, 2009
45
46 Receive OSC messages from SuperCollider
6001a25 @maca Live session is robust and can receive and eval varios kind of messages
authored Nov 25, 2008
47
efdd59f @maca readme updated
authored Mar 21, 2011
48 == License:
6001a25 @maca Live session is robust and can receive and eval varios kind of messages
authored Nov 25, 2008
49
50 Copyright (c) 2008 Macario Ortega
51
52 This program is free software: you can redistribute it and/or modify
53 it under the terms of the GNU General Public License as published by
54 the Free Software Foundation, either version 3 of the License, or
55 (at your option) any later version.
56
57 This program is distributed in the hope that it will be useful,
58 but WITHOUT ANY WARRANTY; without even the implied warranty of
59 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
60 GNU General Public License for more details.
61
62 You should have received a copy of the GNU General Public License
63 along with this program. If not, see <http://www.gnu.org/licenses/>.
Something went wrong with that request. Please try again.