synthdef 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 665422f13978b9e8381467e67573a50fb522f768
4
- data.tar.gz: c2110f4a9fbfa0a0791ed3ce7b559e3f39263bf3
3
+ metadata.gz: 6ec5c7f7405fbd5da62bed4b75eb323c50e68561
4
+ data.tar.gz: 513086de792c8c371b912a3e0fb00ffff0280840
5
5
  SHA512:
6
- metadata.gz: 539a3e6d7691f19a939c1cb311d250c7fdfffc0187c59874f1e523861da3cbf978271b1a84f08f3aa82def73e5d8e8260faa940c68f259d20082c0d65e9a25a5
7
- data.tar.gz: 61d36bda458ead263f7b5c7c309c20d1e9ea483092c97d9e74c5acf8d581b133e998d6580ba15d704c158e33ea1a7c5d432e0b223d6d5e93b5e2bdde2e3ae7dc
6
+ metadata.gz: fabbd69d4e25c238f522f6eebb9ea075fda74f6ec3031779c802aee08f568f8151e47f52641523b7c53c27427efb241ca3a09e2de1bb26967202eaf0a16e73b9
7
+ data.tar.gz: 3ff9d9c6a2f850b7084b00ee19dcb3eb188b37027c4259d540a24679789f046a6bd3d2c317b97f482742f6bf1864993d7eb0fc5a87ef52d009902d08db2e223f
data/README.md CHANGED
@@ -38,6 +38,26 @@ Or install it yourself as:
38
38
 
39
39
  $ gem install synthdef
40
40
 
41
+ ## Command line usage
42
+
43
+ The gem ships with a command line tool to print the contents of a synthdef file as json
44
+
45
+ ```
46
+ $ gem install synthdef
47
+ $ synthdef /path/to/synthdefs/foo.scsyndef
48
+ => {
49
+ "file_type_id": "SCgf",
50
+ "file_version": 1,
51
+ "no_of_synthdefs": 1,
52
+ "synthdefs": [
53
+ {
54
+ "name": "sonic-pi-pretty_bell",
55
+ "no_of_constants": 15,
56
+ "constants": [
57
+ 0.0,
58
+ ...
59
+ ```
60
+
41
61
  ## Usage
42
62
 
43
63
  Take a binary scsyndef file (you can find an example in `spec/data/recorder.scsyndef`)
data/bin/synthdef ADDED
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env ruby
2
+ require 'synthdef'
3
+ require 'json'
4
+
5
+ puts JSON.pretty_generate(Synthdef.read(ARGF.read).snapshot)
@@ -1,5 +1,5 @@
1
1
  require 'bindata'
2
2
 
3
3
  class Synthdef < BinData::Record
4
- VERSION = "0.0.3"
4
+ VERSION = "0.0.4"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: synthdef
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Xavier Riley
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-27 00:00:00.000000000 Z
11
+ date: 2015-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bindata
@@ -139,7 +139,8 @@ dependencies:
139
139
  description: Use the power of Ruby to convert, edit and save synthdefs for SuperCollider
140
140
  email:
141
141
  - xavriley@hotmail.com
142
- executables: []
142
+ executables:
143
+ - synthdef
143
144
  extensions: []
144
145
  extra_rdoc_files: []
145
146
  files:
@@ -149,6 +150,7 @@ files:
149
150
  - LICENSE.txt
150
151
  - README.md
151
152
  - Rakefile
153
+ - bin/synthdef
152
154
  - lib/synthdef.rb
153
155
  - lib/synthdef/version.rb
154
156
  - spec/data/hoover.scsyndef