scruby 0.2.7 → 0.2.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Gemfile.lock +1 -1
- data/README.rdoc +6 -8
- data/lib/scruby/group.rb +1 -7
- data/lib/scruby/server.rb +16 -17
- data/lib/scruby/version.rb +1 -1
- data/lib/scruby.rb +1 -0
- metadata +3 -2
data/Gemfile.lock
CHANGED
data/README.rdoc
CHANGED
@@ -8,12 +8,14 @@ SynthDef creation and sending is robust but some features are not implemented su
|
|
8
8
|
livecode.rb executable is located in the bin directory and a TextMate bundle included in extras permits livecoding from TextMate, comunication is
|
9
9
|
thrugh *nix pipes. Similar functionality shouldn't be too dificult to implement from Emacs or Vim.
|
10
10
|
|
11
|
-
==
|
11
|
+
== Install
|
12
12
|
|
13
13
|
$ [sudo] gem install scruby
|
14
14
|
|
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.
|
15
16
|
|
16
|
-
|
17
|
+
|
18
|
+
== Usage
|
17
19
|
|
18
20
|
require 'scruby'
|
19
21
|
|
@@ -39,11 +41,11 @@ To start a live coding session:
|
|
39
41
|
See http://github.com/maca/live
|
40
42
|
|
41
43
|
|
42
|
-
==
|
44
|
+
== Todo
|
43
45
|
|
44
46
|
Receive OSC messages from SuperCollider
|
45
47
|
|
46
|
-
==
|
48
|
+
== License:
|
47
49
|
|
48
50
|
Copyright (c) 2008 Macario Ortega
|
49
51
|
|
@@ -59,7 +61,3 @@ GNU General Public License for more details.
|
|
59
61
|
|
60
62
|
You should have received a copy of the GNU General Public License
|
61
63
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
data/lib/scruby/group.rb
CHANGED
data/lib/scruby/server.rb
CHANGED
@@ -29,21 +29,20 @@ module Scruby
|
|
29
29
|
# The server is a Ruby representation of scsynth which can be a local binary or a remote
|
30
30
|
# server already running.
|
31
31
|
# Server class keeps an array with all the instantiated servers
|
32
|
-
#
|
33
|
-
#
|
34
|
-
#
|
35
|
-
#
|
36
|
-
#
|
37
|
-
#
|
38
|
-
#
|
39
|
-
#
|
40
|
-
#
|
41
|
-
#
|
42
|
-
#
|
43
|
-
#
|
44
|
-
#
|
45
|
-
#
|
46
|
-
# Number of available sample buffers defaults to 1024
|
32
|
+
#
|
33
|
+
# For more info
|
34
|
+
# $ man scsynth
|
35
|
+
#
|
36
|
+
# @param [Hash] opts the options to create a message with.
|
37
|
+
# @option opts [String] :path ('scsynt' on Linux, '/Applications/SuperCollider/scsynth' on Mac) scsynth binary path
|
38
|
+
# @option opts [String] :host ('localhost') SuperCollider Server address
|
39
|
+
# @option opts [Fixnum] :port (57111) TCP port
|
40
|
+
# @option opts [Fixnum] :control_buses (4096) Number of buses for routing control data, indices start at 0
|
41
|
+
# @option opts [Fixnum] :audio_buses (8) Number of audio Bus channels for hardware output and input and internal routing
|
42
|
+
# @option opts [Fixnum] :audio_outputs (8) Reserved buses for hardware output, indices start at 0
|
43
|
+
# @option opts [Fixnum] :audio_inputs (8) Reserved buses for hardware input, indices starting from the number of audio outputs
|
44
|
+
# @option opts [Fixnum] :buffers (1024) Number of available sample buffers
|
45
|
+
#
|
47
46
|
def initialize opts = {}
|
48
47
|
@opts = DEFAULTS.dup.merge opts
|
49
48
|
@buffers = []
|
@@ -60,7 +59,7 @@ module Scruby
|
|
60
59
|
def path; @opts[:path]; end
|
61
60
|
|
62
61
|
# Boots the local binary of the scsynth forking a process, it will rise a SCError if the scsynth
|
63
|
-
# binary is not found in
|
62
|
+
# binary is not found in path.
|
64
63
|
# The default path can be overriden using Server.scsynt_path=('path')
|
65
64
|
def boot
|
66
65
|
raise SCError.new('Scsynth not found in the given path') unless File.exists? path
|
@@ -179,4 +178,4 @@ module Scruby
|
|
179
178
|
|
180
179
|
class SCError < StandardError
|
181
180
|
end
|
182
|
-
end
|
181
|
+
end
|
data/lib/scruby/version.rb
CHANGED
data/lib/scruby.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 65
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
9
|
- 7
|
10
|
-
|
10
|
+
- 1
|
11
|
+
version: 0.2.7.1
|
11
12
|
platform: ruby
|
12
13
|
authors:
|
13
14
|
- Macario Ortega
|