                 continue
             }
 
-            if parsedFirstNonCommentLine && !parsedNumberOfNotes {
-                if let newNumberOfNotes = Int(lineStr) {
-                    numberOfNotes = newNumberOfNotes
-                    if numberOfNotes == 0 || numberOfNotes > 127 {
+            if parsedFirstNonCommentLine && !parsedAllFrequencies {
+                if let newFrequencyCount = Int(lineStr) {
+                    frequencyCount = newFrequencyCount
+                    if frequencyCount == 0 || frequencyCount > 127 {
                         //#warning SPEC SAYS 0 notes is okay because 1/1 is implicit
-                        AKLog("ERROR: number of notes in scala file: \(numberOfNotes)")
+                        AKLog("ERROR: number of notes in scala file: \(frequencyCount)")
                         parsedScala = false
                         break
                     } else {
-                        parsedNumberOfNotes = true
+                        parsedAllFrequencies = true
                         continue
                     }
                 }
             }
 
-            if actualNumberOfNotes > numberOfNotes {
-                AKLog("actualNumberOfNotes: \(actualNumberOfNotes) > numberOfNotes: \(numberOfNotes)")
+            if actualFrequencyCount > frequencyCount {
+                AKLog("actual frequency cont: \(actualFrequencyCount) > frequency count: \(frequencyCount)")
             }
 
             /* The first note of 1/1 or 0.0 cents is implicit and not in the files.*/

            return nil
        }

        AKLog("frequencies: \(noteArray)")
        return noteArray
    }
}

                                // skip degrees of 1 or 2
                                continue
                            } else {
                                scalaFrequencies.append(Frequency(whole))
                                actualFrequencyCount += 1
                                continue
                            }
                        }
