project.proto 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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 "person.proto";
  10. import "time.proto";
  11. /* Project:
  12. * uri: Eventually, I think I want this to be the webpage of the
  13. * server's web client that points to the project's main page (e.g.
  14. * example.org/user/project_name). For now, for testing purposes we can use
  15. * something like 'testserver1/project_name' until we nail down person and
  16. * server web client implementations.
  17. * contributers: A list of person uris and their ContributionType.
  18. */
  19. message Project {
  20. string uri = 1;
  21. ProjectType type = 2;
  22. string name = 3;
  23. string copyright_date = 4;
  24. string copyright_license = 5;
  25. repeated Contributer contributers = 6;
  26. repeated TimeSignature time_signatures = 7;
  27. repeated Tempo tempos = 8;
  28. repeated Marker markers = 9;
  29. uint32 sample_rate = 10;
  30. uint32 bit_depth = 11;
  31. }
  32. /* TimeSignature: Also known as meter. Examples: 3/4, 4/4, 6/8. */
  33. message TimeSignature {
  34. uint32 beats_per_measure = 1;
  35. uint32 note_value = 2; // quarter note = 4, eighth note = 8, etc.
  36. Time start_time = 3;
  37. Time end_time = 4;
  38. }
  39. /* Tempo: aka BPM. Though typically expressed as an integer (e.g. 140 bpm),
  40. * some DAWs allow a float (e.g. 140.038 bpm). Therefore, represented as a
  41. * float across the board. */
  42. message Tempo {
  43. float bpm = 1;
  44. Time start_time = 2;
  45. Time end_time = 3;
  46. TempChangeType change_type = 4;
  47. Time change_start_time = 5; // What time to start ramp to new tempo
  48. }
  49. /* Marker: This is a way to mark a part of a project, even start time, end
  50. * time, loop/punch points, verse/chorus, etc.) as reference points. */
  51. message Marker {
  52. MarkerType type = 1;
  53. Time time = 2;
  54. string text = 3; // Used for GenericMarker
  55. }
  56. /* ProjectType: Identifies what type the project is (e.g. audio, video, ?) */
  57. enum ProjectType {
  58. Audio = 0;
  59. Video = 1;
  60. }
  61. /* TempChangeType: Some DAWs allow the user to gradually change from one tempo
  62. * to another by "ramping" to the new tempo. This identifies if the change is
  63. * fixed (changes immediately) or ramped. */
  64. enum TempoChangeType {
  65. Fixed = 0;
  66. Ramped = 1;
  67. }
  68. /* MarkerType: Identifies the type of marker that is being referenced. Some
  69. * DAWs may treat some of these Marker Types in different ways. */
  70. enum MarkerType {
  71. GenericMarker = 0;
  72. TrackStart = 1;
  73. TrackEnd = 2;
  74. LoopStart = 3;
  75. LoopEnd = 4;
  76. PunchIn = 5;
  77. PunchOut = 6;
  78. }