Song.java 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. package audio;
  2. import java.io.File;
  3. import java.util.ArrayList;
  4. import java.util.List;
  5. public class Song {
  6. private String title;
  7. private String subtitle;
  8. private String author;
  9. private double sample_start;
  10. private double BPM;
  11. private File audio;
  12. private File background;
  13. private File banner;
  14. private File file;
  15. private List<SongInstance> songs;
  16. public Song()
  17. {
  18. title = "";
  19. subtitle = "";
  20. author = "";
  21. sample_start = 0;
  22. BPM = 0.0;
  23. audio = null;
  24. background = null;
  25. banner = null;
  26. file = null;
  27. songs = new ArrayList<SongInstance>();
  28. }
  29. public void addSongInstance(SongInstance s)
  30. {
  31. songs.add(s);
  32. }
  33. public String getTitle() {
  34. return title;
  35. }
  36. public void setTitle(String title) {
  37. this.title = title;
  38. }
  39. public String getSubtitle() {
  40. return subtitle;
  41. }
  42. public void setSubtitle(String subtitle) {
  43. this.subtitle = subtitle;
  44. }
  45. public String getAuthor() {
  46. return author;
  47. }
  48. public void setAuthor(String author) {
  49. this.author = author;
  50. }
  51. public double getSampleStart() {
  52. return sample_start;
  53. }
  54. public void setSampleStart(double sample_start) {
  55. this.sample_start = sample_start;
  56. }
  57. public double getBPM() {
  58. return BPM;
  59. }
  60. public void setBPM(double bPM) {
  61. BPM = bPM;
  62. }
  63. public File getAudio() {
  64. return audio;
  65. }
  66. public void setAudio(File audio) {
  67. this.audio = audio;
  68. }
  69. public File getBackground() {
  70. return background;
  71. }
  72. public void setBackground(File background) {
  73. this.background = background;
  74. }
  75. public File getBanner() {
  76. return banner;
  77. }
  78. public void setBanner(File banner) {
  79. this.banner = banner;
  80. }
  81. public File getFile() {
  82. return file;
  83. }
  84. public void setFile(File file) {
  85. this.file = file;
  86. }
  87. public List<SongInstance> getSongs() {
  88. return songs;
  89. }
  90. }