Skip to main content
Glama
emicklei

melrōse musical expression player

by emicklei
test_audiodevice.go1.36 kB
package dsl import ( "time" "github.com/emicklei/melrose/core" "github.com/emicklei/melrose/notify" ) var _ core.AudioDevice = (*testAudioDevice)(nil) type testAudioDevice struct{} func (t testAudioDevice) Command(args []string) notify.Message { return nil } func (t testAudioDevice) DefaultDeviceIDs() (int, int) { return 1, 1 } func (t testAudioDevice) Play(condition core.Condition, seq core.Sequenceable, bpm float64, beginAt time.Time) (endingAt time.Time) { return time.Now() } func (t testAudioDevice) HandleSetting(name string, values []any) error { return nil } func (t testAudioDevice) HasInputCapability() bool { return true } func (t testAudioDevice) Listen(deviceID int, who core.NoteListener, startOrStop bool) {} func (t testAudioDevice) OnKey(ctx core.Context, deviceID int, channel int, note core.Note, fun core.HasValue) error { return nil } func (t testAudioDevice) Schedule(event core.TimelineEvent, beginAt time.Time) {} func (t testAudioDevice) Reset() {} func (t testAudioDevice) Report() {} func (t testAudioDevice) Close() error { return nil } func (t testAudioDevice) ListDevices() (list []core.DeviceDescriptor) { return }

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