delaycalc 0.0.1 → 0.2.0

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.
@@ -2,3 +2,13 @@
2
2
 
3
3
  * 1 major enhancement:
4
4
  * Initial release
5
+
6
+ == 0.0.2 2007-12-12
7
+
8
+ * 1 tiny enhancement:
9
+ * Updated website
10
+
11
+ == 0.2.o 2007-12-12
12
+
13
+ * 1 minor enhancement:
14
+ * Added delaycalc script to /bin
@@ -3,12 +3,12 @@ License.txt
3
3
  Manifest.txt
4
4
  README.txt
5
5
  Rakefile
6
+ bin/delaycalc
6
7
  config/hoe.rb
7
8
  config/requirements.rb
8
9
  lib/delaycalc.rb
9
10
  lib/delaycalc/version.rb
10
11
  log/debug.log
11
- script/delaycalc
12
12
  script/destroy
13
13
  script/generate
14
14
  script/txt2html
data/README.txt CHANGED
@@ -59,7 +59,7 @@ Q: Quarter note
59
59
  QT: Quarter noteTriplet
60
60
  ED: Eighth note Dotted
61
61
  E: Eighth note
62
- ET: Eighth note Triplete
62
+ ET: Eighth note Triplet
63
63
  SD: Sixteenth note Dotted
64
64
  S: Sixteenth note
65
65
  ST: Sixteenth note Triplet
@@ -1,10 +1,15 @@
1
- #!/usr/local/bin/ruby
1
+ #!/usr/local/env ruby
2
2
  require 'rubygems'
3
3
  require 'delaycalc'
4
4
 
5
- bpm = 120
5
+ bpm = ARGV[0].to_i
6
6
 
7
- puts "BPM: #{bpm}"
7
+ if bpm && bpm > 0
8
+ puts "BPM: #{bpm}"
9
+ else
10
+ puts "Usage: #{$0} <bpm>"
11
+ exit
12
+ end
8
13
 
9
14
  puts "W(1/1): #{bpm.W} ms"
10
15
 
@@ -29,4 +34,4 @@ puts "T(1/32): #{bpm.T} ms"
29
34
  puts "TT(1/32T): #{bpm.TT} ms"
30
35
 
31
36
  # Or Explicit
32
- puts "Q(1/4): " + Delaycalc.convert_bpm(120,1.0).to_s + " ms"
37
+ puts "Q(1/4): " + Delaycalc.convert_bpm(bpm,1.0).to_s + " ms"
@@ -1,8 +1,8 @@
1
1
  module Delaycalc #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
- MINOR = 0
5
- TINY = 1
4
+ MINOR = 2
5
+ TINY = 0
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -33,7 +33,7 @@
33
33
  <h1>delaycalc</h1>
34
34
  <div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/delaycalc"; return false'>
35
35
  <p>Get Version</p>
36
- <a href="http://rubyforge.org/projects/delaycalc" class="numbers">0.0.1</a>
36
+ <a href="http://rubyforge.org/projects/delaycalc" class="numbers">0.2.0</a>
37
37
  </div>
38
38
  <h1>&#x2192; &#8216;delaycalc&#8217;</h1>
39
39
 
@@ -41,35 +41,47 @@
41
41
  <h2>What</h2>
42
42
 
43
43
 
44
- <h2>Installing</h2>
45
-
46
-
47
- <p><pre class='syntax'><span class="ident">sudo</span> <span class="ident">gem</span> <span class="ident">install</span> <span class="ident">delaycalc</span></pre></p>
48
-
49
-
50
- <h2>The basics</h2>
51
-
52
-
53
- <h2>Demonstration of usage</h2>
54
-
55
-
56
- <h2>Forum</h2>
44
+ <p>delaycalc is a Ruby application used to calculate delay times for digital delay processors that will match the tempo of music in bpm.</p>
57
45
 
58
46
 
59
- <p><a href="http://groups.google.com/group/delaycalc">http://groups.google.com/group/delaycalc</a></p>
47
+ <h2>Installing</h2>
60
48
 
61
49
 
62
- <p><span class="caps">TODO</span> &#8211; create Google Group &#8211; delaycalc</p>
50
+ <p><pre class='syntax'><span class="ident">sudo</span> <span class="ident">gem</span> <span class="ident">install</span> <span class="ident">delaycalc</span></pre></p>
63
51
 
64
52
 
65
- <h2>How to submit patches</h2>
53
+ <h2>Basics</h2>
66
54
 
67
55
 
68
- <p>Read the <a href="http://drnicwilliams.com/2007/06/01/8-steps-for-fixing-other-peoples-code/">8 steps for fixing other people&#8217;s code</a> and for section <a href="http://drnicwilliams.com/2007/06/01/8-steps-for-fixing-other-peoples-code/#8b-google-groups">8b: Submit patch to Google Groups</a>, use the Google Group above.</p>
56
+ <pre>
57
+ $ ruby &lt;bpm&gt;
58
+ </pre>
69
59
 
60
+ <h2>Demonstration of usage</h2>
70
61
 
71
- <p>The trunk repository is <code>svn://rubyforge.org/var/svn/delaycalc/trunk</code> for anonymous access.</p>
72
62
 
