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 CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- scruby (0.2.7)
4
+ scruby (0.2.7.1)
5
5
  arguments (~> 0.6)
6
6
  live (~> 0.1)
7
7
  ruby-osc (~> 0.3)
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
- == INSTALL
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
- == USAGE
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
- == TODO
44
+ == Todo
43
45
 
44
46
  Receive OSC messages from SuperCollider
45
47
 
46
- == LICENSE:
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
@@ -1,6 +1,5 @@
1
1
  module Scruby
2
2
  class Group < Node
3
-
4
3
  def free_all
5
4
  send '/g_freeAll', self.id
6
5
  self
@@ -15,10 +14,5 @@ module Scruby
15
14
  send '/g_dumpTree', self.id, post
16
15
  self
17
16
  end
18
-
19
- class << self
20
-
21
- end
22
-
23
17
  end
24
- end
18
+ end
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
- # Options:
33
- # +host+:
34
- # defaults to 'localhost'
35
- # +port+:
36
- # TCP port defaults to 57111
37
- # +control_buses+
38
- # Number of buses for routing control data defaults to 4096, indices start at 0.
39
- # +audio_buses+
40
- # Number of audio Bus channels for hardware output and input and internal routing, defaults to 128
41
- # +audio_outputs+
42
- # Reserved +buses+ for hardware output, indices available are 0 to +audio_outputs+ - 1 defaults to 8.
43
- # +audio_inputs+
44
- # Reserved +buses+ for hardware input, +audio_outputs+ to (+audio_outputs+ + +audio_inputs+ - 1), defaults to 8.
45
- # +buffers+
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 /Applications/SuperCollider/scsynth (default Mac OS path) or given path.
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
@@ -1,3 +1,3 @@
1
1
  module Scruby
2
- VERSION = "0.2.7"
2
+ VERSION = "0.2.7.1"
3
3
  end
data/lib/scruby.rb CHANGED
@@ -51,6 +51,7 @@ require "scruby/ugens/operation_ugens"
51
51
  require "scruby/ugens/ugens"
52
52
  require "scruby/synthdef"
53
53
 
54
+ require "scruby/group"
54
55
  require "scruby/server"
55
56
  require "scruby/ugens/env_gen"
56
57
 
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: 25
4
+ hash: 65
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
9
  - 7
10
- version: 0.2.7
10
+ - 1
11
+ version: 0.2.7.1
11
12
  platform: ruby
12
13
  authors:
13
14
  - Macario Ortega