Sha256: e5295c532f16c991ae7f2b05ff12db41d0095468800ad4dc2304f32dd3c11618
Contents?: true
Size: 790 Bytes
Versions: 7
Compression:
Stored size: 790 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
7 entries across 7 versions & 1 rubygems