Project

stringyfi

0.0
No commit activity in last 3 years
No release in over 3 years
Convert MusicXML to PIC assembler for the Boldport Stringy
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.6
>= 0
= 0.9.6
= 0.9.5
>= 0

Runtime

~> 1.8
 Project Readme

StringyFi

Convert MusicXML to PIC assembler for running on the Boldport Club Stringy.

Build Status

About the Stringy

The Stringy is an open source hardware project from the wonderful Boldport Club.

The Stringy was Project #14 from June 2017, and is a remix of MadLab's 'Funky guitar'.

About StringyFi

StringyFi is a simple gem that converts MusicXML source files to a PIC assembler source format that can be compiled and programmed to the Stringy.

See LEAP#349 DemoBurner for a complete example of this in practice.

StringyFi has some serious limitations, some of which are in its implementation of MusicXML parsing, some are fundamental limitations of the Stringy. I have found that most scores need tweaking to be reproduced acceptably on the Stringy, and some are just too complex (without re-writing the Stringy firmware en-masse). Some key points to note:

  • The String uses ony 2-bit (4 levels) of note duration, so the conversion squeezes the score into 4 note durations as best as possible
  • many notation features ignored: slides, ties etc

Installation

Add this line to your application's Gemfile:

gem 'stringyfi'

And then execute:

$ bundle

Or install it yourself as:

$ gem install stringyfi

Usage

The StringyFi executable accepts a file path to the MusicXML source to convert, and emits the assembler source on STDOUT (so it can be redirected as appropriate).

For example:

$ stringyfi ./spec/fixtures/music_xml/chromatic.xml > ../CustomDemo.X/demo.tun

The spec/fixtures contains a few examples that are also used in tests.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request (6. Join Boldport Club!)