feep 0.0.8 → 0.0.9

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: 3fbfa4b1a2f1ad90c662578b40edd7bbf4b7730a
4
- data.tar.gz: 618b77c63ea478dbb25da2d7f434bb6756ff8c0a
3
+ metadata.gz: 1cf734b83d85cc000c7d442ab4dcd51dac1db397
4
+ data.tar.gz: f174b0d4d3d0c23a3a474a6f26ab7537ef67064d
5
5
  SHA512:
6
- metadata.gz: f6bf0d4aef97bc23668c7ba56de50be3bab94bee3e848ebe3ab124b25e395010e5bccd06570ed154003292ada9881f8b0457854043c35df3c0c3335e619f74f9
7
- data.tar.gz: 9a12ac8131c8957682042f3af6ff30ff0ccd6a1568accf43d3cfc3ce1f387330217e2bb60008e7b82d4cb18b3f44343491e21c03c48eefc53e65f12dd4f1f946
6
+ metadata.gz: 8549da4394340c349d329944894cbe70044bd7a091b3ac4e11e2c25aacd43531f34547de2421494b6f948285781b3ec58ceb972820b193b955af32aec01bad81
7
+ data.tar.gz: 04000a3960298bb291966b41c50f9cddbdca6660777a4fe40a91f6b69ac708b5eba11e70cb43548b3ccee8fd97f7b81cd88364807b1c7694af50bb23850d81b6
data/Gemfile.lock CHANGED
@@ -1,13 +1,16 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- feep (0.0.2)
4
+ feep (0.0.9)
5
5
  os (~> 0.9, >= 0.9.6)
6
6
  wavefile (= 0.6.0)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
+ ast (2.0.0)
12
+ astrolabe (1.3.0)
13
+ parser (>= 2.2.0.pre.3, < 3.0)
11
14
  byebug (3.5.1)
12
15
  columnize (~> 0.8)
13
16
  debugger-linecache (~> 1.2)
@@ -18,6 +21,9 @@ GEM
18
21
  diff-lcs (1.2.5)
19
22
  method_source (0.8.2)
20
23
  os (0.9.6)
24
+ parser (2.2.0.3)
25
+ ast (>= 1.1, < 3.0)
26
+ powerpack (0.1.0)
21
27
  pry (0.10.1)
22
28
  coderay (~> 1.1.0)
23
29
  method_source (~> 0.8.1)
@@ -30,6 +36,7 @@ GEM
30
36
  pry-byebug (3.0.1)
31
37
  byebug (~> 3.4)
32
38
  pry (~> 0.10)
39
+ rainbow (2.0.0)
33
40
  rake (10.4.2)
34
41
  rspec (3.2.0)
35
42
  rspec-core (~> 3.2.0)
@@ -44,6 +51,13 @@ GEM
44
51
  diff-lcs (>= 1.2.0, < 2.0)
45
52
  rspec-support (~> 3.2.0)
46
53
  rspec-support (3.2.2)
54
+ rubocop (0.29.1)
55
+ astrolabe (~> 1.3)
56
+ parser (>= 2.2.0.1, < 3.0)
57
+ powerpack (~> 0.1)
58
+ rainbow (>= 1.99.1, < 3.0)
59
+ ruby-progressbar (~> 1.4)
60
+ ruby-progressbar (1.7.5)
47
61
  slop (3.6.0)
48
62
  wavefile (0.6.0)
49
63
  win32console (1.3.2)
@@ -57,4 +71,5 @@ DEPENDENCIES
57
71
  feep!
58
72
  pry-byebug (~> 3.0)
59
73
  rake (~> 10.0)
60
- rspec (>= 3.0)
74
+ rspec (~> 3.0)
75
+ rubocop (~> 0.29)
data/bin/feep CHANGED
File without changes
data/lib/feep.rb CHANGED
@@ -36,7 +36,7 @@ module Feep
36
36
  # yes, it's a chord, so create threads
37
37
  threads = []
38
38
  options[:freq_or_note].split(',').each do |note|
39
- sound_to_play = Utils.new.convert_note_to_freq(note)
39
+ sound_to_play = Utils.convert_note_to_freq(note)
40
40
  output_filename = "#{options[:waveform]}_#{sound_to_play}Hz_#{options[:volume].to_f}_#{options[:duration]}.wav"
41
41
  threads << Thread.new {
42
42
  SoundPlayer.new.play_note(sound_to_play, output_filename, samples_to_write, options)
@@ -1,5 +1,6 @@
1
1
  # lib/feep/sound_file.rb
2
2
  # Contains code from Joel Strait's nanosynth to generate raw audio
3
+ # https://github.com/jstrait/nanosynth
3
4
 
4
5
  require 'wavefile'
5
6
  require_relative 'constants'
@@ -43,9 +43,9 @@ module Feep
43
43
  end
44
44
  end
45
45
 
46
- # displays a fun beep message after playing wav file
46
+ # displays a fun 'feep' message after playing wav file
47
47
  def display_text_beep(duration)
48
- print 'Be'
48
+ print 'Fe'
49
49
  1.upto(duration) {|ms|
50
50
  if ms % 100 == 0
51
51
  print 'e'
data/lib/feep/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Feep
2
- VERSION = '0.0.8'
2
+ VERSION = '0.0.9'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: feep
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Chadwick
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-19 00:00:00.000000000 Z
11
+ date: 2015-05-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: wavefile
@@ -163,7 +163,4 @@ rubygems_version: 2.4.6
163
163
  signing_key:
164
164
  specification_version: 4
165
165
  summary: Make your computer feep with Ruby
166
- test_files:
167
- - spec/feep_spec.rb
168
- - spec/spec_helper.rb
169
- has_rdoc:
166
+ test_files: []