Skip to content

Commit 453ec78

Browse files
Joshsg3Antigravity
authored andcommitted
vibes: add new built-in vibration patterns
Add six new vibration patterns to the system vibe score registry and platform resource maps: - Double Pulse Medium: Medium duration dual pulse pattern - Pebble Morse: Word 'PEBBLE' in Morse code with 75% power dashes - Heartbeat: Organic rhythmic lub-dub heartbeat sequence - Double Tap: Sharp dual haptic pulse feedback - Wave: Rising and falling intensity swell - Imperial: Rhythmic homage sequence Co-Authored-By: Antigravity <noreply@google.com> Signed-off-by: Joshua Galea <joshua.galea@gmail.com>
1 parent 2276b74 commit 453ec78

17 files changed

Lines changed: 439 additions & 0 deletions

File tree

include/pbl/services/vibes/vibes.def

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,9 @@ VIBE_DEF(11, Reveille, "Reveille", AlertType_Alarms, RESOURCE_ID_VIBE_SCORE_REVE
1313
VIBE_DEF(12, Mario, "Mario", AlertType_All, RESOURCE_ID_VIBE_SCORE_MARIO)
1414
VIBE_DEF(13, AlarmsLPM, "ALARMS LPM", AlertType_AlarmsLPM, RESOURCE_ID_VIBE_SCORE_ALARM_LPM)
1515
VIBE_DEF(14, Gentle, i18n_noop("Gentle"), AlertType_Alarms, RESOURCE_ID_VIBE_SCORE_GENTLE)
16+
VIBE_DEF(15, DoublePulseMedium, i18n_noop("Double Pulse Medium"), AlertType_All, RESOURCE_ID_VIBE_SCORE_DOUBLE_PULSE_MEDIUM)
17+
VIBE_DEF(16, PebbleMorse, i18n_noop("Pebble Morse"), AlertType_All, RESOURCE_ID_VIBE_SCORE_PEBBLE_MORSE)
18+
VIBE_DEF(17, Heartbeat, i18n_noop("Heartbeat"), AlertType_All, RESOURCE_ID_VIBE_SCORE_HEARTBEAT)
19+
VIBE_DEF(18, DoubleTap, i18n_noop("Double Tap"), AlertType_All, RESOURCE_ID_VIBE_SCORE_DOUBLE_TAP)
20+
VIBE_DEF(19, Wave, i18n_noop("Wave"), AlertType_All, RESOURCE_ID_VIBE_SCORE_WAVE)
21+
VIBE_DEF(20, Imperial, "Imperial", AlertType_All, RESOURCE_ID_VIBE_SCORE_IMPERIAL)

resources/normal/asterix/resource_map.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,36 @@
301301
"name": "VIBE_SCORE_GENTLE",
302302
"file": "normal/snowy/vibes/gentle.json"
303303
},
304+
{
305+
"type": "vibe",
306+
"name": "VIBE_SCORE_DOUBLE_PULSE_MEDIUM",
307+
"file": "normal/snowy/vibes/double_pulse_medium.json"
308+
},
309+
{
310+
"type": "vibe",
311+
"name": "VIBE_SCORE_PEBBLE_MORSE",
312+
"file": "normal/snowy/vibes/pebble_morse.json"
313+
},
314+
{
315+
"type": "vibe",
316+
"name": "VIBE_SCORE_HEARTBEAT",
317+
"file": "normal/snowy/vibes/heartbeat.json"
318+
},
319+
{
320+
"type": "vibe",
321+
"name": "VIBE_SCORE_DOUBLE_TAP",
322+
"file": "normal/snowy/vibes/double_tap.json"
323+
},
324+
{
325+
"type": "vibe",
326+
"name": "VIBE_SCORE_WAVE",
327+
"file": "normal/snowy/vibes/wave.json"
328+
},
329+
{
330+
"type": "vibe",
331+
"name": "VIBE_SCORE_IMPERIAL",
332+
"file": "normal/snowy/vibes/imperial.json"
333+
},
304334
{
305335
"type": "png",
306336
"name": "SMART_ALARM_ICON_BLACK",

resources/normal/getafix/resource_map.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,36 @@
360360
"name": "VIBE_SCORE_GENTLE",
361361
"file": "normal/snowy/vibes/gentle.json"
362362
},
363+
{
364+
"type": "vibe",
365+
"name": "VIBE_SCORE_DOUBLE_PULSE_MEDIUM",
366+
"file": "normal/snowy/vibes/double_pulse_medium.json"
367+
},
368+
{
369+
"type": "vibe",
370+
"name": "VIBE_SCORE_PEBBLE_MORSE",
371+
"file": "normal/snowy/vibes/pebble_morse.json"
372+
},
373+
{
374+
"type": "vibe",
375+
"name": "VIBE_SCORE_HEARTBEAT",
376+
"file": "normal/snowy/vibes/heartbeat.json"
377+
},
378+
{
379+
"type": "vibe",
380+
"name": "VIBE_SCORE_DOUBLE_TAP",
381+
"file": "normal/snowy/vibes/double_tap.json"
382+
},
383+
{
384+
"type": "vibe",
385+
"name": "VIBE_SCORE_WAVE",
386+
"file": "normal/snowy/vibes/wave.json"
387+
},
388+
{
389+
"type": "vibe",
390+
"name": "VIBE_SCORE_IMPERIAL",
391+
"file": "normal/snowy/vibes/imperial.json"
392+
},
363393
{
364394
"type": "png",
365395
"name": "SMART_ALARM_ICON_BLACK",

resources/normal/obelix/resource_map.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,36 @@
315315
"name": "VIBE_SCORE_GENTLE",
316316
"file": "normal/snowy/vibes/gentle.json"
317317
},
318+
{
319+
"type": "vibe",
320+
"name": "VIBE_SCORE_DOUBLE_PULSE_MEDIUM",
321+
"file": "normal/snowy/vibes/double_pulse_medium.json"
322+
},
323+
{
324+
"type": "vibe",
325+
"name": "VIBE_SCORE_PEBBLE_MORSE",
326+
"file": "normal/snowy/vibes/pebble_morse.json"
327+
},
328+
{
329+
"type": "vibe",
330+
"name": "VIBE_SCORE_HEARTBEAT",
331+
"file": "normal/snowy/vibes/heartbeat.json"
332+
},
333+
{
334+
"type": "vibe",
335+
"name": "VIBE_SCORE_DOUBLE_TAP",
336+
"file": "normal/snowy/vibes/double_tap.json"
337+
},
338+
{
339+
"type": "vibe",
340+
"name": "VIBE_SCORE_WAVE",
341+
"file": "normal/snowy/vibes/wave.json"
342+
},
343+
{
344+
"type": "vibe",
345+
"name": "VIBE_SCORE_IMPERIAL",
346+
"file": "normal/snowy/vibes/imperial.json"
347+
},
318348
{
319349
"type": "png",
320350
"name": "SMART_ALARM_ICON_BLACK",

resources/normal/qemu_emery/resource_map.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,36 @@
315315
"name": "VIBE_SCORE_GENTLE",
316316
"file": "normal/snowy/vibes/gentle.json"
317317
},
318+
{
319+
"type": "vibe",
320+
"name": "VIBE_SCORE_DOUBLE_PULSE_MEDIUM",
321+
"file": "normal/snowy/vibes/double_pulse_medium.json"
322+
},
323+
{
324+
"type": "vibe",
325+
"name": "VIBE_SCORE_PEBBLE_MORSE",
326+
"file": "normal/snowy/vibes/pebble_morse.json"
327+
},
328+
{
329+
"type": "vibe",
330+
"name": "VIBE_SCORE_HEARTBEAT",
331+
"file": "normal/snowy/vibes/heartbeat.json"
332+
},
333+
{
334+
"type": "vibe",
335+
"name": "VIBE_SCORE_DOUBLE_TAP",
336+
"file": "normal/snowy/vibes/double_tap.json"
337+
},
338+
{
339+
"type": "vibe",
340+
"name": "VIBE_SCORE_WAVE",
341+
"file": "normal/snowy/vibes/wave.json"
342+
},
343+
{
344+
"type": "vibe",
345+
"name": "VIBE_SCORE_IMPERIAL",
346+
"file": "normal/snowy/vibes/imperial.json"
347+
},
318348
{
319349
"type": "png",
320350
"name": "SMART_ALARM_ICON_BLACK",

resources/normal/qemu_flint/resource_map.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,36 @@
300300
"name": "VIBE_SCORE_GENTLE",
301301
"file": "normal/snowy/vibes/gentle.json"
302302
},
303+
{
304+
"type": "vibe",
305+
"name": "VIBE_SCORE_DOUBLE_PULSE_MEDIUM",
306+
"file": "normal/snowy/vibes/double_pulse_medium.json"
307+
},
308+
{
309+
"type": "vibe",
310+
"name": "VIBE_SCORE_PEBBLE_MORSE",
311+
"file": "normal/snowy/vibes/pebble_morse.json"
312+
},
313+
{
314+
"type": "vibe",
315+
"name": "VIBE_SCORE_HEARTBEAT",
316+
"file": "normal/snowy/vibes/heartbeat.json"
317+
},
318+
{
319+
"type": "vibe",
320+
"name": "VIBE_SCORE_DOUBLE_TAP",
321+
"file": "normal/snowy/vibes/double_tap.json"
322+
},
323+
{
324+
"type": "vibe",
325+
"name": "VIBE_SCORE_WAVE",
326+
"file": "normal/snowy/vibes/wave.json"
327+
},
328+
{
329+
"type": "vibe",
330+
"name": "VIBE_SCORE_IMPERIAL",
331+
"file": "normal/snowy/vibes/imperial.json"
332+
},
303333
{
304334
"type": "png",
305335
"name": "SMART_ALARM_ICON_BLACK",

resources/normal/qemu_gabbro/resource_map.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,36 @@
360360
"name": "VIBE_SCORE_GENTLE",
361361
"file": "normal/snowy/vibes/gentle.json"
362362
},
363+
{
364+
"type": "vibe",
365+
"name": "VIBE_SCORE_DOUBLE_PULSE_MEDIUM",
366+
"file": "normal/snowy/vibes/double_pulse_medium.json"
367+
},
368+
{
369+
"type": "vibe",
370+
"name": "VIBE_SCORE_PEBBLE_MORSE",
371+
"file": "normal/snowy/vibes/pebble_morse.json"
372+
},
373+
{
374+
"type": "vibe",
375+
"name": "VIBE_SCORE_HEARTBEAT",
376+
"file": "normal/snowy/vibes/heartbeat.json"
377+
},
378+
{
379+
"type": "vibe",
380+
"name": "VIBE_SCORE_DOUBLE_TAP",
381+
"file": "normal/snowy/vibes/double_tap.json"
382+
},
383+
{
384+
"type": "vibe",
385+
"name": "VIBE_SCORE_WAVE",
386+
"file": "normal/snowy/vibes/wave.json"
387+
},
388+
{
389+
"type": "vibe",
390+
"name": "VIBE_SCORE_IMPERIAL",
391+
"file": "normal/snowy/vibes/imperial.json"
392+
},
363393
{
364394
"type": "png",
365395
"name": "SMART_ALARM_ICON_BLACK",
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"comments": "Double Pulse Medium",
3+
"notes": [
4+
{
5+
"id": "pulse_400ms",
6+
"vibe_duration_ms": 400,
7+
"brake_duration_ms": 0,
8+
"strength": 100
9+
},
10+
{
11+
"id": "pause_200ms",
12+
"vibe_duration_ms": 200,
13+
"brake_duration_ms": 0,
14+
"strength": 0
15+
}
16+
],
17+
"pattern": ["pulse_400ms", "pause_200ms", "pulse_400ms"],
18+
"repeat_delay_ms": 1000
19+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"comments": "Double Tap",
3+
"notes": [
4+
{
5+
"id": "tap",
6+
"vibe_duration_ms": 45,
7+
"brake_duration_ms": 15,
8+
"strength": 100
9+
},
10+
{
11+
"id": "pause",
12+
"vibe_duration_ms": 60,
13+
"brake_duration_ms": 0,
14+
"strength": 0
15+
}
16+
],
17+
"pattern": [
18+
"tap", "pause", "tap"
19+
],
20+
"repeat_delay_ms": 1000
21+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"comments": "Heartbeat",
3+
"notes": [
4+
{
5+
"id": "lub",
6+
"vibe_duration_ms": 80,
7+
"brake_duration_ms": 10,
8+
"strength": 55
9+
},
10+
{
11+
"id": "pause_short",
12+
"vibe_duration_ms": 90,
13+
"brake_duration_ms": 0,
14+
"strength": 0
15+
},
16+
{
17+
"id": "dub",
18+
"vibe_duration_ms": 140,
19+
"brake_duration_ms": 10,
20+
"strength": 85
21+
},
22+
{
23+
"id": "pause_long",
24+
"vibe_duration_ms": 500,
25+
"brake_duration_ms": 0,
26+
"strength": 0
27+
}
28+
],
29+
"pattern": [
30+
"lub", "pause_short", "dub", "pause_long",
31+
"lub", "pause_short", "dub"
32+
],
33+
"repeat_delay_ms": 1000
34+
}

0 commit comments

Comments
 (0)