1

I have download Grevill gervill.jar and with my existing code follow from: http://www.jsresources.org/examples/MidiPlayer.html

Could anyone spare a little effort to write a tutorial on loading SF2 soundbank? I would cry without a tutorial on the web.

Erick Robertson
  • 32,125
  • 13
  • 69
  • 98
Proyb2
  • 995
  • 6
  • 13
  • 35

2 Answers2

1
new SF2Soundbank(new FileInputStream(new File("sb.sf2")));

Then you just load all the instruments in the synthesizer.

Per
  • 11
  • 1
0

Do some research.

If you want to learn how this code works, download it and try it. Generate javadoc API reference docs from the source. Try to figure it out. If you have problems getting it to work, post another question like this, but include specific details of the problem you are having.

You'll get a much better response this way. Stack Overflow is not someplace to find someone to do your research work for you.

Erick Robertson
  • 32,125
  • 13
  • 69
  • 98
  • 1
    The problem is, lack of tutorials and docs. How about try to code it yourself and see if you know how? And how many applications have used Gervill? As far as I know there is only one or two and the code are in OO style. There is only a tiny fraction of music programmers here which is not good. Please tell me where should I asked? Java engineer? – Proyb2 Dec 05 '10 at 13:56