Categorygithub.com/Programmerino/beepFade
modulepackage
0.0.0-20190629210434-15545366e670
Repository: https://github.com/programmerino/beepfade.git
Documentation: pkg.go.dev

# README

beepFade

Adds a new fading effect for the Golang Beep library

How to use

Crossfade between songs

// CrossfadeStream crossfades between all songs specified in files
// The sample-rates between the two streams must be the same, otherwise weird things might happen
// If opts is nil, then reasonable defaults are used
streamer := beepFade.CrossfadeStream(format, nil, stream1, stream2)
// This streamer will fade into stream1, and then crossfade between stream1 and stream2, and then fade out of stream2

A full example can be found in the example folder

# Functions

CrossfadeStream crossfades between all songs specified in files The sample-rates between the two streams must be the same, otherwise weird things might happen If opts is nil, then reasonable defaults are used.

# Structs

Options for the CrossfadeSream function.