Documentation ¶
Index ¶
- type Board
- type BoardConfig
- type Canvas
- func (c *Canvas) AddGraphics(o ge.SceneGraphics)
- func (c *Canvas) ClearPlot(id int)
- func (c *Canvas) Draw()
- func (c *Canvas) DrawInstrumentIcon(dst *ebiten.Image, kind gamedata.InstrumentKind, clr color.RGBA)
- func (c *Canvas) DrawPath(dst *ebiten.Image, p vector.Path, width float32, clr ge.ColorScale)
- func (c *Canvas) DrawPathFilled(dst *ebiten.Image, p vector.Path, width float32, clr ge.ColorScale)
- func (c *Canvas) IsDisposed() bool
- func (c *Canvas) RedrawPlot(id int, f *exprc.FuncRunner, points []gmath.Vec)
- func (c *Canvas) RenderWave(clr color.RGBA, lineWidth float64, data []float64)
- func (c *Canvas) Reset()
- func (c *Canvas) SetPlotHidden(id int, hidden bool)
- func (c *Canvas) Update(delta float64)
- type Config
- type Context
- type SampleSet
- type SynthProgram
- type SynthProgramInstrument
- type Synthesizer
- func (s *Synthesizer) CreatePCM(progress *float64) (*SampleSet, SynthProgram)
- func (s *Synthesizer) CreateProgram(instrumentSelector int) SynthProgram
- func (s *Synthesizer) ExportTrack() gamedata.Track
- func (s *Synthesizer) ForceReload()
- func (s *Synthesizer) GetInstrumentFunction(id int) *exprc.FuncRunner
- func (s *Synthesizer) GetInstrumentPeriodPoints(id int) []gmath.Vec
- func (s *Synthesizer) HasChanges() bool
- func (s *Synthesizer) Init(scene *ge.Scene)
- func (s *Synthesizer) IsDisposed() bool
- func (s *Synthesizer) SetInstrumentEnabled(id int, enabled bool)
- func (s *Synthesizer) SetInstrumentFunction(id int, fx string)
- func (s *Synthesizer) SetInstrumentPatch(id int, index int)
- func (s *Synthesizer) SetInstrumentPeriod(id int, periodFunc string) error
- func (s *Synthesizer) SetInstrumentVolume(id int, volume float64)
- func (s *Synthesizer) Update(delta float64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Board ¶
type Board struct { EventNote gsignal.Event[int] EventVictory gsignal.Event[bool] // contains filtered or unexported fields }
func NewBoard ¶
func NewBoard(ctx *Context, config BoardConfig) *Board
func (*Board) ClearProgram ¶
func (b *Board) ClearProgram()
func (*Board) ProgramTick ¶
func (*Board) StartProgram ¶
func (b *Board) StartProgram(prog SynthProgram)
type BoardConfig ¶
type Canvas ¶
type Canvas struct { Running bool // contains filtered or unexported fields }
func (*Canvas) AddGraphics ¶
func (c *Canvas) AddGraphics(o ge.SceneGraphics)
func (*Canvas) DrawInstrumentIcon ¶
func (c *Canvas) DrawInstrumentIcon(dst *ebiten.Image, kind gamedata.InstrumentKind, clr color.RGBA)
func (*Canvas) DrawPathFilled ¶
func (*Canvas) IsDisposed ¶
func (*Canvas) RedrawPlot ¶
func (*Canvas) RenderWave ¶
func (*Canvas) SetPlotHidden ¶
type Context ¶
type Context struct { Scaler *gamedata.PlotScaler // contains filtered or unexported fields }
func NewContext ¶
type SynthProgram ¶
type SynthProgram struct { Length float64 Instruments []SynthProgramInstrument }
type SynthProgramInstrument ¶
type SynthProgramInstrument struct { ID int // The channel is identical Index int Func *exprc.FuncRunner Period float64 Kind gamedata.InstrumentKind }
type Synthesizer ¶
type Synthesizer struct { EventRedrawPlotRequest gsignal.Event[int] // contains filtered or unexported fields }
func NewSynthesizer ¶
func NewSynthesizer(ctx *Context, sf *synthdb.SoundFont) *Synthesizer
func (*Synthesizer) CreatePCM ¶
func (s *Synthesizer) CreatePCM(progress *float64) (*SampleSet, SynthProgram)
func (*Synthesizer) CreateProgram ¶
func (s *Synthesizer) CreateProgram(instrumentSelector int) SynthProgram
func (*Synthesizer) ExportTrack ¶
func (s *Synthesizer) ExportTrack() gamedata.Track
func (*Synthesizer) ForceReload ¶
func (s *Synthesizer) ForceReload()
func (*Synthesizer) GetInstrumentFunction ¶
func (s *Synthesizer) GetInstrumentFunction(id int) *exprc.FuncRunner
func (*Synthesizer) GetInstrumentPeriodPoints ¶
func (s *Synthesizer) GetInstrumentPeriodPoints(id int) []gmath.Vec
func (*Synthesizer) HasChanges ¶
func (s *Synthesizer) HasChanges() bool
func (*Synthesizer) Init ¶
func (s *Synthesizer) Init(scene *ge.Scene)
func (*Synthesizer) IsDisposed ¶
func (s *Synthesizer) IsDisposed() bool
func (*Synthesizer) SetInstrumentEnabled ¶
func (s *Synthesizer) SetInstrumentEnabled(id int, enabled bool)
func (*Synthesizer) SetInstrumentFunction ¶
func (s *Synthesizer) SetInstrumentFunction(id int, fx string)
func (*Synthesizer) SetInstrumentPatch ¶
func (s *Synthesizer) SetInstrumentPatch(id int, index int)
func (*Synthesizer) SetInstrumentPeriod ¶
func (s *Synthesizer) SetInstrumentPeriod(id int, periodFunc string) error
func (*Synthesizer) SetInstrumentVolume ¶
func (s *Synthesizer) SetInstrumentVolume(id int, volume float64)
func (*Synthesizer) Update ¶
func (s *Synthesizer) Update(delta float64)
Click to show internal directories.
Click to hide internal directories.