title: AudioKit / AVAudioEngine play nodes in sequence
body: <p>I have some audio playing with Audiokit / AVAudioEngine and I would like to be able to play one node after another without any gaps. Here is what I have so far.</p>
  
  <pre><code>var file:AKAudioFile!
      var node:AKPlayer!
      var node1:AKPlayer!
      var mixer:AKMixer!
  
      func playInSequence()
      {
          do
          {
              file = try AKAudioFile(readFileName: "Song.m4a", baseDir: .resources)
  
              node = AKPlayer(audioFile: file)
              node.startTime = 10
              node.endTime = 20
              node.buffering = .dynamic
              node.prepare()
              node.completionHandler =
              {
                  print("node complete");
              }
  
              node1 = AKPlayer(audioFile: file)
              node1.startTime = 20
              node1.endTime = 30
              node1.buffering = .dynamic
              node1.prepare()
              node1.completionHandler =
              {
                  print("node1 complete");
              }
  
              mixer = AKMixer(node, node1)
  
              AudioKit.output = mixer
  
              try AudioKit.start()
  
              let future = AVAudioTime.now()
              node.play(at: future)
  
              let future2 = AVAudioTime.now() + 10
              node1.play(at: future2)
          }
          catch
          {
  
          }
      }
  </code></pre>
  
  <p>Please forgive me if I'm doing it all wrong. I really don't know what I'm doing.</p>