Zongzi.Score.Key.Inner protocol (zongzi v0.3.0)

Copy Markdown

Outbound conversion operations.

Summary

Types

t()

All the types that implement this protocol.

Functions

Converts to frequency in Hz.

Converts to a MIDI note number (float allowed).

Converts to staff notation data for the given staff type (e.g., :staff, :numbered).

Types

t()

@type t() :: term()

All the types that implement this protocol.

Functions

to_frequency(key, reference)

Converts to frequency in Hz.

to_midi(key)

Converts to a MIDI note number (float allowed).

to_score(key, type, ctx)

Converts to staff notation data for the given staff type (e.g., :staff, :numbered).