| ||||||||||
Translation is perfectly fine! (I can't compose at all, I certainly wouldn't expect you to.) But if you want to do your own music, feel free! Mark Guzdial |
import.jm.musicdata.*; import.jm.JMC; import.jm.util.*; import.jm.music.tools.*;
Try this: import jm.music.data.*; import jm.JMC; import jm.util.*; import jm.music.tools.*; --Sebastian
Why "." between import and jm above, Kyle? Mark Guzdial |
If the name of the class is "AmazingGraceSong2," then (as lousy a classname as that IS), you have to say "AmazingGraceSong2 song1 = new AmazingGraceSong2();" Mark Guzdial |
YAY, BETSY AND PERRY! Mark Guzdial |
I've had several people ask me about creating "rest" notes. JMC.REST will work as a "pitch" so new Note(JMC.REST,JMC.HN) will create a half note rest. Mark Guzdial |
To play more than one note at a time in JMusic, I think that you have to use multiple parts. Each part plays one note, and when all play together, you get your chords. Mark Guzdial |
Could be. If you want parts to play simultaneously, in parallel, each has to have its own MIDI channel. They start at 1 and increase, I think up to 32 or 64. Mark Guzdial |
If you just play random notes, the odds of the sound being "good" (nice chords, not sounding totally random) is pretty slim. If, as Kyle was asking about yesterday, you only play octaves of "C" – or better yet, octaves of C, E, and G, you'll get a nice chord. It may not be interesting, but it won't make you cringe. Mark Guzdial |
On the "starting later" part – you have to EXCPLICITLY set a non-0.0 start time for some phrase or part. Just putting in some rests at the beginning doesn't count. I want you to explore the methods a bit more. Thanks! Mark Guzdial |