> For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.

# flows/02-keyboard-sampler.yaml

[Source](https://github.com/leapgame/leap-sim-piano/blob/f794b594016038c483e2d20b6af56aea0ae1b982/.maestro/flows/02-keyboard-sampler.yaml)

```yaml
appId: ${APP_ID}
tags:
  - keyboard
  - sampler
---
# 02 - Free-play Keyboard Sampler & Audio Controls Flow

# 1. Launch & Bootstrap App
- runFlow:
    file: "../subflows/bootstrap-app.yaml"

# 2. Navigate to Keyboard Screen
- tapOn:
    id: "tab-launcher-keyboard"
- assertVisible:
    id: "keyboard-screen-root"

# 3. Test Zoom In / Zoom Out Controls
- assertVisible:
    id: "keyboard-zoom-in"
- tapOn:
    id: "keyboard-zoom-in"
- tapOn:
    id: "keyboard-zoom-in"

- assertVisible:
    id: "keyboard-zoom-out"
- tapOn:
    id: "keyboard-zoom-out"

# 4. Test Minimap Drag / Pan Navigation
- assertVisible:
    id: "keyboard-minimap"
- swipe:
    from:
      id: "keyboard-minimap"
    direction: "RIGHT"
    duration: 500

# 5. Test Sustain Pedal Toggle
- assertVisible:
    id: "keyboard-sustain-toggle"
- tapOn:
    id: "keyboard-sustain-toggle"
# Turn off sustain pedal
- tapOn:
    id: "keyboard-sustain-toggle"

# 6. Tap Piano Key Surface (Center Area) to trigger Sampler Audio
- tapOn:
    point: "50%,75%"

# 7. Return to Song List Tab
- tapOn:
    id: "keyboard-back-button"
- assertVisible:
    id: "tab-button-songs"
```
