 //  Copyright © 2017 AudioKit. All rights reserved.
 //
 
-import Foundation
-
 @objc open class AKTuningTable: NSObject {
-   
+
+    public typealias Element = Double
+
     private static let NYQUIST: Element = AKSettings.sampleRate / 2
-
-    public typealias Element = Double
-    
-    public static let numberOfMidiNotes = 128
-    
-    public var noteNumberAtMiddleC: MIDINoteNumber = 60 {
+    
+    public static let midiNoteCount = 128
+    
+    public var middleCNoteNumber: MIDINoteNumber = 60 {
         didSet {
             updateTuningTable()
         }
     }
     
-    public var frequencyAtMiddleC: Element = 261.0 {
+    public var middleCFrequency: Element = 261.0 {
         didSet {
             updateTuningTable()
         }

            let nfIndex = Int(round(frac * Element(numberField.count)))
            let tone = Element(exp2(numberField[nfIndex]))
            let lp2 = pow(2, ttOctaveFactor)
            var f = tone * lp2 * frequencyAtMiddleC
            
            f = (0...AKTuningTable.NYQUIST).clamp(f)
            

    
    // Musically useful for instrument register
    // ..., -2, -1, 0, 1, 2, ...
    public var middleCOctave: Int = 0  {
        didSet {
            updateTuningTable()
        }
    }
    
    private var content = [Element](repeating: 1.0, count: midiNoteCount)
    private var numberField = [Element]()
    
    // default is 12ET
