FastSineBankGenerator.triangle constructor

FastSineBankGenerator.triangle(
  1. Context context,
  2. double initialFrequency,
  3. int partials
)

Triangle wave.

Implementation

FastSineBankGenerator.triangle(
  final Context context,
  final double initialFrequency,
  final int partials,
) : super(context) {
  synthizer.check(
    synthizer.synthizer.syz_createFastSineBankGeneratorTriangle(
      handle,
      context.handle.value,
      initialFrequency,
      partials,
      nullptr,
      nullptr,
      synthizer.userdataFreeCallbackPointer,
    ),
  );
}