Sha256: dd8f727f20ccbbed8f5b100d3f18bc07ad3d49d65e3d582f2536a5b4bdf0d6f8

Contents?: true

Size: 496 Bytes

Versions: 3

Compression:

Stored size: 496 Bytes

Contents

module Serinette
  # Contains noise, efects on noise, and when (timestamps) and
  # how (volume) noise is played
  class Track
    attr_accessor :noise

    def initialize
      @noise = init_noise
    end

    # For now, just returns the result of noises render; this will be where
    # the noise is brought in and out of the song
    def render
      @noise.wavefile
    end

    private

    # Initializes noise
    def init_noise
      Noise.sample_noise_classes.first.new
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
serinette-0.0.3 lib/serinette/track.rb
serinette-0.0.2 lib/serinette/track.rb
serinette-0.0.0.pre lib/serinette/track.rb