public abstract class Instrument extends SoundbankResource
Modifier | Constructor and Description |
---|---|
protected |
Instrument(Soundbank soundbank, Patch patch, String name, 类<?> dataClass)
从指定的
Patch 构造了一种新的MIDI乐器。
|
Modifier and Type | Method and Description |
---|---|
Patch |
getPatch()
获得
Patch 指示银行计划在本仪器要存放在合成器的数字。
|
getData, getDataClass, getName, getSoundbank
protected Instrument(Soundbank soundbank, Patch patch, String name, 类<?> dataClass)
Patch
构造了一种新的MIDI乐器。当后续请求负载的仪器,健全的银行会搜索其内容为本仪器的
Patch
,和仪器将被加载到合成器在银行和程序由
Patch
对象的显示位置。
soundbank
健全银行包含仪器
patch
-该仪器的补丁
name
-这个乐器的名字
dataClass
-用来表示样本数据的类。
Synthesizer.loadInstrument(Instrument)
public Patch getPatch()
Patch
指示银行计划在本仪器要存放在合成器的数字。
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.