|
Control Surface API
1.1.11
|
00001 package com.bitwig.base.control_surface.iface; 00002 00003 import com.bitwig.base.control_surface.ControlSurfaceException; 00004 import org.mozilla.javascript.Callable; 00005 00011 public interface Device 00012 { 00020 DeviceChain getDeviceChain(); 00021 00028 void addPositionObserver(Callable callback); 00029 00037 BooleanValue isWindowOpen(); 00038 00045 BooleanValue isExpanded(); 00046 00053 BooleanValue isMacroSectionVisible(); 00054 00061 BooleanValue isParameterPageSectionVisible(); 00062 00071 AutomatableRangedValue getParameter(int indexInPage) throws ControlSurfaceException; 00072 00081 AutomatableRangedValue getEnvelopeParameter(int index) throws ControlSurfaceException; 00082 00091 AutomatableRangedValue getCommonParameter(int index) throws ControlSurfaceException; 00092 00101 ModulationSource getModulationSource(int index) throws ControlSurfaceException; 00102 00111 Macro getMacro(int index) throws ControlSurfaceException; 00112 00119 void addHasSelectedDeviceObserver(Callable callback); 00120 00126 void previousParameterPage(); 00127 00133 void nextParameterPage(); 00134 00141 void addPreviousParameterPageEnabledObserver(Callable callback); 00142 00149 void addNextParameterPageEnabledObserver(Callable callback); 00150 00157 void setParameterPage(int page); 00158 00164 void switchToPreviousPreset(); 00165 00171 void switchToNextPreset(); 00172 00178 void switchToPreviousPresetCategory(); 00179 00185 void switchToNextPresetCategory(); 00186 00192 void switchToPreviousPresetCreator(); 00193 00199 void switchToNextPresetCreator(); 00200 00210 void addNameObserver(int len, String textWhenUnassigned, Callable callback); 00211 00221 void addPresetNameObserver(int len, String textWhenUnassigned, Callable callback); 00222 00232 void addPresetCategoryObserver(int len, String textWhenUnassigned, Callable callback); 00233 00243 void addPresetCreatorObserver(int len, String textWhenUnassigned, Callable callback); 00244 00253 void addSelectedPageObserver(int valueWhenUnassigned, Callable callback); 00254 00264 void addActiveModulationSourceObserver(int len, String textWhenUnassigned, Callable callback); 00265 00273 void addPageNamesObserver(Callable callback); 00274 00287 void addPresetNamesObserver(Callable callback); 00288 00294 void loadPreset(int index); 00295 00303 void addPresetCategoriesObserver(Callable callback); 00304 00310 void setPresetCategory(int index); 00311 00319 void addPresetCreatorsObserver(Callable callback); 00320 00326 void setPresetCreator(int index); 00327 00333 void toggleEnabledState(); 00334 00341 void addIsEnabledObserver(Callable callback); 00342 00351 Value hasSlots(); 00352 00360 void addSlotsObserver(Callable callback); 00361 00369 DeviceSlot getCursorSlot(); 00370 00377 BooleanValue isNested(); 00378 00385 BooleanValue hasLayers(); 00386 00393 BooleanValue hasDrumPads(); 00394 00402 DeviceLayerBank createLayerBank(final int numChannels) throws ControlSurfaceException; 00403 00411 DrumPadBank createDrumPadBank(final int numPads) throws ControlSurfaceException; 00412 00420 CursorDeviceLayer createCursorLayer() throws ControlSurfaceException; 00421 00430 void addDirectParameterIdObserver(Callable callback); 00431 00439 void addDirectParameterNameObserver(int maxChars, Callable callback); 00440 00452 DirectParameterValueDisplayObserver addDirectParameterValueDisplayObserver(int maxChars, Callable callback); 00453 00462 void addDirectParameterNormalizedValueObserver(Callable callback); 00463 00472 void setDirectParameterValueNormalized(String id, Number value, Number resolution); 00473 00484 void incDirectParameterValueNormalized(String id, Number increment, Number resolution); 00485 00496 void addSampleNameObserver(int maxChars, String textWhenUnassigned, Callable callback); 00497 00507 DeviceBank createSiblingsDeviceBank(int numDevices) throws ControlSurfaceException; 00508 }