From 74350addbafab84f016145323d6c37506d374d64 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 27 Jan 2015 01:20:06 +0000 Subject: fadefx: effects chain generation We need to generate a coherent command set for wrapping portions together, this sets us up for that. --- lib/dtas/format.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/dtas/format.rb') 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/, "") -- cgit v1.2.3-24-ge0c7