Package jm.music.data

Examples of jm.music.data.Rest


            }
        } else {
            for (int i = 0; i < ctx.getMeasures(); i++) {
                Note note = NoteFactory.createNote(40 + random.nextInt(30), ctx.getNormalizedMeasureSize() / 4);
                phrase.add(note);
                phrase.add(new Rest(ctx.getNormalizedMeasureSize() - note.getRhythmValue()));
            }
        }

        drumPart.add(phrase);
View Full Code Here


                        if (durationModifier > 0) {
                            note.setDuration(note.getRhythmValue() * durationModifier);
                        }
                        bassPhrase.addNote(note);
                    } else {
                        bassPhrase.addRest(new Rest(ctx.getNormalizedMeasureSize() / 2));
                    }
                }
            }
            bassPart.addPhrase(bassPhrase);
        }
View Full Code Here

TOP

Related Classes of jm.music.data.Rest

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.