|
Control Surface API
1.1.11
|
00001 package com.bitwig.base.control_surface.iface; 00002 00003 import org.mozilla.javascript.Callable; 00004 00005 import com.bitwig.base.control_surface.ControlSurfaceException; 00006 00043 public interface Host 00044 { 00061 void defineController( 00062 String vendor, 00063 String name, 00064 String version, 00065 String uuid, 00066 String author) throws ControlSurfaceException; 00067 00078 void defineMidiPorts(int numInports, int numOutports); 00079 00088 MidiIn getMidiInPort(int index) throws ControlSurfaceException; 00089 00098 MidiOut getMidiOutPort(int index) throws ControlSurfaceException; 00099 00116 void addDeviceNameBasedDiscoveryPair(String[] inputs, String[] outputs); 00117 00130 void defineSysexIdentityReply(String reply); 00131 00140 Preferences getPreferences() throws ControlSurfaceException; 00141 00150 DocumentState getDocumentState() throws ControlSurfaceException; 00151 00162 NotificationSettings getNotificationSettings() throws ControlSurfaceException; 00163 00166 Project getProject() throws ControlSurfaceException; 00167 00176 Transport createTransport() throws ControlSurfaceException; 00177 00186 Groove createGroove() throws ControlSurfaceException; 00187 00196 Application createApplication() throws ControlSurfaceException; 00197 00207 Arranger createArranger() throws ControlSurfaceException; 00208 00218 Arranger createArranger(final int window) throws ControlSurfaceException; 00219 00228 Mixer createMixer() throws ControlSurfaceException; 00229 00242 Mixer createMixer(final String panelLayout) throws ControlSurfaceException; 00243 00254 Mixer createMixer(final int window) throws ControlSurfaceException; 00255 00269 Mixer createMixer(final String panelLayout, final int window) throws ControlSurfaceException; 00270 00296 TrackBank createTrackBank(final int numTracks, final int numSends, final int numScenes) throws ControlSurfaceException; 00297 00311 TrackBank createMainTrackBank(final int numTracks, final int numSends, final int numScenes) throws ControlSurfaceException; 00312 00325 TrackBank createEffectTrackBank(final int numTracks, final int numScenes) throws ControlSurfaceException; 00326 00334 Track createMasterTrack(final int numScenes) throws ControlSurfaceException; 00335 00346 CursorTrack createArrangerCursorTrack( 00347 final int numSends, 00348 final int numScenes) throws ControlSurfaceException; 00349 00362 CursorTrack createCursorTrack( 00363 final String name, 00364 final int numSends, 00365 final int numScenes) throws ControlSurfaceException; 00366 00384 SceneBank createSceneBank(final int numScenes) throws ControlSurfaceException; 00385 00402 CursorDevice createEditorCursorDevice() throws ControlSurfaceException; 00403 00420 CursorDevice createEditorCursorDevice(int numSends) throws ControlSurfaceException; 00421 00432 Clip createCursorClip(final int gridWidth, final int gridHeight) throws ControlSurfaceException; 00433 00443 UserControlBank createUserControls(final int numControllers) throws ControlSurfaceException; 00444 00455 void scheduleTask(Callable callback, Object[] args, long delay) throws ControlSurfaceException; 00456 00463 int getHostApiVersion(); 00464 00471 String getHostVendor(); 00472 00479 String getHostProduct(); 00480 00487 String getHostVersion(); 00488 00495 boolean platformIsWindows(); 00496 00502 boolean platformIsMac(); 00503 00509 boolean platformIsLinux(); 00510 00518 void println(String s); 00519 00527 void errorln(String s); 00528 00536 void showPopupNotification(String text); 00537 00549 RemoteSocket createRemoteConnection(String name, int defaultPort) throws ControlSurfaceException; 00550 00561 void connectToRemoteHost(String host, int port, Callable callback) throws ControlSurfaceException; 00562 00573 void sendDatagramPacket(String host, int port, byte[] data) throws ControlSurfaceException; 00574 00587 boolean addDatagramPacketObserver(String name, int port, Callable callback) throws ControlSurfaceException; 00588 00593 @Deprecated 00594 void defineController( 00595 String vendor, 00596 String name, 00597 String version, 00598 String uuid) throws ControlSurfaceException; 00599 00604 @Deprecated 00605 Transport createTransportSection() throws ControlSurfaceException; 00606 00611 @Deprecated 00612 CursorTrack createCursorTrack(final int numSends, final int numScenes) throws ControlSurfaceException; 00613 00618 @Deprecated 00619 Groove createGrooveSection() throws ControlSurfaceException; 00620 00625 @Deprecated 00626 Application createApplicationSection() throws ControlSurfaceException; 00627 00632 @Deprecated 00633 Arranger createArrangerSection(final int screenIndex) throws ControlSurfaceException; 00634 00639 @Deprecated 00640 Mixer createMixerSection(final String perspective, final int screenIndex) throws ControlSurfaceException; 00641 00646 @Deprecated 00647 TrackBank createTrackBankSection(final int numTracks, final int numSends, final int numScenes) throws ControlSurfaceException; 00648 00653 @Deprecated 00654 TrackBank createMainTrackBankSection(final int numTracks, final int numSends, final int numScenes) throws ControlSurfaceException; 00655 00660 @Deprecated 00661 TrackBank createEffectTrackBankSection(final int numTracks, final int numScenes) throws ControlSurfaceException; 00662 00667 @Deprecated 00668 CursorTrack createCursorTrackSection(final int numSends, final int numScenes) throws ControlSurfaceException; 00669 00674 @Deprecated 00675 Track createMasterTrackSection(final int numScenes) throws ControlSurfaceException; 00676 00681 @Deprecated 00682 Clip createCursorClipSection(final int gridWidth, final int gridHeight) throws ControlSurfaceException; 00683 00688 @Deprecated 00689 CursorDevice createCursorDeviceSection(final int numControllers) throws ControlSurfaceException; 00690 00695 @Deprecated 00696 CursorDevice createCursorDevice() throws ControlSurfaceException; 00697 00702 @Deprecated 00703 UserControlBank createUserControlsSection(final int numControllers) throws ControlSurfaceException; 00704 00709 @Deprecated 00710 void defineSysexDiscovery(String request, String reply); 00711 }