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 9cc48be40b include install notes for Antlr4 2018-10-17 21:09:16 -04:00
.gitignore ignore Antlr4 intermediate files 2018-10-17 20:58:17 -04:00
CommentMacro.g4 Initial Commit 2018-10-17 20:56:59 -04:00
README.md include install notes for Antlr4 2018-10-17 21:09:16 -04:00
comment.py Initial Commit 2018-10-17 20:56:59 -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

$ antlr4 -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
  • Multiple comment macros per line
  • Send multi-macro line as a batch
  • Timing on master fades