     finally
       @playheadTime = savedPlayheadTime
 
-SampleManager.load()
+SampleManager.loadSamples().done()
 Player.init()
 
 module.exports = {

  init: ->
    context = @audioContext = new window.AudioContext
    bufferManager = @sampleBufferManager = new SampleBufferManager(context)
    bufferManager.onload =>
      @playheadTime = context.currentTime

  note: (note, options={}) ->
    options = _.extend {gain: 1, duration: 3}, options

      bend += name2midi(note) - name2midi(base)
      note = base

    @sampleBufferManager.getNoteBuffer(note).then (buffer) =>
      sourceNode = @audioContext.createBufferSource()
      sourceNode.buffer = buffer
      # TODO different tuning
