lib/morse_code/sample.rb
# 8-bit unsigned PCM format
8-bit unsigned PCM format
8 - bit unsigned PCM format
def pcm_samples
      @pcm_samples ||= [].tap do |pcm_samples|
        samples.each { |sample| pcm_samples.push(128 + (127 * sample).round) }
      end
    end
def pcm_samples @pcm_samples ||= [ ] . tap do | pcm_samples | samples . each { | sample | pcm_samples . push ( 128 + ( 127 * sample ) . round ) } end end
8-bit unsigned PCM format
8 - bit unsigned PCM format