I'm trying to get the popupbrowser for a device, (i want to replace it with a preset through the api)
but i have no clue how to tie it together:
Code: Select all
final CursorTrack cursorTrack = host.createCursorTrack(0, 0);
final DeviceBank neoverbFilterDeviceBank = cursorTrack.createDeviceBank(1);
final DeviceMatcher neoverbDeviceMatcher = host.createVST3DeviceMatcher(NEOVERB_ID);
neoverbFilterDeviceBank.setDeviceMatcher(neoverbDeviceMatcher);
final Device device = neoverbFilterDeviceBank.getItemAt(0);
device.replaceDeviceInsertionPoint(); // how to use?
PopupBrowser browser = host.createPopupBrowser(); // how to use?