feep 0.0.8 → 0.0.9
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.
- checksums.yaml +4 -4
- data/Gemfile.lock +17 -2
- data/bin/feep +0 -0
- data/lib/feep.rb +1 -1
- data/lib/feep/sound_file.rb +1 -0
- data/lib/feep/sound_player.rb +2 -2
- data/lib/feep/version.rb +1 -1
- metadata +3 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1cf734b83d85cc000c7d442ab4dcd51dac1db397
|
4
|
+
data.tar.gz: f174b0d4d3d0c23a3a474a6f26ab7537ef67064d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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 (
|
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.
|
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)
|
data/lib/feep/sound_file.rb
CHANGED
data/lib/feep/sound_player.rb
CHANGED
@@ -43,9 +43,9 @@ module Feep
|
|
43
43
|
end
|
44
44
|
end
|
45
45
|
|
46
|
-
# displays a fun
|
46
|
+
# displays a fun 'feep' message after playing wav file
|
47
47
|
def display_text_beep(duration)
|
48
|
-
print '
|
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
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.
|
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-
|
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: []
|