• home
  • About the project
  • Miniature know-how
  • Language
    • Polski
    • English
Mi

SysTime

multi-device synchronization
Preview
Description

SysTime is one of the simpler Miniatures: it contains a mechanism for accessing the clock of the device it’s running on and rudimentary code for sending the current time externally (to other programs or devices). Therefore, it’s strictly a “utility” thumbnail, useful for those who want to experiment with multi-device synchronization techniques, such as those used in the “Noumen” and “Attention: Light!” 3.0 Miniatures.

Technical documentation

Parameters passed via URL

  • worker 0 or 1; default 0; allows blocking the browser’s built-in mechanisms that suspend the program when the window is not visible
  • ws address; disabled by default; enables and sets the address (usually localhost:9001) for WebSocket communication (allows external control of Miniature and customization)
  • xws address; disabled by default; enables and sets the address (usually ws://localhost:9001) with protocol specification for WebSocket communication (allows external control of Miniature and customization)

Messages passed via WebSocket

Messages to which Miniature responds

not applicable

Messages sent by Miniature

  • systime time t1 t2 t1 – time in milliseconds according to the system clock, t2 – the value of the current system time expressed in milliseconds, calculated based on hours, minutes, seconds, and milliseconds

MIDI

Messages to which Miniature responds

not applicable

Messages sent by Miniature

not applicable

Communication with MaxMSP

Messages to which Miniature responds

not applicable

Messages sent by Miniature

  • systime time t1 t2 t1 – time in milliseconds according to the system clock, t2 – the value of the current system time expressed in milliseconds, calculated based on hours, minutes, seconds, and milliseconds
Source code

index.html

sketch.js

worker.js

ws.js

Cgk8ZGl2IGNsYXNzPSJqcy1tYWlubWVudSI+CgkJPGRpdiBjbGFzcz0ibWVudS1tYWlubWVudS1jb250YWluZXIiPjx1bCBpZD0ibWVudS1tYWlubWVudS0xIiBjbGFzcz0ibWVudSI+PGxpIGNsYXNzPSJtZW51LWl0ZW0gbWVudS1pdGVtLXR5cGUtcG9zdF90eXBlIG1lbnUtaXRlbS1vYmplY3QtcGFnZSBtZW51LWl0ZW0taG9tZSBtZW51LWl0ZW0tMzI3Ij48YSBocmVmPSJodHRwczovL21pLndyb2NlbnRlci5wbC9lbi8iPmhvbWU8L2E+PC9saT4KPGxpIGNsYXNzPSJtZW51LWl0ZW0gbWVudS1pdGVtL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Wl0ZW0tb2JqZWN0LWN1c3RvbSBjdXJyZW50LW1lbnUtaXRlbSBtZW51LWl0ZW0tOTY2Ij48YSBocmVmPSJodHRwczovL21pLndyb2NlbnRlci5wbC9lbi9zeXN0aW1lLyIgYXJpYS1jdXJyZW50PSJwYWdlIj5FbmdsaXNoPC9hPjwvbGk+CjwvdWw+CjwvbGk+CjwvdWw+PC9kaXY+CTwvZGl2PgoJPGJ1dHRvbiBjbGFzcz0ianMtYTExeSI+PGltZyBhbHQ9IkhpZ2ggY29udHJhc3QiIHNyYz0iaHR0cHM6Ly9taS53cm9jZW50ZXIucGwvd3AtY29udGVudC90aGVtZXMvbWkyMDI2L2ltZy9rb250cmFzdC5zdmciPjwvYnV0dG9uPgo=
SysTime — Mi
KPO Unia Europejska #NextGenerationEU Rzeczpospolita Polska
WRO ART CENTER
  • About the project
  • Miniature know-how