1
0
Fork 0
Use Comment Macro syntax as a remote scripting language to control a Hog4 over the network via OSC.
Go to file
Kevin Matz b94a5e16b3 grammar has stabilized. distribute antlr files. 2018-10-20 18:25:04 -04:00
.gitignore grammar has stabilized. distribute antlr files. 2018-10-20 18:25:04 -04:00
CommentMacro.g4 make newline optional member of a statement 2018-10-20 15:54:47 -04:00
CommentMacroLexer.py grammar has stabilized. distribute antlr files. 2018-10-20 18:25:04 -04:00
CommentMacroListener.py grammar has stabilized. distribute antlr files. 2018-10-20 18:25:04 -04:00
CommentMacroParser.py grammar has stabilized. distribute antlr files. 2018-10-20 18:25:04 -04:00
LICENSE.md add license and manifest 2018-10-17 21:32:31 -04:00
MANIFEST.in grammar has stabilized. distribute antlr files. 2018-10-20 18:25:04 -04:00
OscCommentMacroListener.py list and scene implimentations 2018-10-20 18:22:32 -04:00
README.md grammar improvements 2018-10-20 13:21:57 -04:00
comment.py use antlr listener 2018-10-20 15:55:24 -04:00
server.cfg Initial Commit 2018-10-17 20:56:59 -04:00

README.md

Bacon Script

Installing

Install Python-OSC for output.

$ pip install python-osc

Install Antlr4 for input.

$ pip install antlr4-python3-runtime

You must also install the ANTLR tool. On a mac with homebrew, do:

$ brew install antlr

Clone this repository and building the lexer and parser for Python3

$ antlr -Dlanguage=Python3 CommentMacro.g4

Unsupported Macros

These Comment Macros do not have supporting equivelents in OSC:

  • Release All
  • Release Others
  • Master Assert
  • List Assert
  • Scene Assert
  • Batch GO
  • Batch Halt
  • Batch Assert
  • Batch Release
  • Node Reset
  • Change Page
  • Next Page
  • Prev Page
  • Recall View
  • Keystroke Macro Go
  • Keystroke Macro Halt
  • Keystroke Macro Stop

Future Work

Pleas feel welcome to submit pull requests or patches that enable support for:

  • Sending target ranges as batches
  • More than one comment macros per line
  • Send multi-macro line as a batch
  • Timing on master fades