GithubHelp home page GithubHelp logo

julianrubisch / maxy-gen Goto Github PK

View Code? Open in Web Editor NEW
29.0 4.0 2.0 69 KB

A commandline tool to generate max patches in an emmet-like fashion

Ruby 98.03% Shell 0.37% Gherkin 1.61%
maxmsp commandline transpiler ruby

maxy-gen's Introduction

Maxy::Gen

A commandline tool to generate max patches in an emmet-like fashion

Installation and Upgrading

Important! You have to repeat this procedure when upgrading!

Requires ruby installed, of course. This gem was built with v.2.3.3.

Install the gem:

$ gem install maxy-gen       

This version depends on your local Max installation. Install max object definitions like so:

$ maxy-gen install

Or simply

$ maxy-gen i

You will be asked for the path to your refpages directory. Just hit Enter if you installed Max in your Applications folder.

Note: This is totally untested on Windows!

Usage

Use an emmet-like pattern to generate a max patch, e.g.

$ maxy-gen generate 'inlet-(\-{3.14}-print)+(trigger{b}-(outlet+print))' > complex_grouping.maxpat

(or shorter, maxy-gen g ...)

... and open it in Max.

As of now you can use

  • - dashes to indicate patch chords
  • = equal signs to connect a row (as in t b b) to multiple objects at once
  • < less than signs to connect a single outlet to an object with many inputs (as in pack 1 2 3)
  • {} curly braces to denote arguments passed to objects
  • + to denote sibling objects
  • (...) to group objects together (see demo above)

A couple of objects need escaping (with \), because some characters are taken, obviously. These are:

  • \==
  • \<
  • \<=
  • \-
  • \+
  • \<<
  • \*
  • \==~
  • \<=~
  • \<~
  • \-~
  • \+=~
  • \+~
  • \*~

This gem is under heavy development!

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/julianrubisch/maxy-gen.

Please include:

  • your platform
  • your ruby version
  • a description of what didn't work
  • the patch produced by maxy-gen
  • the patch as you'd have expected it

Support

This is a pure side project and depends on your support!

If you'd like to support the development of maxy-gen and my other projects, take a look at https://www.patreon.com/znibbles

maxy-gen's People

Contributors

julianrubisch avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

maxy-gen's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.