GithubHelp home page GithubHelp logo

tao-cumplido / snippets Goto Github PK

View Code? Open in Web Editor NEW

This project forked from openlilylib/snippets

0.0 2.0 0.0 1.61 MB

A place to store useful pieces of LilyPond code - custom functions, engravers, hacks, templates, examples etc.

License: Other

Python 34.10% Shell 65.90%

snippets's Introduction

What's this?

A place to store and collaborate on LilyPond tools - snippets, templates, extensions. Why we don't just put this stuff in Lilypond Snippet Repository? There are three reasons:

  • As of 2013-10-17, LSR accepts snippets for LilyPond version 2.14.2 (current version is 2.17.28).
  • Some things cannot be placed in LSR (multi-file extensions, special scripts).
  • LSR doesn't have tools for collaboration and version control.

Using this repository

You can view the files in your browser by clicking on their names, and simply copy&paste the code into your editor. You can also download the whole repository in a ZIP archive. This is recommended for casual use. For regular users, we recommend using Git to clone the whole repository to your computer. If you need help with Git, contact us.

Most snippets are divided into an .ily file with function definitions and a .ly file showing a usage example. To use the functions provided by the snippet, simply \include the .ily file into your score.

You can make the root directory of the repository available to LilyPond, e.g. by using the -I or --include= command line option (or, if you use Frescobaldi, add the path in LilyPond preferences).
Then you will be able to \include the snippets with a path relative to the repository root directory - for example, \include "debugging-layout/display-grob-anchors/definitions.ily" will allow you to use \printAnchors function defined in the snippet.

Contributing

What's eligible?

Everything that's useful and isn't totally obvious (rule of thumb: anything over 20 lines of code is probably worth including). You can even contribute work in progress and update it later.

How to contribute

The easiest way to contribute is using GitHub's web interface.

  1. Create an account on GitHub, log into it.
  2. Go to this repository's GitHub page.
  3. To add a new file, click on [this button] (http://raw.github.com/openlilylib/snippets/master/meta/adding-new-file-github-interface.png). To modify a file, click its name and then click Edit.
  4. Write what you have changed (form at the bottom) and click Commit.
  5. Don't forget to click Send pull request. (more info...)

Using more powerful tools for contributing is described here.

Guidelines

Note: detailed guidelines are in [meta/contributing.md] (meta/contributing.md)(optional reading).

  • Your snippet must compile (even if it's work-in-progress) and it must contain a \version statement.
  • Please use a template from [meta/snippet-templates] (meta/snippet-templates) as your starting point:
    • simple snippets that just demonstrateaanctions, engravers etc. that can be useful on their own should use the "includable" template.
  • If possible, please format your code using Frescobaldi's Format tool.
  • When you make changes in your snippets, please contribute updates to the repository! :-)

Snippet categories

  • custom-music-fonts - alternative fonts for LilyPond, that can be used instead of default Feta.
  • debugging-layout - tools that visualize LilyPond's layout decisions (e.g. directions),
  • general-tools - stuff for working on and with LilyPond itself.
  • input-shorthands - music functions and other tools that make writing LilyPond code easier,
  • notation-snippets - LilyPond code that produces some particular notation,
  • simple-examples - snippets that are just explaining or demonstrating things from the documentation,
  • specific-solutions - hacks that aren't generic, just solve a very specific problem,
  • stylesheets - a place for collections of user-designed layout settings ("house styles"),
  • templates - examples showing how to structure LilyPond code.

Every category has a README.md file inside with more details, but if you're not sure which category to choose, don't worry! It's not that important.

Contact

Have trouble contributing? Let us know!
[email protected]
[email protected]

snippets's People

Contributors

jan-warchol avatar uliska avatar joram-berger avatar davidnalesnik avatar fedelibre avatar peterbjuhr avatar skiasaurus avatar dakhubgit avatar tao-cumplido avatar harm6 avatar

Watchers

 avatar  avatar

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.