Sha256: b696c12089cb876dadf44924e508e7467175ac18f416cff674240bada5a2a654

Contents?: true

Size: 789 Bytes

Versions: 11

Compression:

Stored size: 789 Bytes

Contents

# -*- coding: utf-8 -*-


require 'xot/setter'
require 'xot/universal_accessor'
require 'xot/block_util'
require 'beeps/ext'


module Beeps


  class Processor

    include Xot::Setter

    def initialize(options = nil, &block)
      super()
      set options if options
      Xot::BlockUtil.instance_eval_or_block_call self, &block if block
    end

  end# Processor


  class SineWave

    alias freq= frequency=
    alias freq  frequency

    universal_accessor :frequency, :freq

  end# SineWave


  class SquareWave

    alias freq= frequency=
    alias freq  frequency

    universal_accessor :frequency, :freq

  end# SquareWave


  class SawtoothWave

    alias freq= frequency=
    alias freq  frequency

    universal_accessor :frequency, :freq

  end# SawtoothWave


end# Beeps

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
beeps-0.1.32 lib/beeps/processor.rb
beeps-0.1.31 lib/beeps/processor.rb
beeps-0.1.30 lib/beeps/processor.rb
beeps-0.1.29 lib/beeps/processor.rb
beeps-0.1.28 lib/beeps/processor.rb
beeps-0.1.27 lib/beeps/processor.rb
beeps-0.1.26 lib/beeps/processor.rb
beeps-0.1.25 lib/beeps/processor.rb
beeps-0.1.24 lib/beeps/processor.rb
beeps-0.1.23 lib/beeps/processor.rb
beeps-0.1.22 lib/beeps/processor.rb