diff options
author | Eric Wong <e@80x24.org> | 2015-01-27 01:20:06 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2015-02-04 02:14:44 +0000 |
commit | 74350addbafab84f016145323d6c37506d374d64 (patch) | |
tree | 9f65c89172ec187cfb56cdce3283c0b194423bd9 /lib/dtas/format.rb | |
parent | 9d63755abd4774c57f6d2d4cf4b3643b5877737c (diff) | |
download | dtas-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.rb | 1 |
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/, "") |