将歌曲转换为音符

时间:2019-05-24 10:25:56

标签: java

我希望用户选择一首歌曲,然后向用户显示笔记音乐,乐谱和手风琴。

http://www.jfugue.org 我也用过这个库

ChordProgression cp = new ChordProgression ("I IV V");
Chord[] chords = cp.setKey ("C").getChords ();
for (Chord chord : chords)
{
  System.out.print ("Chord " + chord + " has these notes: ");
  Note[] notes = chord.getNotes ();
  for (Note note : notes)
  {
     System.out.print (note + " ");
  }
   System.out.println ();
}

Player player = new Player ();
player.play (cp);

我想显示每首歌曲的信息

0 个答案:

没有答案