Skip to main content
Glama
emicklei

melrōse musical expression player

by emicklei
print.go721 B
package core import ( "fmt" "time" "github.com/emicklei/melrose/notify" ) type Print struct { Context Context Target any } func (w Print) Play(ctx Context, at time.Time) error { w.S() return nil } func (w Print) Evaluate(ctx Context) error { // TODO check c? w.S() return nil } // S is part of Sequenceable func (w Print) S() Sequence { beats, bars := w.Context.Control().BeatsAndBars() in := NewInspect(w.Context, "", w.Target) if bars > 0 { in.Properties["bar"] = bars } if beats > 0 { in.Properties["beat"] = beats } notify.Infof("%s", in.String()) return EmptySequence } // Storex is part of Storable func (w Print) Storex() string { return fmt.Sprintf("print(%s)", Storex(w.Target)) }

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