audio

package
v0.0.0-...-2a9dfdc Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureBlipSelect

func ConfigureBlipSelect() api.IGeneratorValues

ConfigureBlipSelect create internal values for sound type.

func ConfigureExplosion

func ConfigureExplosion() api.IGeneratorValues

ConfigureExplosion create internal values for sound type.

func ConfigureHitHurt

func ConfigureHitHurt() api.IGeneratorValues

ConfigureHitHurt create internal values for sound type.

func ConfigureJump

func ConfigureJump() api.IGeneratorValues

ConfigureJump create internal values for sound type.

func ConfigureLaserShoot

func ConfigureLaserShoot() api.IGeneratorValues

ConfigureLaserShoot create internal values for sound type.

func ConfigurePickupCoin

func ConfigurePickupCoin(withArp bool) api.IGeneratorValues

ConfigurePickupCoin create internal values for sound type.

func ConfigurePowerUp

func ConfigurePowerUp() api.IGeneratorValues

ConfigurePowerUp create internal values for sound type.

func ConfigureRandom

func ConfigureRandom() api.IGeneratorValues

ConfigureRandom create internal values for sound type.

func ConfigureSynth

func ConfigureSynth() api.IGeneratorValues

ConfigureSynth creates a random synthetic sound

func ConfigureTone

func ConfigureTone(tone float64, waveShape int) api.IGeneratorValues

ConfigureTone create internal values for sound type. A4 = 440Hz

func NewIntervalValues

func NewIntervalValues(sfxrJ *SfxrJSON) api.IGeneratorValues

NewIntervalValues create and load a new set of internal values

func NewSfxrGenerator

func NewSfxrGenerator() api.ISampleGenerator

NewSfxrGenerator a new samples generator

Types

type SfxrJSON

type SfxrJSON struct {
	Format                          string
	Category                        string
	Name                            string
	BaseFrequency                   float64
	FrequencyLimit                  float64
	FrequencyRamp                   float64
	FrequencyDeltaRamp              float64
	VibratoStrength                 float64
	VibratoSpeed                    float64
	VibratoDelay                    float64
	ArpeggioMod                     float64
	ArpeggioSpeed                   float64
	DutyCycle                       float64
	DutyCycleRamp                   float64
	RepeatSpeed                     float64
	FlangerPhaseOffset              float64
	FlangerPhaseRamp                float64
	LowPassFilterFrequency          float64
	LowPassFilterFrequencyRamp      float64
	LowPassFilterFrequencyResonance float64
	HighPassFilterFrequency         float64
	HighPassFilterFrequencyRamp     float64
	SoundVolume                     float64
	WaveShape                       int
	EnvelopeAttack                  float64
	EnvelopeSustain                 float64
	EnvelopePunch                   float64
	EnvelopeDecay                   float64
	SampleRate                      int
	SampleSize                      int
	Noise                           []float64
}

SfxrJSON is configuration properties for the Generator

func (*SfxrJSON) CopyFrom

func (s *SfxrJSON) CopyFrom(v api.IGeneratorValues)

CopyFrom transfer data from generator values

Jump to

Keyboard shortcuts

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