MCPcopy Create free account
hub / github.com/VCVRack/Rack / trigger

Method trigger

include/dsp/digital.hpp:189–194  ·  view source on GitHub ↗

Begins a trigger with the given `duration`. */

Source from the content-addressed store, hash-verified

187
188 /** Begins a trigger with the given `duration`. */
189 void trigger(float duration = 1e-3f) {
190 // Keep the previous pulse if the existing pulse will be held longer than the currently requested one.
191 if (duration > remaining) {
192 remaining = duration;
193 }
194 }
195};
196
197

Callers 4

pressNoteMethod · 0.80
processSystemMethod · 0.80
pressNoteMethod · 0.80
refreshHeldMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected