Documentation ¶
Index ¶
- func ConfigureBlipSelect() api.IGeneratorValues
- func ConfigureExplosion() api.IGeneratorValues
- func ConfigureHitHurt() api.IGeneratorValues
- func ConfigureJump() api.IGeneratorValues
- func ConfigureLaserShoot() api.IGeneratorValues
- func ConfigurePickupCoin(withArp bool) api.IGeneratorValues
- func ConfigurePowerUp() api.IGeneratorValues
- func ConfigureRandom() api.IGeneratorValues
- func ConfigureSynth() api.IGeneratorValues
- func ConfigureTone(tone float64, waveShape int) api.IGeneratorValues
- func NewIntervalValues(sfxrJ *SfxrJSON) api.IGeneratorValues
- func NewSfxrGenerator() api.ISampleGenerator
- type SfxrJSON
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