This is Example 3 from JFugue website (JFugue Examples) in Jython.
# JFugue 3. Introduction to Patterns
import sys
sys.path.append("C:/jfugue-5.0.7.jar")
'''
Patterns are one of the fundamental units of music in JFugue.
They can be manipulated in musically interesting ways.
'''
from org.jfugue.player import Player
from org.jfugue.pattern import Pattern
p1 = Pattern("V0 I[Piano] Eq Ch. | Eq Ch. | Dq Eq Dq Cq")
p2 = Pattern("V1 I[Flute] Rw | Rw | GmajQQQ CmajQ")
player = Player()
player.play(p1, p2)
No comments:
Post a Comment