clip.proto 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /* WARNING!! This message format is in pre-alpha development. There is a high
  2. * probability any of these formats will change, which will cause prior
  3. * versions to no longer work. You are more than welcome to setup to help us
  4. * develop and/or test, but it is NOT recommend you use the server or message
  5. * formats for production purposes until we at least reach beta development.
  6. * Thank you.
  7. */
  8. syntax = "proto3";
  9. import "time.proto";
  10. import "enums.proto";
  11. /* Clip: This message contains actual sound data, be it audio or MIDI. Audio
  12. * will be sent/received/stored in .flac format to remain lossless yet reduce
  13. * bandwidth/storage space consumed. Patches for DAWs that cannot read flac
  14. * directly will need to convert the .flac files to .wav files before storing
  15. * locally.
  16. */
  17. message Clip {
  18. string uri = 1;
  19. string name = 2; // This is the filename of the clip w/o extension.
  20. DataType type = 3;
  21. bytes data = 4;
  22. }
  23. /* ClipTime: Used for the collection in the Track that keeps track of what
  24. * clips are used where. It includes start/stop times, both from a Track
  25. * perspective and a Clip perspective.
  26. */
  27. message ClipTime {
  28. string uri = 1;
  29. string clip_uri = 2;
  30. Time track_start_time = 3;
  31. Time track_end_time = 4;
  32. Time clip_start_time = 5;
  33. Time clip_end_time = 6;
  34. }