Navigation
API > API/Plugins > API/Plugins/HarmonixMetasound > API/Plugins/HarmonixMetasound/FPulseGenerator
Description
Set the Duty Cycle of the pulse
The Duty Cycle defines the duration of the pulse as a percentage of the Interval.
for example:
- Duty Cycle = 1.0: pulse will span the entire length of the interval
- Duty Cycle = 0.5: pulse will span half the length of the interval
| Name | SetDutyCycle |
| Type | function |
| Header File | /Engine/Plugins/Runtime/Harmonix/Source/HarmonixMetasound/Public/HarmonixMetasound/MidiOps/PulseGenerator.h |
| Include Path | #include "HarmonixMetasound/MidiOps/PulseGenerator.h" |
| Source | /Engine/Plugins/Runtime/Harmonix/Source/HarmonixMetasound/Private/HarmonixMetasound/MidiOps/PulseGenerator.cpp |
void SetDutyCycle
(
float InDutyCycle
)