我正在学习JFugue,但我在文档中找不到如何同时播放两个或更多旋律线,你知道,就像在乐队中,当贝司琴与鼓,吉他和键盘并行播放时。
提前致谢
I'm learning JFugue but I couldn't find in the documentation how can I play two or more melody lines at the same time, you know, like in a band when the line bass plays in parallel with the drums, guitars and keyboards.
Thanks in advance
最满意答案
您可以使用两个不同的通道或声音来完成此操作。 JFugue有这样的V命令:
player.play("V1 I[Piano] CDE V2 I[Flute] DFA"); 在旋律中演奏两行。
你可以有16个声音(编号为0到15)。 请注意,V9是特殊的 - 它是一个打击乐轨道,每个音符对应一个特定的打击乐器(例如,在V9中,“C5”听起来像一个高小鼓)。
You do this by using two different channels, or voices. JFugue has the V command for this:
player.play("V1 I[Piano] C D E V2 I[Flute] D F A"); plays two lines in melody.
You can have 16 voices (numbered 0 through 15). Note that V9 is special - it is a percussion track, and each note corresponds to a specific percussion instrument (e.g., In V9, "C5" will sound like a high bongo).
更多推荐
发布评论