fun Instrument( soundbank: javax.sound.midi.Soundbank?, patch: javax.sound.midi.Patch, name: String?, dataClass: Class<*>? ) { super(soundbank, name, dataClass) this.patch = patch }
Constructs a new MIDI instrument from the specified < code > Patch < /code > . When a subsequent request is made to load the instrument , the sound bank will search its contents for this instrument 's < code > Patch < /code > , and the instrument will be loaded into the synthesizer at the bank and program location indicated by the < code > Patch < /code > object .