Skip to content

Commit

Permalink
improve documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
gisogrimm committed Oct 31, 2024
1 parent a5e4b43 commit c58f779
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion manual/modmididispatch.tex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
This plugins can dispatch OSC messages upon MIDI events (CC or note events). Event handlers can be registered via OSC or in the XML configuration, using the \elem{ccmsg} or \elem{notemsg} elements. Multiple event handlers for the same event can be registered. In that case all event handlers will be called. Event handler can be removed via OSC. The communication is bi-directional; MIDI events can be emitted by sending an OSC message to \verb!/mididispatch/send/cc! or \verb!/mididispatch/send/note!.
This plugins can dispatch OSC messages upon MIDI events (CC or note events). Event handlers can be registered via OSC or in the XML configuration, using the \elem{ccmsg} or \elem{notemsg} elements (see below). Parameters to the message can be added using the \elem{f v="1.234"}, \elem{i v="1"} or \elem{s v="string"} sub-elements. Multiple event handlers for the same event can be registered. In that case all event handlers will be called. Event handler can be removed via OSC. The communication is bi-directional; MIDI events can be emitted by sending an OSC message to \verb!/mididispatch/send/cc! or \verb!/mididispatch/send/note!.

\begin{snugshade}
{\footnotesize
Expand Down Expand Up @@ -81,4 +81,14 @@
}
\end{snugshade}

An example configuration can look like this:

\begin{lstlisting}
<modules>
<mididispatch connect="US-2x2:US-2x2 MIDI 1" dumpmsg="true">
<notemsg channel="0" note="0" path="/runscript"><s v="note0"/></notemsg>
</mididispatch>
</modules>
\end{lstlisting}

\input{oscdoc_tascarmod_mididispatch.tex}

0 comments on commit c58f779

Please sign in to comment.