Author Topic: Get the next line of midi lyrics  (Read 101 times)

dream1994

  • Posts: 1
Get the next line of midi lyrics
« on: 31 Dec '22 - 02:49 »
Hello, I am developing an android application. How can I get the next line of midi lyrics?

Ian @ un4seen

  • Administrator
  • Posts: 25059
Re: Get the next line of midi lyrics
« Reply #1 on: 2 Jan '23 - 14:32 »
You can get all lyric events from BASS_MIDI_StreamGetMarks (with BASS_MIDI_MARK_LYRIC or sometimes BASS_MIDI_MARK_TEXT), and set a BASS_SYNC_MIDI_MARK sync (again with BASS_MIDI_MARK_LYRIC or BASS_MIDI_MARK_TEXT) via BASS_ChannelSetSync to be informed when playback reaches a new lyric event. When the sync is triggered with the current lyric event, you can then get the next line in the events that you got earlier from BASS_MIDI_StreamGetMarks. Please see the documentation for details on the mentioned functions/options.