From 2a7b3568792d50e94479298b5d0e5602d4e230f8 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Fri, 7 Nov 2025 17:44:03 +0200 Subject: highlight ramp <-> sawtooth relationship --- docs/FFBEFFECTS.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'docs/FFBEFFECTS.md') diff --git a/docs/FFBEFFECTS.md b/docs/FFBEFFECTS.md index a9a313a..87f5514 100644 --- a/docs/FFBEFFECTS.md +++ b/docs/FFBEFFECTS.md @@ -289,6 +289,16 @@ magnitude + envelope + duration + offset: ### Notes +Ramp is not really an effect supported by the hardware in the wheel itself, +rather it gets emulated by using a single period of a long sawtooth periodic +wave. It's probably still worth documenting here due to it having to be handled +separately from a 'generic' periodic effect. + +In particular, note how the duration of the effect is specified twice in the +packet. Interpreted as a packet for a sawtooth wave, the first duration is the +period of the wave, while the second is the 'actual' duration of the effect. +This encodes that only a single 'ramp' is played. + #### Invert There is a bug in the Windows driver during the Ramp effect update. @@ -340,7 +350,7 @@ Valid: f6 7f - fade_level*** 04 - invert (going "down", 05, going "up", 04) 4f - f7 17 - time again? + f7 17 - time again 00 00 00 00 - offset 00 ff ff - end of init -- cgit v1.3