Git Product home page Git Product logo

velato's Introduction

Velato

Velato is a language where one writes code with music, in the form of a MIDI file. Read more on esolangs: http://esolangs.org/wiki/Velato

Compiler Options

Code Option
/s transpile to C#
/j transpile to JavaScript
/c also compile (automatic when neither /s or /j is selected)

Example Program: Printing "Hi"

This is in Lilypond format. It needs to be converted to a MIDI file to be read by the Velato compiler:

\version "2.24.3"
melody = \relative c' {
\clef treble
\key c \major
\time 4/4

  c			% set root
  a g			% print
  e f			% a character 
  a dis		        % value of 'H' (72) 
  g			% end of char marker
  c			% the root note does nothing the second time but can be used between commands
  a g			% print
  e f			% a character 
  d cis fis	        % value of 'i' (105)
  g			% end of char marker
  c			% an extra c because why not
}

\score {
\new Staff \melody
\midi { }
}

Version 2.0 Changes

Version 2 of Velato was re-written from the ground up, using NAudio and a saner parsing strategy. Significant changes:

  • Supports micro-tuning variants of the language
  • Can transpile to C# or JavaScript code
  • Looks at the first MIDI track, rather than the first channel (more in line with how MIDI is used)
  • Examples are in the (more widely used) Lilypond, rather than the GUIDO system

velato's People

Contributors

dependabot[bot] avatar rottytooth 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  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  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.