Skip to content

Instantly share code, notes, and snippets.

@pmuellr
Created March 5, 2022 01:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pmuellr/9a21e3f0d4a5ac208e40b20d1d0f843a to your computer and use it in GitHub Desktop.
Save pmuellr/9a21e3f0d4a5ac208e40b20d1d0f843a to your computer and use it in GitHub Desktop.
launchpad-driver flow (early)
sequenceDiagram
    participant I as IPad / html
    participant S as Server / deno
    participant D as DesktopBrowser / html
    participant L as Launchpad / native device
    
    D ->>	L: Find Launchpad
    activate L
    L ->>	D: Found Launchpad
    deactivate L
    
    D ->>	S: Associate MIDI 
    activate S
    S ->>	D: Associated MIDI 
    deactivate S
    
    S ->>	L: Set to program mode

    S ->>	L: Associated MIDI 
    activate L
    activate S
    L ->>	S: Associateded MIDI 
    deactivate L
    deactivate S
    
    I ->> S: Get current status
    activate S
    activate I
    S ->> I: Updates for current status
    deactivate S
    deactivate I
    
    D ->> S: Get current status
    activate S
    activate D
    S ->> D: Updates for current status
    deactivate S
    deactivate D
    
    D ->> S: closing
    D ->>	L: closing / Set to live mode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment