marimba

package
v0.0.0-...-10c91e8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DurationTimesF

func DurationTimesF(d time.Duration, n float64) time.Duration

func DurationTimesI

func DurationTimesI(d time.Duration, n int64) time.Duration

func DurationTimesi

func DurationTimesi(d time.Duration, n int) time.Duration

Types

type Conf

type Conf struct {
	Dit       time.Duration
	Freq      float64
	Bandwidth float64
	Filename  string
	Gain      float64
}

type MarimbaEmitter

type MarimbaEmitter struct {
	Conf
	Image image.Image
	W, H  int
}

func NewEmitter

func NewEmitter(conf *Conf) *MarimbaEmitter

func (*MarimbaEmitter) DitPtr

func (o *MarimbaEmitter) DitPtr() *time.Duration

func (*MarimbaEmitter) Duration

func (o *MarimbaEmitter) Duration() time.Duration

func (*MarimbaEmitter) DurationInDits

func (o *MarimbaEmitter) DurationInDits() float64

func (*MarimbaEmitter) Emit

func (o *MarimbaEmitter) Emit(out chan Volt)

func (*MarimbaEmitter) String

func (o *MarimbaEmitter) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL