Commit graph

850 commits

Author SHA1 Message Date
jean-emmanuel
7f943aa89c docs: noop 2025-03-18 08:40:18 +01:00
jean-emmanuel
58acf3e0a7 editor: change r shortcut to y 2025-03-14 04:27:54 +01:00
jean-emmanuel
343a18541c tree: add "r" shortcut for "show widget in session" 2025-03-14 03:22:48 +01:00
jean-emmanuel
ecda3a05cf docs: update ref 2025-03-07 10:47:17 +01:00
jean-emmanuel
030446accd docs: missing fences 2025-01-13 10:53:25 +01:00
jean-emmanuel
697481e43a docs: update custom module example 2025-01-13 10:52:05 +01:00
jean-emmanuel
ebb6478021 package: v1.27.2 & update docs 2025-01-13 10:33:08 +01:00
jean-emmanuel
bdd83657c8 custom module: receive() and send() now accept host and port to be provided as a single string argument joined by a colon 2025-01-11 16:41:07 +01:00
jean-emmanuel
adb27b35fb docs: udpate ref 2024-07-26 12:41:43 +02:00
jean-emmanuel
abf943da5f ui: allow disabling notifications globally 2024-07-26 12:30:58 +02:00
jean-emmanuel
1510ebb80d ui: allow dismissing notifications with a click 2024-07-26 12:14:36 +02:00
jean-emmanuel
026230d8e1 custom module: add stop() callback (runs when the server stops 2024-07-15 11:03:07 +02:00
jean-emmanuel
c06107a07f remote control: ignore unsaved changes on /SESSION/CREATE 2024-06-22 12:08:22 +02:00
jean-emmanuel
92d71019c6
Merge pull request #852 from matthijskooijman/create-session-osc-command
remote control: Add `/SESSION/CREATE` command
2024-06-22 12:04:53 +02:00
Matthijs Kooijman
c02146c9b1 remote control: Add /SESSION/CREATE command
This allows creating a new empty session. This is useful for projects
that want to dynamically create the entire session using a custom module.

Without this, you can also create an empty session json file and load
that with `--load`, but then you would have to manage that file, and if
you accidentaly press control-s, it gets overwritten to contain any
dynamically created widgets.

With this commit, such a custom module can just create a new session on
startup and then populate it. This takes a bit of fiddling to get the
order of events correct, this commit also adds an example showing how to
do this.
2024-06-18 09:41:10 +02:00
Matthijs Kooijman
c5314fe17a custom-module: Call reload() function on auto-reload
This allows modules to re-initialize any state they need whenever the
module is reloaded.

Without this, any such initialization can also be done in the top
level of the custom module, but this has two problems:

 1. Top-level module code runs on load and reload, and for the initial
    load, it runs *before* the connections are set up, so trying to use
    send() would produce an error on load (not reload).

 2. Top-level module code runs for the primary custom module, but also
    for any nested modules, removing control about the process and
    ordering from the primary custom module. In addition, a module that
    can be used both as primary and nested module, there is no clean way
    to distinguish between these cases.

Both of these problems can be solved by doing some bookkeeping in the
global object, but that produces messy code.

This commit allows modules to define a reload() function, which is
called (for the primary module only) after the module is reloaded. This
means that any initialization for the first load can be done in init()
and for reloads in reload(), and in both cases all connections will
already have been set up solving issue 1. In addition, neither of these
functions are called for nested modules, solving issue 2 (and the
primary module can then stil explicitly call a reload function on nested
modules if needed, as shown in the examples).
2024-06-18 09:37:01 +02:00
Matthijs Kooijman
a3194a3bb8 custom-module: Fix example for unload with nested modules
The unload method is actually called on all modules, not just the main
one, so it makes no sense to have the module merger example call it
explicitly on its submodules.
2024-06-18 09:32:35 +02:00
jean-emmanuel
b63402fce8 docs: update widget ref 2024-02-21 11:06:09 +01:00
jean-emmanuel
3ed11f3894 custom-module: expose tcpServer 2024-02-21 10:52:40 +01:00
jean-emmanuel
ebd14015de docs: client sync dets 2024-02-15 08:34:31 +01:00
jean-emmanuel
e2215b865a docs: python-rtmidi manual install update 2024-02-13 14:31:33 +01:00
jean-emmanuel
8c77ab7ca6 docs: update ref 2024-01-17 16:43:22 +01:00
jean-emmanuel
86e819870c root: add onPreload scripting property 2024-01-17 16:31:27 +01:00
jean-emmanuel
9181c2a3aa remote control: /EDIT* commands sent by a custom module are not affected by the server's read-only option anymore 2024-01-17 16:05:03 +01:00
jean-emmanuel
0d66f2b8a8 docs: add tutorial, rm cpu warning for /EDIT (mostly irrelevant today) 2023-11-30 13:21:20 +01:00
jean-emmanuel
a6237a0aac scripting: stateSet: add optional {send: false} flag 2023-11-22 10:15:40 +01:00
jean-emmanuel
2c97ac662c docs: small fix 2023-10-14 11:51:31 +02:00
jean-emmanuel
f2f1949053 docs: update 2023-08-22 00:37:12 +02:00
jean-emmanuel
c766370db7 scripting: using external: true in set() should prevent affected widget from sending any message 2023-08-21 23:33:22 +02:00
jean-emmanuel
28d06cc14a docs: typo in syntax example 2023-08-16 10:36:23 +02:00
jean-emmanuel
19a4a62a3e docs: minor change 2023-07-05 17:29:49 +02:00
jean-emmanuel
617cc915bf docs: update 2023-05-13 14:39:05 +02:00
jean-emmanuel
d0d73e4d44 remote control: /STATE/SET add optional argument to prevent widgets from sending their value 2023-05-13 12:21:44 +02:00
jean-emmanuel
808b8b3176 docs: new langs 2023-04-15 10:42:52 +02:00
jean-emmanuel
2b84e5dd9e docs: fix pretty download names 2023-04-06 01:25:07 +02:00
jean-emmanuel
5f39ae3e9e docs: update refs 2023-04-06 01:00:57 +02:00
jean-emmanuel
645bba0402 docs: fix opening url with anchors to widget properties 2023-04-06 01:00:23 +02:00
jean-emmanuel
b480889b70 custom module: add optional errorCallback argument toloadJSON and saveJSON 2023-04-05 22:57:50 +02:00
jean-emmanuel
bb42439caf docs: update widget ref 2023-03-15 08:42:54 +01:00
jean-emmanuel
8861c3d3a9 docs: midi rpn nrpn 2023-03-15 08:41:30 +01:00
jean-emmanuel
28bc7d87b5 docs: relative link 2023-02-20 17:47:25 +01:00
jean-emmanuel
bcb8f45505 docs: user-contrib tutorial 2023-02-07 13:10:28 +01:00
jean-emmanuel
e95cad07dd docs: v0 is too old 2023-02-07 12:47:36 +01:00
jean-emmanuel
0ea2c49860 scripting: expose file browser (from the file widget) as a scripting function 2023-02-02 10:56:04 +01:00
jean-emmanuel
d9b1342e1d docs: midi conf disambiguation 2023-01-09 10:08:42 +01:00
jean-emmanuel
10efd5bd94 docs: update 2023-01-03 09:06:12 +01:00
jean-emmanuel
5f1081a835 docs: dead link 2023-01-03 09:05:59 +01:00
jean-emmanuel
fe9e988d3e docs: small changes 2023-01-03 09:02:12 +01:00
jean-emmanuel
cebca61e30 qrcode: optional (cli) and on demand (launcher) 2022-12-25 17:17:08 +01:00
jean-emmanuel
d4d0d18de1 docs: update 2022-11-29 17:00:28 +01:00