Skip to content

nimblebun/go-organya

Repository files navigation

go-organya

This module is a Go implementation of the Organya music format. It allows you to parse an Organya file and view its data.

Getting Started

Get the module:

go get pkg.nimblebun.works/go-organya

Import it:

import (
  "pkg.nimblebun.works/go-organya"
)

Create an Organya object:

org, err := organya.Open("/path/to/file.org")
if err != nil {
  panic(err)
}

// Do something with `org`

Create a playback session:

session := org.NewSession()

// ...
session.Click()

Convert your Organya data into JSON:

data, err := org.JSON()
if err != nil {
  panic(err)
}

err = ioutil.WriteFile("organya.json", data, 0644)
// ...

License and Attributions

The project is licensed under the MIT license. Huge thanks to the C library this project is based on - COrg.