chorus 0.0.1 → 0.0.2

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/README.md CHANGED
@@ -1,7 +1,6 @@
1
1
  # Chorus
2
2
 
3
- Chorus is a very simple way to turn your mac into a chorus of [throat singers.](http://www.youtube.com/watch?v=zwi6gF-0mP4)
4
- It uses the `say` command.
3
+ Chorus is turns your mac into a chorus of [throat singers](http://www.youtube.com/watch?v=zwi6gF-0mP4) using Ruby threads and the mac `say` command.
5
4
 
6
5
  ## Installation
7
6
 
@@ -12,7 +11,7 @@ It uses the `say` command.
12
11
  $ chorus "I just met you. This is crazy. Here's my number. Call me maybe?"
13
12
  $ chorus -h
14
13
  Usage: chorus [options] "your lyrics go here"
15
- -v Voices,You,Want,To,Sing, takes a comma-separated list of voices to use.
14
+ -v Voices,You,Want,To,Sing, A comma-separated list of voices to use. Try multiple Voices with Fred*5,Kathy*2
16
15
  --voices
17
16
  -d, --delay SECONDSOFDELAY The number of seconds in delay
18
17
  --version Show version
@@ -22,11 +21,13 @@ It uses the `say` command.
22
21
 
23
22
  # Or Go Crazy....
24
23
 
25
- bundle exec chorus -d .25 -v Fred,Fred,Fred,Fred,Fred,Fred,Fred,Fred,Fred,Fred,Fred,Fred,Fred,Fred,Fred,Fred,Fred,Fred "Echo Chamber Dub"
24
+ $ chorus -v Fred*25 -d .25 "King Tubby On The Sound System"
26
25
 
27
26
  ## Future Features
28
27
 
29
28
  * Passing say commands in.
29
+ * Linux support
30
+ * Be Pipe Friendly
30
31
 
31
32
  ## Contributing
32
33
 
data/bin/chorus CHANGED
@@ -8,8 +8,20 @@ options = {}
8
8
  opt_parser = OptionParser.new do |opts|
9
9
  opts.banner = 'Usage: chorus [options] "your lyrics go here"'
10
10
 
11
- opts.on('-v', '--voices Voices,You,Want,To,Sing', Array, 'takes a comma-separated list of voices to use.') do |voices|
12
- options[:voices] = voices
11
+ opts.on('-v', '--voices Voices,You,Want,To,Sing', Array, 'A comma-separated list of voices to use. Try multiple Voices with Fred*5,Kathy*2 ') do |voices|
12
+
13
+ final_voices = []
14
+
15
+ voices.each do |voice|
16
+ if voice.include?("*")
17
+ name, repeats = voice.split("*")
18
+ repeats.to_i.times { final_voices << name }
19
+ else
20
+ final_voices << voice
21
+ end
22
+ end
23
+
24
+ options[:voices] = final_voices
13
25
  end
14
26
 
15
27
  opts.on('-d', '--delay SECONDSOFDELAY', 'The number of seconds in delay') do |delay|
@@ -21,10 +33,6 @@ opt_parser = OptionParser.new do |opts|
21
33
  exit
22
34
  end
23
35
 
24
- # opts.on('-r', '--repeat TIMES', 'Number of times you repeat the lyrics') do |repeat|
25
- # options[:repeat] = repeat.to_i
26
- # end
27
-
28
36
  opts.on_tail("-h", "--help", "Show this message") do
29
37
  puts opts
30
38
  exit
data/chorus.gemspec CHANGED
@@ -15,5 +15,6 @@ Gem::Specification.new do |gem|
15
15
  gem.files = `git ls-files`.split($/)
16
16
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
17
17
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
+ gem.add_development_dependency('pry')
18
19
  gem.require_paths = ["lib"]
19
20
  end
@@ -1,3 +1,3 @@
1
1
  class Chorus
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chorus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,8 +9,24 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-22 00:00:00.000000000 Z
13
- dependencies: []
12
+ date: 2013-03-29 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: pry
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :development
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
14
30
  description: Using Ruby threads and mac's "say" command to make delay and chorus effects'
15
31
  email:
16
32
  - beholdthepanda@gmail.com