time.proto 414 B

123456789101112131415161718192021
  1. syntax = "proto3";
  2. /* Time: Used to identify at what point something occurs. Used in numerous
  3. * other messages. */
  4. message Time {
  5. TimeType type = 1;
  6. string time = 2;
  7. }
  8. /* TimeType: Identifies the format of the time used in the message. */
  9. enum TimeType {
  10. HMS = 0; // Hours:Minutes:Seconds.milliseconds
  11. MeasureBar = 1; // # Measures:Bar (How to represent certain beat?)
  12. Sample = 2;
  13. TimeCode = 3;
  14. }