Transcription Use Case

Yes, that’s helpful, especially the processBlocking.

I’m trying to modify it in a similar way to this post but I’m having difficulty.

a = { |b| // parameterize soundFile buffer
  //Set up some variables
  var meanPitches = FluidDataSet.new(s); //we'll keep our data in here while we process
  ...

  var keys; // declare output variable up top
  var cond = Condition.new;
  ...

    keys.do{|startTime|
      //The mean pitch is the 0th stat, grab it and round
      var meanPitch = data[startTime.asString][0].round;
      "%: %".format(startTime,meanPitch).postln;
    }
  };
  cond.hang;
  keys // or keys.yield
};

fork{ ~result = a.value(b) }
~result; // -> a Routine

Expected output is an Array.