Introducing LavaBeats - #428
Open
JuanSMartinez wants to merge 6 commits into
Open
Conversation
added 6 commits
July 30, 2026 11:37
This is a utility to construct the LavaBeats haptic effect from pulse parameters that represent the QRS and T wave biomarker in an EKG
This encapsulates the business logic of playin the haptics beat effect as well as handling the graphical visualization triggers and logic
This is the runtime fragment shader that renders the graphical representation of a lava lamp, which beats at the same rythm of the haptic beat effect
This is the display of the runtime shader
These control the haptic effect parameters, which are also used to control the fragment shader visualization timings and beating
This finally adds the LavaBeatsScreen and introduces the demo into the samples app
JuanSMartinez
requested review from
alabiaga,
ashnohe,
madebymozart and
yrezgui
as code owners
July 30, 2026 21:26
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
LavaBeats is an educational self-contained app that demonstrates the design of a complex haptic signal using advanced haptic PWLE APIs. By mapping bio-markers of a typical EKG signal into amplitude and frequency segments, the app is able to compose a vibration that beats and resembles the pulses of a beating heart. To accompany the haptic effect, the app has a "lava lamp" visualization that beats at the same rhythm as the haptic effect.
Users can modify the settings of the effect by changing amplitudes, frequencies, delays, number of beats and beats-per-minute to emulate different beating patterns and sensations.
This app will also have a section in the Android haptics public documentation, which will detail the design process and the mapping between biomarkers and haptic signal parameters.