execute method

Complex32List execute(
  1. Float32List input
)

Computes the non-redundant complex spectrum of a real-valued input frame.

Example:

final z = plan.execute(frame);
print('DC = ${z.realAt(0)}');

Implementation

Complex32List execute(Float32List input) {
  final r = res;
  _loadInput(input);
  yl_fft_plan_execute_r2c(r.plan, r.input, r.re, r.im);

  re.setAll(0, r.re.asTypedList(bins));
  im.setAll(0, r.im.asTypedList(bins));

  return Complex32List.wrap(re, im);
}