     var baseScale = ""
     var tempoBPM = 120
     var tonicNote = 0
-    var addDrums = true
-    
-    OSStaus newMusicSequence
+    var trackHandle = TrackHandle()
     
     //Class Constants
     let majorScaleTones = [0, 2, 5, 7, 9, 12, 14, 17, 21, 24]

    let minorScaleSemis = [2, 7, 14, 19]
    let major = "major"
    let minor = "minor"
    let musicOctave = 12
    let drumOctave = 2
    let harmony = "harmony"
    let melody = "melody"
    let rhythm = "rhythm"
    
    //This function performs the procedural loop generation method
    func notesEngine(compositionType: String) {
        
        if compositionType == self.harmony || compositionType == self.melody {
            var octave = self.musicOctave
            if compositionType == self.melody {
                //delete any lower notes in the event of a collision
            }
        } else if compositionType == self.rhythm {
            var octave = self.drumOctave
            
        } else {
            println("[NotesAndScales - notesEngine]: compositionType must be 'harmony', 'melody' or 'rhythm'")
            exit(-1)
        }
    }
    
    //This function provides notesEngine with the next note in the sequence.
    func scalesGenerator(currentPitch: Int) {
        
        var nextPitch = currentPitch
        
        if self.baseScale == self.major || self.baseScale == self.minor {
            var currentInterval = currentPitch - self.tonicNote
            while currentInterval > self.musicOctave {

- 'melody': monophonic
- 'drums': reduced note range and 'fractal hihats'
*/

import UIKit
import AudioToolbox

class TrackHandle {
    
    func newPart(partLength: Int) {
        
    }
    
    func addNote(trackIndex: Int, trackChannel: Int, pitch: Int, beat: Int, duration: Int, volume: Int ) {
        
    }
    
    
    func writeToFile(fileName: String) {
        
    }
    
    func clearBeat(beat: Int) {
        
    }
    
}

class Notes {
    
