Song.java 1.8 KB

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