@@ -17,6 +17,7 @@ public class Song implements Cloneable {
1717 private String title ;
1818 private File path ;
1919 private String author ;
20+ private String originalAuthor ;
2021 private String description ;
2122 private float speed ;
2223 private float delay ;
@@ -30,7 +31,7 @@ public class Song implements Cloneable {
3031 */
3132 public Song (Song other ) {
3233 this (other .getSpeed (), other .getLayerHashMap (), other .getSongHeight (),
33- other .getLength (), other .getTitle (), other .getAuthor (),
34+ other .getLength (), other .getTitle (), other .getAuthor (), other . getOriginalAuthor (),
3435 other .getDescription (), other .getPath (), other .getFirstCustomInstrumentIndex (), other .getCustomInstruments (), other .isStereo );
3536 }
3637
@@ -47,8 +48,8 @@ public Song(Song other) {
4748 */
4849 @ Deprecated
4950 public Song (float speed , HashMap <Integer , Layer > layerHashMap ,
50- short songHeight , final short length , String title , String author ,
51- String description , File path ) {
51+ short songHeight , final short length , String title , String author ,
52+ String description , File path ) {
5253 this (speed , layerHashMap , songHeight , length , title , author , description , path , InstrumentUtils .getCustomInstrumentFirstIndex (), new CustomInstrument [0 ], false );
5354 }
5455
@@ -109,23 +110,38 @@ public Song(float speed, HashMap<Integer, Layer> layerHashMap,
109110 String description , File path , int firstCustomInstrumentIndex , CustomInstrument [] customInstruments ) {
110111 this (speed , layerHashMap , songHeight , length , title , author , description , path , firstCustomInstrumentIndex , customInstruments , false );
111112 }
112-
113+
114+ @ Deprecated
113115 public Song (float speed , HashMap <Integer , Layer > layerHashMap ,
114116 short songHeight , final short length , String title , String author ,
115117 String description , File path , int firstCustomInstrumentIndex , boolean isStereo ) {
116- this (speed , layerHashMap , songHeight , length , title , author , description , path , firstCustomInstrumentIndex , new CustomInstrument [0 ], isStereo );
118+ this (speed , layerHashMap , songHeight , length , title , author , "" , description , path , firstCustomInstrumentIndex , new CustomInstrument [0 ], isStereo );
117119 }
118120
121+ @ Deprecated
119122 public Song (float speed , HashMap <Integer , Layer > layerHashMap ,
120- short songHeight , final short length , String title , String author ,
121- String description , File path , int firstCustomInstrumentIndex , CustomInstrument [] customInstruments , boolean isStereo ) {
123+ short songHeight , final short length , String title , String author ,
124+ String description , File path , int firstCustomInstrumentIndex , CustomInstrument [] customInstruments , boolean isStereo ) {
125+ this (speed , layerHashMap , songHeight , length , title , author , "" , description , path , firstCustomInstrumentIndex , customInstruments , isStereo );
126+ }
127+
128+ public Song (float speed , HashMap <Integer , Layer > layerHashMap ,
129+ short songHeight , final short length , String title , String author , String originalAuthor ,
130+ String description , File path , int firstCustomInstrumentIndex , boolean isStereo ) {
131+ this (speed , layerHashMap , songHeight , length , title , author , originalAuthor , description , path , firstCustomInstrumentIndex , new CustomInstrument [0 ], isStereo );
132+ }
133+
134+ public Song (float speed , HashMap <Integer , Layer > layerHashMap ,
135+ short songHeight , final short length , String title , String author , String originalAuthor ,
136+ String description , File path , int firstCustomInstrumentIndex , CustomInstrument [] customInstruments , boolean isStereo ) {
122137 this .speed = speed ;
123138 delay = 20 / speed ;
124139 this .layerHashMap = layerHashMap ;
125140 this .songHeight = songHeight ;
126141 this .length = length ;
127142 this .title = title ;
128143 this .author = author ;
144+ this .originalAuthor = originalAuthor ;
129145 this .description = description ;
130146 this .path = path ;
131147 this .firstCustomInstrumentIndex = firstCustomInstrumentIndex ;
@@ -173,6 +189,14 @@ public String getAuthor() {
173189 return author ;
174190 }
175191
192+ /**
193+ * Gets the original author of the Song
194+ * @return author
195+ */
196+ public String getOriginalAuthor () {
197+ return originalAuthor ;
198+ }
199+
176200 /**
177201 * Returns the File from which this Song is sourced
178202 * @return file of this Song
0 commit comments