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 c2beebd57f remove duplicate initialization 2018-10-21 00:43: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 remove duplicate initialization 2018-10-21 00:43:04 -04:00
README.md updated readme 2018-10-20 18:27:10 -04:00
comment.py support for net devices 2018-10-21 00:30:21 -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

Developing

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

$ brew install antlr

Update the lexer and parser for Python3

$ antlr -Dlanguage=Python3 CommentMacro.g4

Unsupported Macros

These Comment Macros do not have supporting equivelents in OSC:

  • Release Master
  • 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
  • Send multi-macro line as a batch
  • Timing on master fades