if I compile with java8 everything is fine.Which java version are you using?
No, you will need to create a list or map of the events from the track if you want to do this and manage it yourself.Capture the Next MetaMessage event, is possible?
Yes.Have you changed the code in Midievent.ToString?
Although it is asking for a characterset, it is not using it. There is a bug. If you change the references of UTF-8 to ChrSet does it help?
Now I have fixed the bug, the app crashes within the IDE, it appears that ISO-8859-16 is not supported by java. Try a different encoding.I had to use ISO-8859-16 to show the words with the accent, otherwise utf-8 puts me a wrong character.
Now I have fixed the bug, the app crashes within the IDE, it appears that ISO-8859-16 is not supported by java. Try a different encoding.
I will release the fixed library shortly. You will need to copy the following classes to your project if you are not using the library:
MidiTrack
MidiEventBuilder
MidiEventStatic
MidiEvent
MidiMessageBuilder
MidiMetaMessage
And add the ChrSet to the calls to the relevant methods, this will be obvious in the log.
No, you will need to create a list or map of the events from the track if you want to do this and manage it yourself.
Can you start a new thread for this issue so that this one doesn't become a spaghetti thread. It's easier to follow issues in their own thread. I will look at the old simple chord app, thanks for reporting that.steve, I am trying to make a midi sequencer (just use Windows internal midi to playback) and I found the simple chord example you shared doesn't compile. I tried clone receiver code in that example and it also doesn't work. Now I am using sequencer but during playing any parameter changes in real-time like bpm or event I will have to stop the sequencer, regenerate the midi sequence and play again. Any advice? Thanks.
A bit more investigation and apparently ISO-8859-16 is supported in java 10+, I tried compiling with java 11 and it doesn't crash. I can't tell if it's working correctly as I don't have a midi file encoded using it. You will then need to create a package to run it stand alone.ISO-8859-16
Thank you, it's nice to hear from you.It's looking good, although it doesn't load all of my midi files. I have very few with lyrics so cant test much of that.
Private Sub MidiData_Event (MethodName As String, Args() As Object)
Dim Msg As MidiMessage
Msg.Initialize
Msg.SetObject(Args(0))
For Each LT As MidiListenerClass In ListenerMap.Keys
CallSub3(LT.Callback,LT.EventName & "_Received",Msg,Args(1))
Next
End Sub
Seqr.GetTransmitter.AddListener(Me,"Trans")
Private Sub Trans_Received(Msg As MidiMessage, TimeStamp As Long)
If Msg.IsShortMessage Then
Dim SM As MidiShortMessage = Msg.AsShortMessage
If SM.GetCommand = MidiStatus.NOTE_ON Or SM.GetCommand = MidiStatus.NOTE_OFF Then
Log(SM.GetCommand & " : " & SM.GetChannel & " : " & SM.GetData1 & " : " & SM.GetData2)
End If
End If
End Sub