             let frequency = self.toneSequence[i].frequency()
 
             for (var j:UInt32 = 0; j < length; j++) {
-                frequencyTable.append(frequency)
+                frequencies.append(frequency)
             }
         }
     }

        return sectionLength
    }

    private func renderFrequencyTable() {
        let sampleCount = UInt32(self.length * UInt64(SampleRate) / 1000)

        self.frequencyTable = Array<Float>()

        let sectionLength = lengthOfSections(sampleCount, sequence: self.toneSequence)


    private var offset:UInt64 = 0
    private var volumeSequence = [Float(1), Float(1)]
    private var toneSequence = Array<Tone>()

    private var frequencies = Array<Float>()
    private var volumes = Array<Float>()

    init(length: UInt64) {
        self.length = length