63
+ <pre>
64
+ $ ruby delaycalc 120
65
+
66
+ BPM: 120
67
+ W(1/1): 2000 ms
68
+ HD(1/2.): 1500 ms
69
+ H(1/2): 1000 ms
70
+ HT(1/2T): 667 ms
71
+ QD(1/4.): 750 ms
72
+ Q(1/4): 500 ms
73
+ QT(1/4T): 333 ms
74
+ ED(1/8.): 375 ms
75
+ E(1/8): 250 ms
76
+ ET(1/8T): 167 ms
77
+ SD(1/16.): 188 ms
78
+ S(1/16): 125 ms
79
+ ST(1/16T): 83 ms
80
+ TD(1/32.): 94 ms
81
+ T(1/32): 63 ms
82
+ TT(1/32T): 42 ms
83
+ Q(1/4): 500 ms
84
+ </pre>
73
85
 
74
86
  <h2>License</h2>
75
87
 
@@ -80,9 +92,9 @@
80
92
  <h2>Contact</h2>
81
93
 
82
94
 
83
- <p>Comments are welcome. Send an email to <a href="mailto:dougsparling@yahoo.com">Doug Sparling</a> via the <a href="http://groups.google.com/group/delaycalc">forum</a></p>
95
+ <p>Comments are welcome. Send an email to <a href="mailto:dougsparling@yahoo.com">Doug Sparling</a></p>
84
96
  <p class="coda">
85
- <a href="dougsparling@yahoo.com">Doug Sparlinge</a>, 5th September 2007<br>
97
+ <a href="dougsparling@yahoo.com">Doug Sparlinge</a>, 12th December 2007<br>
86
98
  Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>
87
99
  </p>
88
100
  </div>
@@ -5,35 +5,49 @@ h1. &#x2192; 'delaycalc'
5
5
 
6
6
  h2. What
7
7
 
8
+ delaycalc is a Ruby application used to calculate delay times for digital delay processors that will match the tempo of music in bpm.
8
9
 
9
10
  h2. Installing
10
11
 
11
12
  <pre syntax="ruby">sudo gem install delaycalc</pre>
12
13
 
13
- h2. The basics
14
+ h2. Basics
14
15
 
16
+ <pre>
17
+ $ ruby <bpm>
18
+ </pre>
15
19
 
16
20
  h2. Demonstration of usage
17
21
 
22
+ <pre>
23
+ $ ruby delaycalc 120
24
+
25
+ BPM: 120
26
+ W(1/1): 2000 ms
27
+ HD(1/2.): 1500 ms
28
+ H(1/2): 1000 ms
29
+ HT(1/2T): 667 ms
30
+ QD(1/4.): 750 ms
31
+ Q(1/4): 500 ms
32
+ QT(1/4T): 333 ms
33
+ ED(1/8.): 375 ms
34
+ E(1/8): 250 ms
35
+ ET(1/8T): 167 ms
36
+ SD(1/16.): 188 ms
37
+ S(1/16): 125 ms
38
+ ST(1/16T): 83 ms
39
+ TD(1/32.): 94 ms
40
+ T(1/32): 63 ms
41
+ TT(1/32T): 42 ms
42
+ Q(1/4): 500 ms
43
+ </pre>
18
44
 
19
45
 
20
- h2. Forum
21
-
22
- "http://groups.google.com/group/delaycalc":http://groups.google.com/group/delaycalc
23
-
24
- TODO - create Google Group - delaycalc
25
-
26
- h2. How to submit patches
27
-
28
- Read the "8 steps for fixing other people's code":http://drnicwilliams.com/2007/06/01/8-steps-for-fixing-other-peoples-code/ and for section "8b: Submit patch to Google Groups":http://drnicwilliams.com/2007/06/01/8-steps-for-fixing-other-peoples-code/#8b-google-groups, use the Google Group above.
29
-
30
- The trunk repository is <code>svn://rubyforge.org/var/svn/delaycalc/trunk</code> for anonymous access.
31
-
32
46
  h2. License
33
47
 
34
48
  This code is free to use under the terms of the MIT license.
35
49
 
36
50
  h2. Contact
37
51
 
38
- Comments are welcome. Send an email to "Doug Sparling":mailto:dougsparling@yahoo.com via the "forum":http://groups.google.com/group/delaycalc
52
+ Comments are welcome. Send an email to "Doug Sparling":mailto:dougsparling@yahoo.com
39
53
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: delaycalc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.2.0
5
5
  platform: ""
6
6
  authors:
7
7
  - Doug Sparling
@@ -9,14 +9,14 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2007-12-11 00:00:00 -06:00
12
+ date: 2007-12-12 00:00:00 -06:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
16
16
  description: delay time calculator for digital delays
17
17
  email: dougsparling@yahoo.com
18
- executables: []
19
-
18
+ executables:
19
+ - delaycalc
20
20
  extensions: []
21
21
 
22
22
  extra_rdoc_files:
@@ -31,12 +31,12 @@ files:
31
31
  - Manifest.txt
32
32
  - README.txt
33
33
  - Rakefile
34
+ - bin/delaycalc
34
35
  - config/hoe.rb
35
36
  - config/requirements.rb
36
37
  - lib/delaycalc.rb
37
38
  - lib/delaycalc/version.rb
38
39
  - log/debug.log
39
- - script/delaycalc
40
40
  - script/destroy
41
41
  - script/generate
42
42
  - script/txt2html