Sha256: 698130d90173ec31fefec1783cc1fb0ccf4c832748c5662fcab6dba6b1a11c77

Contents?: true

Size: 499 Bytes

Versions: 2

Compression:

Stored size: 499 Bytes

Contents

require 'scissor/chunk'
require 'scissor/fragment'
require 'scissor/sound_file'
require 'scissor/sequence'

def Scissor(*args)
  Scissor::Chunk.new(*args)
end

module Scissor
  def self.silence(duration)
    Scissor(File.dirname(__FILE__) + '/../data/silence.mp3').
      slice(0, 1).
      fill(duration)
  end

  def self.sequence(*args)
    Scissor::Sequence.new(*args)
  end

  def self.join(scissor_array)
    scissor_array.inject(Scissor()) do |m, scissor|
      m + scissor
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
youpy-scissor-0.0.18 lib/scissor.rb
youpy-scissor-0.0.19 lib/scissor.rb