Example usage for javax.sound.midi Synthesizer loadAllInstruments

List of usage examples for javax.sound.midi Synthesizer loadAllInstruments

Introduction

In this page you can find the example usage for javax.sound.midi Synthesizer loadAllInstruments.

Prototype

boolean loadAllInstruments(Soundbank soundbank);

Source Link

Document

Loads onto the Synthesizer all instruments contained in the specified Soundbank .

Usage

From source file:com.music.Generator.java

public static void loadSoundbankInstruments(Synthesizer synthesizer) {
    for (Soundbank soundbank : soundbanks) {
        synthesizer.loadAllInstruments(soundbank);
    }/* w w  w . j  ava  2s  .  c o  m*/
}