about summary refs log tree commit homepage
path: root/lib/dtas/format.rb
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2015-01-27 01:20:06 +0000
committerEric Wong <e@80x24.org>2015-02-04 02:14:44 +0000
commit74350addbafab84f016145323d6c37506d374d64 (patch)
tree9f65c89172ec187cfb56cdce3283c0b194423bd9 /lib/dtas/format.rb
parent9d63755abd4774c57f6d2d4cf4b3643b5877737c (diff)
downloaddtas-74350addbafab84f016145323d6c37506d374d64.tar.gz
We need to generate a coherent command set for wrapping
portions together, this sets us up for that.
Diffstat (limited to 'lib/dtas/format.rb')
-rw-r--r--lib/dtas/format.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/dtas/format.rb b/lib/dtas/format.rb
index a76b893..a6314bd 100644
--- a/lib/dtas/format.rb
+++ b/lib/dtas/format.rb
@@ -165,6 +165,7 @@ class DTAS::Format # :nodoc:
   # HH:MM:SS.frac (don't bother with more complex times, too much code)
   # part of me wants to drop this feature from playq, feels like bloat...
   def hhmmss_to_samples(hhmmss)
+    Numeric === hhmmss and return hhmmss * @rate
     time = hhmmss.dup
     rv = 0
     if time.sub!(/\.(\d+)\z/, "")