|
import jm.music.data.*; import jm.JMC; import jm.util.*; public class NotateTest implements JMC { public static void main(String[] args) { Phrase phr = new Phrase(); for(int i = 0; i< 50; i++) { Note n = new Note((int)(Math.random()*60 + 30), SQ * (int)(Math.random()*8 + 1)); phr.addNote(n); } View.notate(phr); } } |
To enter notation click the cursor at the end of the phrase, or between notes to insert a note. Notes can be dragged to change their attributes. Dragging up and down will change the note's pitch. Dragging left and right will change the note's rhythmic value. Larger note values are to the right. Dragging past the semi quaver (16th note) to the left reveals a 'delete' option. Releasing the mouse when the word 'delete' is visible will remove that note from the phrase. Dragging further left will change the note into a rest, with increasing rhythmic values further to the left.
The key signature and time signature can also be changed by dragging the cursor up or down in the relevant positions at the beginning of the stave.
As well as mouse editing functions, there is a CPN menu with additional functions, and keyboard short cuts.
New - opens an additional notation window with an empty phrase in it.
Open jMusic file - reads in a jm file and displays the first phrase of the first part.
Open MIDI file - reads in a MIDI file and displays the first phrase in the first track.
Close - ends the notation session.
Play - plays back the phrase. Pressing the spacebar is a short cut. Only works if QuickTime Java is installed.
Stop - ends Quicktime playback.
Delete last note - does the obvious. The 'Delete' key is a short cut.
Clear all notes - removes all notes and rests from the phrase.
Key Signature - toggles the key signature on or off.
Time signature - toggles the time signature on or off.
Save as a jm file - writes the phrase to disk as a jm file.
Save as a MIDI file - write the phrase to disk as a MIDI file.
Stave - opens a sub menu allowing you to switch do a different clef (Treble, Bass, Piano, or Grand).
Quit - end program.
|
|
|
|
|
|