about summary refs log tree commit homepage
path: root/lib/dtas/format.rb
diff options
context:
space:
mode:
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/, "")