Git Product home page Git Product logo

hello-velato's Introduction

Hello World in Velato

Velato is a music-based programming language that accepts a MIDI file as input. This is my hello world.

Dependencies

Velato compiler

The compiler is written in C# and I couldn't find a recent pre-compiled binary, so I needed a way to compile it myself. I developed this on macOS, so I used Mono from Homebrew:

brew install mono

Mono ships with the msbuild program, which we can use to compile the Velato compiler:

msbuild Rottytooth.Esolang.Velato/Rottytooth.Esolang.Velato.csproj /p:Configuration=Release

This will put the compiled output in the Rottytooth.Esolang.Velato/bin/Release directory. The Velato.exe and NAudio.dll files are what we're interested in. They have been copied into the vendor directory of this repo for convenience.

LilyPond

Since Velato takes MIDI as its input, I needed a way to produce a MIDI file. LilyPond is a "music engraving program" whose focus is producing high quality sheet music, but will also output MIDI.

Note: I used LilyPond version 2.19.x for this, which is currently pre-release. There is a Homebrew package, via casks, that is 2.18.x, which doesn't produce a midi that Velato accepts.

Building & executing

The general flow is:

  1. lilypond hello-world.ly
  2. mono vendor/Velato.exe hello-world.midi
  3. mono hello-world.mid.exe

The included build script is a convenience for steps 1 & 2.

hello world

hello-velato's People

Contributors

thorncp avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

unforeseenocean

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.