You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
evt.Description=" Meta Tempo "+evt.Param0+" (duration :"+track.Duration+")";
784
+
evt.Description=$" Meta Tempo {evt.Param0}(duration :{track.Duration})";
785
785
track.Add(evt);
786
786
787
787
// Sets song tempo as last tempo event of 1st track
@@ -802,7 +802,7 @@ private MidiTrack parseTrack(byte[] data, int trackNumber)
802
802
// TODO : store the arguments in a solid structure within MidiEvent
803
803
evt=newMidiEvent(currentTicks,meta,-1,-1);
804
804
evt.isMetaEvent=true;
805
-
evt.Description=" Meta SMPTE "+h+" "+m+" "+s+" "+f+" "+fh;
805
+
evt.Description=$" Meta SMPTE {h}{m}{s}{f}{fh}";
806
806
track.Add(evt);
807
807
808
808
position+=8;
@@ -816,7 +816,7 @@ private MidiTrack parseTrack(byte[] data, int trackNumber)
816
816
// TODO : store the arguments in a solid structure within MidiEvent
817
817
evt=newMidiEvent(currentTicks,meta,-1,-1);
818
818
evt.isMetaEvent=true;
819
-
evt.Description=" Meta TimeSig "+z+"/"+t+" "+mc+" "+c;
819
+
evt.Description=$" Meta TimeSig {z}/{t}{mc}{c}";
820
820
track.Add(evt);
821
821
822
822
position+=7;
@@ -832,7 +832,7 @@ private MidiTrack parseTrack(byte[] data, int trackNumber)
832
832
caseMidiEvents.META_SEQUENCER_DATA:// Sequencer specific data
833
833
position+=2;
834
834
len=readVarLen(refdata,refposition);
835
-
if((len+position)>trackLen)thrownewInvalidDataException("SeqSpec has corrupt variable length field ("+len+") [track: "+trackNumber+" dt: "+currentDelta+"]");
835
+
if((len+position)>trackLen)thrownewInvalidDataException($"SeqSpec has corrupt variable length field ({len}) [track: {trackNumber}dt: {currentDelta}]");
0 commit comments