View Source X32Remote.Commands.Setup (x32_remote v0.1.0)

Commands that query or modify the X32 device's configuration.

All functions in this module take the process ID or name of an X32Remote.Session process as their first argument. For more convenient versions that omit this first argument, see X32Remote.Mixer.

Link to this section Summary

Functions

Sets the console's clock, as displayed on the mixer's LCD panel.

Link to this section Types

Link to this section Functions

@spec set_clock(session(), NaiveDateTime.t()) :: :ok

Sets the console's clock, as displayed on the mixer's LCD panel.

ndt is a NaiveDateTime representing the time to display. The X32 hardware does not appear to have any concept of timezones.

The only thing the clock seems to be used for is being displayed on the LCD. This setting has nothing to do with "clock source", used for digital audio synchronisation.

example

Example

iex> ndt = NaiveDateTime.local_now()
~N[2023-04-23 01:31:11]
iex> X32Remote.Commands.Setup.set_clock(session, ndt)
:ok