MIDIComponent.source < string>
The source to listen to. Filters out all events not coming from this source.
Each MIDI device has a unique source ID that is managed by the system. In general, the source ID should be stable, so that if you reconnect a device to the same computer, you should get the same ID. Note that the source ID will not be the same between different browsers and Framer.
To find the source ID, you can use the extra information send to the handler of onValueChange.
译:监听源。 筛选出不是来自该源的所有事件。
每个MIDI设备有是由系统管理的一个独特来源ID。一般来说,源ID应该是稳定的,因此,如果一个设备重新连接到同一台计算机上,您应该获得相同的ID。请注意,源ID将不同的浏览器和农民之间不相同。
找到源ID,可以使用额外的信息发送到onValueChange的处理程序。