tobiatesan / abc4j

Automatically exported from code.google.com/p/abc4j
0 stars 1 forks source link

Staccato doesn't render #23

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Run the following code:

public static void main (String[] arg) {
        Tune tune = new Tune();
        Tune.Music music = tune.getMusic();
        Note note = new Note(Note.C);
        note.setStaccato(true);
        music.addElement(note);
        JScoreComponent scoreUI =new JScoreComponent();
        scoreUI.setTune(tune);
        JFrame j = new JFrame();
        j.add(scoreUI);
        j.pack();
        j.setVisible(true);
}

What is the expected output? What do you see instead?
Expected output: a note with staccato
Actual output: see attachment.

What version of the product are you using? On what operating system?
I'm using the latest version of the abc4j jar; 0.5.
OpenSUSE linux 11.4, java environment:

java version "1.6.0_20"
OpenJDK Runtime Environment (IcedTea6 1.9.7) (suse-1.2.1-x86_64)
OpenJDK 64-Bit Server VM (build 19.0-b09, mixed mode)

Original issue reported on code.google.com by odysso...@gmail.com on 12 Jun 2011 at 12:25

Attachments:

GoogleCodeExporter commented 9 years ago
This will be fixed.
Using the current SVN version you can call note.setDecorations(new Decoration[] 
{ new Decoration(Decoration.STACCATO) });

Next commit to SVN will be simpler : note.addDecoration(new 
Decoration(Decoration.STACCATO));

Original comment by iubito@gmail.com on 8 Jan 2015 at 8:56