Skip to main content
Glama
emicklei

melrōse musical expression player

by emicklei
bare.go774 B
package op import ( "bytes" "fmt" "github.com/emicklei/melrose/core" ) type Bare struct { Target []core.Sequenceable } // TODO remove pedals, bindings func (b Bare) S() core.Sequence { notes := [][]core.Note{} for _, each := range b.Target { simple := each.S().NoFractions().NoDynamics().NoRests() notes = append(notes, simple.Notes...) } return core.Sequence{Notes: notes} } func (b Bare) Storex() string { var bb bytes.Buffer fmt.Fprintf(&bb, "bare(") core.AppendStorexList(&bb, true, b.Target) fmt.Fprintf(&bb, ")") return bb.String() } // Replaced is part of Replaceable func (b Bare) Replaced(from, to core.Sequenceable) core.Sequenceable { if core.IsIdenticalTo(b, from) { return to } return Bare{Target: replacedAll(b.Target, from, to)} }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/emicklei/melrose'

If you have feedback or need assistance with the MCP directory API, please join our Discord server