Sunday, January 22, 2017

JFugue Jython Example 1. "Hello, World" in JFugue

The JFugue website has 18 examples (JFugue Examples).


The examples are in Java. This is Jython for Example 1. This assumes jar file is in C: drive.


# JFugue Example 1. "Hello, World" in JFugue

'''
Create music with only a few lines of code!
'''

import sys
sys.path.append("C:/jfugue-5.0.7.jar")

from org.jfugue.player import Player

player = Player()
player.play("C D E F G A B")

1 comment:

  1. Hello JawadQ,
    I like this approach vs the ECLIPSE Dev.
    Many Thanks,
    AW

    ReplyDelete