基于 Java Sound 的卡拉 OK 应用与字幕处理
1. SequenceInformation 类
SequenceInformation类是一个便利类,被多个其他类使用。它存储了序列、歌词行和旋律音符的副本,用于通过用户界面展示歌词和旋律,还存储了歌曲标题、设置音符显示范围的最大和最小音符,以及旋律所在的通道。
以下是该类的部分代码:
public class SequenceInformation { private static Sequence sequence = null; private static Vector<LyricLine> lyricLines = null; private static Vector<DurationNote> melodyNotes = null; private static int lang = -1; private static String title = null; private static String performer = null; private static int maxNote; private static int minNote; private static int melodyChannel = -1;// no such channel ... }该类的方法如下:
| 方法 | 描述 |
| — | — |
|