TuningFork.Composer.Source (TuningForkComposer v0.1.3)

Copy Markdown View Source

A composition written out as formatted TuningFork.Part source.

Source.to_source(project)
Source.to_source(project, output: :wav)

Summary

Functions

The composition as source, or "" when no track is audible.

Functions

to_source(project, opts \\ [])

@spec to_source(TuningFork.Composer.t(), keyword()) :: String.t()

The composition as source, or "" when no track is audible.

The result is formatted and depends only on tuning_fork. The score is bound to a variable named after the project; a name that would not compile as a variable is slugged, and a project named "track" binds to song.

Options:

  • :output — what the last line evaluates to: :score (the default) binds the score, :wav writes <name>.wav, :kino returns a Kino.Audio.