Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 1.04 KB

protocol.md

File metadata and controls

34 lines (24 loc) · 1.04 KB

BGPiano Protocol

Signaling

Note On / Note Off

To comply with the metaphor of a key being pressed and released, note on / off messages should be mapped to route add / withdraw messages. The route itself doesn't matter and should be ignored; the event should be encoded in an extended community in the following format:

  • Type: 0x88 (1 byte)123
  • Subtype: 0x00 (1 byte)
  • Value (6 bytes)
    • channel (1 byte)
    • note (1 byte)
    • velocity (1 byte)
    • undefined (3 byte)

General MIDI Message

Extended Community

  • Type: 0x88 (1 byte)123
  • Length (1 byte)
  • MIDI message (max. 6 bytes)

Large Community

TBD.

Footnotes

  1. BGP Extended Communities Attribute 2

  2. Border Gateway Protocol (BGP) Extended Communities - IANA 2

  3. IANA Registries for BGP Extended Communities 2