Thanks for the advice on the sound signal. So even if midi can't work,
just forcefully allow wav files.
? I do not understand what you mean by 'forcefully', but
WAV files, as well as AU files are 'sampled sound' files.
If you can convert your MIDI to either of those types of
sampled sound format (or some other type*), I suspect
you have the major part of the task done.
* I mentioned AU and WAV because core Java understands
them. But if you add the JMF, that opens up a lot more
formats.
That being said, if you want to continue with the MIDI's,
I think you should at first stick to AU's or WAVs and core
J2SE, notably packages javax.sound.sampled &
javax.sound.midi.
The other problem would be much tougher. I have no idea how to open up
the avi file as a stream in Java and putting music in it. Will need to
look further into this issue.
That is where the JMF comes in - in fact, if MIDI is
unimportant and you just want 'sound in your AVI'
you should go straight to the JMF.
Then you can use any old WAV or AU (or MP3..) and try
stitching it in as the soundtrack of an existing AVI.
I have not used the JMF much, beyond playing with
JMStudio (which was quite handy recently in helping
me strip the soundtrack *out* of MOV files!).
By the way - please trim earlier words that are not needed,
and put your comments in-between the earlier words that
*are* needed (as I did above).
'In-line' posting makes threads much easier to understand.
HTH
Andrew T.