Checkpoint
This commit is contained in:
160 files changed
+76293
-387
No files matched your search
@@ -0,0 +1,132 @@
|
||||
package audio
|
||||
|
||||
import (
|
||||
"math"
|
||||
"math/cmplx"
|
||||
|
||||
"github.com/BeatGlow/beatglow/internal/calc"
|
||||
"gonum.org/v1/gonum/dsp/fourier"
|
||||
)
|
||||
|
||||
// FrequencySpectrumAnalyzer structure to hold analysis parameters
|
||||
type FrequencySpectrumAnalyzer struct {
|
||||
SampleRate float64
|
||||
BitDepth int
|
||||
NumBins int
|
||||
MinFrequency float64
|
||||
MaxFrequency float64
|
||||
avgSamples []float64
|
||||
coefficients []complex128
|
||||
bins []float64
|
||||
}
|
||||
|
||||
// dBFS calculates dBFS for the given amplitude value
|
||||
func dBFS(amplitude float64) float64 {
|
||||
if amplitude == 0 {
|
||||
return -math.Inf(1) // -Infinity for silence
|
||||
}
|
||||
return 20 * math.Log10(amplitude)
|
||||
}
|
||||
|
||||
func normalize(values []float64) {
|
||||
var max float64
|
||||
for _, v := range values {
|
||||
if v = math.Abs(v); v > max {
|
||||
max = v
|
||||
}
|
||||
}
|
||||
if max == 0 {
|
||||
return
|
||||
}
|
||||
for i := range values {
|
||||
values[i] /= max
|
||||
}
|
||||
}
|
||||
|
||||
// AnalyzeFrequencySpectrum performs the FFT and returns the energy levels in dBFS for each frequency bin
|
||||
func (a *FrequencySpectrumAnalyzer) AnalyzeFrequencySpectrum(buffer *Buffer) []float64 {
|
||||
samples := len(buffer.Samples[0])
|
||||
//if len(a.avgSamples) != samples {
|
||||
a.avgSamples = make([]float64, samples)
|
||||
a.coefficients = make([]complex128, samples/2+1)
|
||||
//}
|
||||
|
||||
channels := len(buffer.Samples)
|
||||
if channels == 1 {
|
||||
for i, sample := range buffer.Samples[0] {
|
||||
a.avgSamples[i] = float64(sample)
|
||||
}
|
||||
} else {
|
||||
for i := range buffer.Samples[0] {
|
||||
a.avgSamples[i] = float64(buffer.Samples[0][i]+buffer.Samples[1][i]) / 2
|
||||
}
|
||||
}
|
||||
|
||||
// Apply windowing function
|
||||
//normalize(a.avgSamples)
|
||||
//calc.Hamming(a.avgSamples, a.avgSamples)
|
||||
calc.Hann(a.avgSamples, a.avgSamples)
|
||||
|
||||
// Perform FFT on the signal
|
||||
fft := fourier.NewFFT(samples)
|
||||
fft.Coefficients(a.coefficients, a.avgSamples)
|
||||
|
||||
// Calculate the energy levels in dBFS for each frequency bin
|
||||
var (
|
||||
frequencyBinSize = a.SampleRate / float64(samples)
|
||||
minBin = int(math.Round(a.MinFrequency / frequencyBinSize))
|
||||
maxBin = int(math.Round(a.MaxFrequency / frequencyBinSize))
|
||||
)
|
||||
|
||||
// Make sure the minimum bin is not lower than 0, and the maximum bin doesn't exceed half of the buffer size
|
||||
if minBin < 0 {
|
||||
minBin = 0
|
||||
}
|
||||
if maxBin > samples/2 {
|
||||
maxBin = samples / 2
|
||||
}
|
||||
|
||||
//if len(a.bins) != a.NumBins {
|
||||
a.bins = make([]float64, a.NumBins)
|
||||
//}
|
||||
|
||||
// Compute dBFS levels for the selected frequency range
|
||||
for i := 0; i < a.NumBins; i++ {
|
||||
var (
|
||||
// Calculate the frequency range for this bin
|
||||
frequencyScale = (a.MaxFrequency - a.MinFrequency) / float64(a.NumBins)
|
||||
frequencyStart = a.MinFrequency + float64(i)*frequencyScale
|
||||
frequencyEnd = a.MinFrequency + float64(i+1)*frequencyScale
|
||||
|
||||
// Determine the FFT bin range corresponding to the frequency range of this bin
|
||||
startBin = int((frequencyStart / frequencyBinSize) + .5)
|
||||
endBin = int((frequencyEnd / frequencyBinSize) + .5)
|
||||
)
|
||||
|
||||
// Ensure the bins are within the valid range
|
||||
if startBin < 0 {
|
||||
startBin = 0
|
||||
}
|
||||
if endBin > samples/2 {
|
||||
endBin = samples / 2
|
||||
}
|
||||
|
||||
// Average the magnitudes of the FFT bins in this range and accumulate the result
|
||||
var totalAmplitude float64
|
||||
var count int
|
||||
for bin := startBin; bin < endBin; bin++ {
|
||||
x := a.coefficients[bin]
|
||||
//amplitude := real(x)*real(x) + imag(x)*imag(x) // math.Hypot(real(x), imag(x))
|
||||
amplitude := math.Min(cmplx.Abs(x), 1.0)
|
||||
totalAmplitude += amplitude
|
||||
count++
|
||||
}
|
||||
|
||||
// Calculate the average dBFS for this frequency bin
|
||||
if count > 0 {
|
||||
a.bins[i] = math.Min((totalAmplitude/float64(count))*10, 1.0)
|
||||
}
|
||||
}
|
||||
|
||||
return a.bins
|
||||
}
|
||||
@@ -0,0 +1,97 @@
|
||||
package audio
|
||||
|
||||
import "math"
|
||||
|
||||
// Float is all floating point number types (and Samples).
|
||||
type Float interface {
|
||||
~float32 | ~float64
|
||||
}
|
||||
|
||||
// Clamp a sample in [-1..+1].
|
||||
func Clamp[T Float](sample T) T {
|
||||
if sample < -1 {
|
||||
return -1
|
||||
}
|
||||
if sample > +1 {
|
||||
return +1
|
||||
}
|
||||
return sample
|
||||
}
|
||||
|
||||
// Abs a slice of values.
|
||||
func Abs[T Float](values []T) {
|
||||
for i, v := range values {
|
||||
values[i] = T(math.Abs(float64(v)))
|
||||
}
|
||||
}
|
||||
|
||||
// Mean of values.
|
||||
func Mean[T Float](values []T) T {
|
||||
if len(values) == 0 {
|
||||
return 0
|
||||
}
|
||||
|
||||
// an algorithm that attempts to retain accuracy
|
||||
// with widely different values.
|
||||
var parts []float64
|
||||
for _, v := range values {
|
||||
var (
|
||||
x = float64(v)
|
||||
i int
|
||||
)
|
||||
for _, p := range parts {
|
||||
sum := p + x
|
||||
var err float64
|
||||
switch ax, ap := math.Abs(x), math.Abs(p); {
|
||||
case ax < ap:
|
||||
err = x - (sum - p)
|
||||
case ap < ax:
|
||||
err = p - (sum - x)
|
||||
}
|
||||
if err != 0 {
|
||||
parts[i] = err
|
||||
i++
|
||||
}
|
||||
x = sum
|
||||
}
|
||||
parts = append(parts[:i], x)
|
||||
}
|
||||
|
||||
var sum float64
|
||||
for _, x := range parts {
|
||||
sum += x
|
||||
}
|
||||
return T(sum / float64(len(values)))
|
||||
}
|
||||
|
||||
// RMS calculates the root mean square of values.
|
||||
func RMS[T Float](values []T) T {
|
||||
if len(values) == 0 {
|
||||
return 0
|
||||
}
|
||||
|
||||
var squares float64
|
||||
for _, v := range values {
|
||||
squares += float64(v) * float64(v)
|
||||
}
|
||||
|
||||
return T(math.Sqrt(squares / float64(len(values))))
|
||||
}
|
||||
|
||||
// Sum of values.
|
||||
func Sum[T Float](values []T) T {
|
||||
if len(values) == 0 {
|
||||
return 0
|
||||
}
|
||||
|
||||
var sum T
|
||||
for _, v := range values {
|
||||
sum += v
|
||||
}
|
||||
return sum
|
||||
}
|
||||
|
||||
// SQNR is the signal-to-quantization-noise ratio.
|
||||
func SQNR(bits int) float64 {
|
||||
return 20 * math.Log10(math.Pow(2, float64(bits)))
|
||||
}
|
||||
@@ -0,0 +1,241 @@
|
||||
package audio
|
||||
|
||||
import (
|
||||
"encoding/binary"
|
||||
"io"
|
||||
"math"
|
||||
|
||||
"github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
// Sample is a type alias for float64.
|
||||
type Sample float64
|
||||
|
||||
// Format is the format of a Buffer or another audio source.
|
||||
type Format interface {
|
||||
// BitsPerSample is the number of bits per sample.
|
||||
BitsPerSample() int
|
||||
|
||||
// Order is the byte order.
|
||||
Order() binary.ByteOrder
|
||||
|
||||
// DecodeFromBytes reads one sample from b. No bounds checking is performed on b!
|
||||
DecodeFromBytes(b []byte) Sample
|
||||
|
||||
// EncodeToBytes writes on sample to b.
|
||||
EncodeToBytes(b []byte, s Sample)
|
||||
}
|
||||
|
||||
type pcmFormat uint8
|
||||
|
||||
const (
|
||||
Int8 pcmFormat = iota
|
||||
Int16
|
||||
Int16BE
|
||||
Int32
|
||||
Int32BE
|
||||
Float32
|
||||
Float32BE
|
||||
Float64
|
||||
Float64BE
|
||||
)
|
||||
|
||||
func makeFormat(bits int) pcmFormat {
|
||||
switch bits {
|
||||
case 8:
|
||||
return Int8
|
||||
case 16:
|
||||
return Int16
|
||||
case 32:
|
||||
return Int32
|
||||
default:
|
||||
return Int16
|
||||
}
|
||||
}
|
||||
|
||||
var pcmfFormatBitsPerSample = map[pcmFormat]int{
|
||||
Int8: 8,
|
||||
Int16: 16,
|
||||
Int16BE: 16,
|
||||
Int32: 32,
|
||||
Int32BE: 32,
|
||||
Float32: 32,
|
||||
Float32BE: 32,
|
||||
Float64: 64,
|
||||
Float64BE: 64,
|
||||
}
|
||||
|
||||
func (f pcmFormat) BitsPerSample() int {
|
||||
if v, ok := pcmfFormatBitsPerSample[f]; ok {
|
||||
return v
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (f pcmFormat) Order() binary.ByteOrder {
|
||||
if f%2 == 0 {
|
||||
return binary.BigEndian
|
||||
}
|
||||
return binary.LittleEndian
|
||||
}
|
||||
|
||||
func (f pcmFormat) DecodeFromBytes(b []byte) Sample {
|
||||
order := f.Order()
|
||||
switch f {
|
||||
case Int8:
|
||||
return Sample(int8(b[0])) / math.MaxInt8
|
||||
case Int16, Int16BE:
|
||||
return Sample(int16(order.Uint16(b))) / math.MaxInt16
|
||||
case Int32, Int32BE:
|
||||
return Sample(int32(order.Uint32(b))) / math.MaxInt32
|
||||
case Float32, Float32BE:
|
||||
return Sample(math.Float32frombits(order.Uint32(b)))
|
||||
case Float64, Float64BE:
|
||||
return Sample(math.Float64frombits(order.Uint64(b)))
|
||||
default:
|
||||
return 0
|
||||
}
|
||||
}
|
||||
|
||||
func (f pcmFormat) EncodeToBytes(b []byte, s Sample) {
|
||||
order := f.Order()
|
||||
switch f {
|
||||
case Int8:
|
||||
b[0] = byte(int8(s * math.MaxInt8))
|
||||
case Int16, Int16BE:
|
||||
order.PutUint16(b, uint16(int16(s*math.MaxInt16)))
|
||||
case Int32, Int32BE:
|
||||
order.PutUint32(b, uint32(int32(s*math.MaxInt32)))
|
||||
case Float32, Float32BE:
|
||||
order.PutUint32(b, math.Float32bits(float32(s)))
|
||||
case Float64, Float64BE:
|
||||
order.PutUint64(b, math.Float64bits(float64(s)))
|
||||
}
|
||||
}
|
||||
|
||||
var pcmFormatNames = map[pcmFormat]string{
|
||||
Int8: "8-bit signed PCM",
|
||||
Int16: "16-bit signed PCM",
|
||||
Int16BE: "16-bit signed PCM (BE)",
|
||||
Int32: "32-bit signed PCM",
|
||||
Int32BE: "32-bit signed PCM (BE)",
|
||||
Float32: "32-bit floating piont PCM",
|
||||
Float32BE: "32-bit floating point PCM (BE)",
|
||||
Float64: "64-bit floating point PCM",
|
||||
Float64BE: "64-bit floating point PCM (BE)",
|
||||
}
|
||||
|
||||
func (f pcmFormat) String() string {
|
||||
if s, ok := pcmFormatNames[f]; ok {
|
||||
return s
|
||||
}
|
||||
return "unknown"
|
||||
}
|
||||
|
||||
// Buffer of audio samples, only supports mono and stereo samples.
|
||||
type Buffer struct {
|
||||
Format Format
|
||||
Rate Rate
|
||||
Samples [][]Sample
|
||||
buf []byte
|
||||
}
|
||||
|
||||
func NewBuffer(format Format, rate Rate, n, channels int) *Buffer {
|
||||
if channels < 1 {
|
||||
channels = 1
|
||||
}
|
||||
if channels > 2 {
|
||||
channels = 2
|
||||
}
|
||||
|
||||
logrus.WithFields(logrus.Fields{
|
||||
"channels": channels,
|
||||
"rate": rate,
|
||||
"format": format,
|
||||
"samples": n,
|
||||
}).Debug("new audio buffer")
|
||||
|
||||
samples := make([][]Sample, channels)
|
||||
for channel := 0; channel < channels; channel++ {
|
||||
samples[channel] = make([]Sample, n)
|
||||
}
|
||||
|
||||
return &Buffer{
|
||||
Format: format,
|
||||
Rate: rate,
|
||||
Samples: samples,
|
||||
}
|
||||
}
|
||||
|
||||
// DecodeFrom decodes samples read from r.
|
||||
func (b *Buffer) DecodeFrom(r io.Reader) (n int, err error) {
|
||||
if s, ok := r.(SamplesReader); ok {
|
||||
// Use the SamplesReader interface, if available.
|
||||
return s.ReadSamples(b.Samples)
|
||||
}
|
||||
|
||||
var (
|
||||
channels = len(b.Samples)
|
||||
samples = len(b.Samples[0])
|
||||
bitsPerSample = b.Format.BitsPerSample()
|
||||
bytesPerSample = bitsPerSample / 8
|
||||
bytesRequired = channels * samples * bytesPerSample
|
||||
)
|
||||
|
||||
// Resize buffer, if required.
|
||||
if len(b.buf) < bytesRequired {
|
||||
b.buf = make([]byte, bytesRequired)
|
||||
} else {
|
||||
b.buf = b.buf[:bytesRequired]
|
||||
}
|
||||
|
||||
// Read raw bytes.
|
||||
if _, err = io.ReadFull(r, b.buf); err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
// Convert bytes to samples, deinterleave multi channel audio.
|
||||
var o, c int
|
||||
for i, l := 0, bytesRequired/bytesPerSample; i < l; i++ {
|
||||
b.Samples[0][c] = b.Format.DecodeFromBytes(b.buf[o : o+bytesPerSample])
|
||||
c = (c + 1) % channels
|
||||
o = o + bytesPerSample
|
||||
}
|
||||
|
||||
return bytesRequired / bytesPerSample, nil
|
||||
}
|
||||
|
||||
// ToMono converts the buffer to mono. If the buffer is already mono, it returns the buffer.
|
||||
func (b *Buffer) ToMono() *Buffer {
|
||||
if len(b.Samples) == 1 {
|
||||
return b
|
||||
}
|
||||
|
||||
// Convert stereo buffer to mono.
|
||||
o := NewBuffer(b.Format, b.Rate, len(b.Samples[0]), 2)
|
||||
for i := range o.Samples[0] {
|
||||
o.Samples[0][i] = (b.Samples[0][i] + b.Samples[1][i]) / 2
|
||||
}
|
||||
return o
|
||||
}
|
||||
|
||||
// ToStereo converts the buffer to stereo. If the buffer is already stereo, it returns the buffer.
|
||||
func (b *Buffer) ToStereo() *Buffer {
|
||||
if len(b.Samples) == 2 {
|
||||
return b
|
||||
}
|
||||
|
||||
// Convert mono buffer to stereo.
|
||||
o := NewBuffer(b.Format, b.Rate, len(b.Samples[0]), 1)
|
||||
copy(o.Samples[0], b.Samples[0])
|
||||
copy(o.Samples[1], b.Samples[0])
|
||||
return o
|
||||
}
|
||||
|
||||
type BufferProcessor interface {
|
||||
ProcessBuffer(buffer *Buffer)
|
||||
}
|
||||
|
||||
type Processor interface {
|
||||
ProcessSamples(samples [][]Sample)
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package audio
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestFormatBitsPerSample(t *testing.T) {
|
||||
testCases := []struct {
|
||||
Test Format
|
||||
Want int
|
||||
}{
|
||||
{Int8, 8},
|
||||
{Int16, 16},
|
||||
{Int16BE, 16},
|
||||
{Int32, 32},
|
||||
{Int32BE, 32},
|
||||
}
|
||||
for _, test := range testCases {
|
||||
t.Run(test.Test.(pcmFormat).String(), func(it *testing.T) {
|
||||
if v := test.Test.BitsPerSample(); v != test.Want {
|
||||
it.Errorf("expected %d bits per sample, got %d", test.Want, v)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,147 @@
|
||||
package audio
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"io"
|
||||
"os"
|
||||
|
||||
"github.com/sirupsen/logrus"
|
||||
|
||||
"github.com/BeatGlow/beatglow/config"
|
||||
)
|
||||
|
||||
func init() {
|
||||
Register("file", openReader)
|
||||
Register("fifo", openReader)
|
||||
}
|
||||
|
||||
// Source of audio samples.
|
||||
type Source interface {
|
||||
io.Reader
|
||||
|
||||
String() string
|
||||
|
||||
// Channels is the number of channels.
|
||||
Channels() int
|
||||
|
||||
// Format of the source.
|
||||
Format() Format
|
||||
|
||||
// SampleRate of the source.
|
||||
SampleRate() Rate
|
||||
}
|
||||
|
||||
// NotFound signals the reader type can not be found.
|
||||
type NotFound struct {
|
||||
Type string
|
||||
}
|
||||
|
||||
func (err NotFound) Error() string {
|
||||
return fmt.Sprintf("audio source %q not available", err.Type)
|
||||
}
|
||||
|
||||
// SourceOpener can open an audio stream source.
|
||||
type SourceOpener func(config.Audio) (Source, error)
|
||||
|
||||
var drivers = make(map[string]SourceOpener)
|
||||
|
||||
func Register(name string, opener SourceOpener) {
|
||||
if _, dupe := drivers[name]; dupe {
|
||||
panic(fmt.Sprintf("audio source %q already registered", name))
|
||||
}
|
||||
drivers[name] = opener
|
||||
}
|
||||
|
||||
func NewSource(config config.Audio) (Source, error) {
|
||||
opener, ok := drivers[config.Type]
|
||||
if ok {
|
||||
return opener(config)
|
||||
}
|
||||
return nil, NotFound{Type: config.Type}
|
||||
}
|
||||
|
||||
type ReaderSource struct {
|
||||
io.ReadCloser
|
||||
|
||||
// Name of the reader (path).
|
||||
Name string
|
||||
|
||||
// Ch is the number of channels.
|
||||
Ch int
|
||||
|
||||
// Format is the audio format.
|
||||
Fmt Format
|
||||
|
||||
// Rate is the sample rate.
|
||||
Rate Rate
|
||||
|
||||
// Opener is a function that can be called if the reader is closed.
|
||||
Opener func() (io.ReadCloser, error)
|
||||
}
|
||||
|
||||
func openReader(config config.Audio) (Source, error) {
|
||||
var (
|
||||
ch = config.Channels
|
||||
bits = config.Bits
|
||||
rate = Rate(config.Rate)
|
||||
)
|
||||
if ch == 0 {
|
||||
ch = 2
|
||||
}
|
||||
if bits == 0 {
|
||||
bits = 16
|
||||
}
|
||||
if rate == 0 {
|
||||
rate = 44100
|
||||
}
|
||||
return &ReaderSource{
|
||||
Name: config.Path,
|
||||
Ch: ch,
|
||||
Fmt: makeFormat(bits),
|
||||
Rate: rate,
|
||||
Opener: func() (io.ReadCloser, error) {
|
||||
return os.Open(config.Path)
|
||||
},
|
||||
}, nil
|
||||
}
|
||||
|
||||
func (s *ReaderSource) String() string {
|
||||
return "reader:" + s.Name
|
||||
}
|
||||
|
||||
func (s *ReaderSource) Channels() int {
|
||||
return s.Ch
|
||||
}
|
||||
|
||||
func (s *ReaderSource) Format() Format {
|
||||
return s.Fmt
|
||||
}
|
||||
|
||||
func (s *ReaderSource) SampleRate() Rate {
|
||||
return s.Rate
|
||||
}
|
||||
|
||||
func (r *ReaderSource) Read(b []byte) (int, error) {
|
||||
var err error
|
||||
if r.ReadCloser == nil {
|
||||
if r.ReadCloser, err = r.Opener(); err != nil {
|
||||
return 0, err
|
||||
}
|
||||
}
|
||||
|
||||
var n int
|
||||
if n, err = r.ReadCloser.Read(b); err != nil {
|
||||
logrus.WithError(err).Warn("source failed to read; closing")
|
||||
if errors.Is(err, io.EOF) || errors.Is(err, io.ErrUnexpectedEOF) {
|
||||
_ = r.ReadCloser.Close()
|
||||
r.ReadCloser = nil
|
||||
}
|
||||
}
|
||||
return n, err
|
||||
}
|
||||
|
||||
type SamplesReader interface {
|
||||
// ReadSamples reads samples, it returns the number of samples read.
|
||||
ReadSamples(samples [][]Sample) (int, error)
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
package audio
|
||||
|
||||
import (
|
||||
"context"
|
||||
"time"
|
||||
|
||||
"github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
const streamDoubleBufferSize = 16
|
||||
|
||||
type StreamCancelFunc func()
|
||||
|
||||
// Stream reads from a source using a buffer size of n samples.
|
||||
func Stream(source Source, n int) (<-chan *Buffer, StreamCancelFunc) {
|
||||
channel := make(chan *Buffer, streamDoubleBufferSize)
|
||||
ctx, cancel := context.WithCancel(context.Background())
|
||||
go stream(ctx, channel, source, n)
|
||||
return channel, StreamCancelFunc(cancel)
|
||||
}
|
||||
|
||||
func stream(ctx context.Context, stream chan<- *Buffer, source Source, n int) {
|
||||
defer close(stream)
|
||||
|
||||
buffers := make([]*Buffer, streamDoubleBufferSize)
|
||||
for i := 0; i < streamDoubleBufferSize; i++ {
|
||||
buffers[i] = NewBuffer(source.Format(), source.SampleRate(), n, source.Channels())
|
||||
}
|
||||
|
||||
var bufferPos int
|
||||
for {
|
||||
select {
|
||||
case <-ctx.Done():
|
||||
return
|
||||
default:
|
||||
}
|
||||
|
||||
buffer := buffers[bufferPos]
|
||||
bufferPos = (bufferPos + 1) % streamDoubleBufferSize
|
||||
if _, err := buffer.DecodeFrom(source); err != nil {
|
||||
logrus.WithError(err).WithField("source", source).Warn("decode audio failed")
|
||||
time.Sleep(time.Second)
|
||||
continue
|
||||
}
|
||||
|
||||
select {
|
||||
case <-ctx.Done():
|
||||
return
|
||||
case stream <- buffer:
|
||||
default:
|
||||
logrus.WithField("source", source).Trace("buffer overrun, host too slow?")
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
package audio
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"strconv"
|
||||
"time"
|
||||
)
|
||||
|
||||
// Rate is the sampling rate.
|
||||
type Rate int
|
||||
|
||||
// Frequency is the sampling frequency.
|
||||
func (r Rate) Frequency() Frequency {
|
||||
return 1 / Frequency(r)
|
||||
}
|
||||
|
||||
// Duration of n samples at this rate.
|
||||
func (r Rate) Duration(n int) time.Duration {
|
||||
return time.Second * time.Duration(n) / time.Duration(r)
|
||||
}
|
||||
|
||||
// Number of sample during duration d.
|
||||
func (r Rate) Samples(d time.Duration) int {
|
||||
return int(d * time.Duration(r) / time.Second)
|
||||
}
|
||||
|
||||
func (r Rate) String() string {
|
||||
return strconv.FormatInt(int64(r), 10)
|
||||
}
|
||||
|
||||
// Frequency is a type alias for float64.
|
||||
type Frequency float64
|
||||
|
||||
const (
|
||||
Hz Frequency = 1
|
||||
KHz Frequency = 1e3
|
||||
MHz Frequency = 1e6
|
||||
GHz Frequency = 1e9
|
||||
THz Frequency = 1e12
|
||||
)
|
||||
|
||||
func (f Frequency) String() string {
|
||||
switch {
|
||||
case f > THz:
|
||||
return fmt.Sprintf("%gTHz", f/THz)
|
||||
case f > GHz:
|
||||
return fmt.Sprintf("%gGHz", f/GHz)
|
||||
case f > MHz:
|
||||
return fmt.Sprintf("%gMHz", f/MHz)
|
||||
case f > KHz:
|
||||
return fmt.Sprintf("%gkHz", f/KHz)
|
||||
default:
|
||||
return fmt.Sprintf("%gHz", f)
|
||||
}
|
||||
}
|
||||
|
||||
// Rate is the sampling rate for this frequency.
|
||||
func (r Frequency) Rate() Rate {
|
||||
return Rate(1 / r)
|
||||
}
|
||||
+147
@@ -0,0 +1,147 @@
|
||||
package ui
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"image"
|
||||
"image/color"
|
||||
"image/png"
|
||||
"time"
|
||||
|
||||
"github.com/nfnt/resize"
|
||||
"github.com/sirupsen/logrus"
|
||||
|
||||
"github.com/BeatGlow/beatglow/ui/widget"
|
||||
"github.com/BeatGlow/display"
|
||||
"github.com/BeatGlow/display/draw"
|
||||
|
||||
_ "embed" // Embed binary files
|
||||
)
|
||||
|
||||
var (
|
||||
logoBG = color.RGBA{R: 0x11, G: 0xff, B: 0xe3, A: 0xff}
|
||||
logoFG = color.RGBA{R: 0x8a, G: 0x00, B: 0xc4, A: 0xff}
|
||||
)
|
||||
|
||||
// Boot renders the boot splash.
|
||||
func Boot(dst display.Display) error {
|
||||
logrus.WithField("display", dst).Info("Welcome to BeatGlow!")
|
||||
|
||||
var (
|
||||
styles = StylesFor(dst.ColorModel())
|
||||
bounds = dst.Bounds()
|
||||
width = bounds.Dx()
|
||||
height = bounds.Dy()
|
||||
canvas = image.NewRGBA(bounds)
|
||||
)
|
||||
logrus.Infof("styles: %#+v", styles)
|
||||
|
||||
draw.Draw(canvas, bounds, styles.Boot.Background, image.Point{}, draw.Src)
|
||||
if err := dst.Refresh(); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
fontSize := 24.0
|
||||
switch {
|
||||
case height >= 64:
|
||||
fontSize = 36.0
|
||||
case height >= 128:
|
||||
fontSize = 48.0
|
||||
}
|
||||
|
||||
font := styles.Boot.Font.WithPointSize(fontSize)
|
||||
logoTextWidth, logoTextHeight := font.MeasureText("beatglow")
|
||||
logoText := widget.NewText(image.Point{}, font, image.NewUniform(styles.Boot.Foreground), "beatglow")
|
||||
logoText.Position = bounds.Size()
|
||||
logoText.Position.X /= 2
|
||||
logoText.Position.Y /= 2
|
||||
logoText.Position.X -= logoTextWidth / 2
|
||||
logoText.Position.Y -= logoTextHeight / 2
|
||||
logoText.Render(dst)
|
||||
|
||||
border := bounds
|
||||
border.Max.X--
|
||||
border.Max.Y--
|
||||
draw.Rectangle(dst, border, color.White)
|
||||
|
||||
if err := dst.Refresh(); err != nil {
|
||||
return err
|
||||
}
|
||||
time.Sleep(250 * time.Millisecond)
|
||||
|
||||
var (
|
||||
logoTextStep image.Point
|
||||
logoTextStop image.Point
|
||||
logoLoveMaxX uint
|
||||
logoLoveMaxY uint
|
||||
logoLovePosition image.Point
|
||||
logoLoveCenterX bool
|
||||
logoLoveCenterY bool
|
||||
)
|
||||
switch {
|
||||
case width == 256 && height == 64:
|
||||
// Side by side
|
||||
logoTextStep = image.Pt(-1, 0)
|
||||
logoTextStop = image.Pt(2, logoText.Position.Y)
|
||||
logoLoveMaxX = uint(width) / 2
|
||||
logoLoveMaxY = uint(height)
|
||||
logoLovePosition = image.Pt((width/4)*3, height/2) // center right
|
||||
logoLoveCenterX = true
|
||||
default:
|
||||
// Scroll up
|
||||
logoTextStep = image.Pt(0, -1)
|
||||
logoTextStop = image.Pt(logoText.Position.X, 0)
|
||||
logoLoveMaxX = uint(width)
|
||||
logoLoveMaxY = uint(height / 2)
|
||||
logoLovePosition = image.Pt(width/2, (height/4)*3) // bottom
|
||||
logoLoveCenterY = true
|
||||
}
|
||||
|
||||
ticker := time.NewTicker(10 * time.Millisecond)
|
||||
for ; !logoText.Position.Eq(logoTextStop); logoText.Position = logoText.Position.Add(logoTextStep) {
|
||||
draw.Draw(canvas, bounds, styles.Boot.Background, image.Point{}, draw.Src) // clear canvas
|
||||
logoText.Render(canvas) // render logo
|
||||
draw.Draw(dst, bounds, canvas, image.Point{}, draw.Src) // canvas to display
|
||||
dst.Refresh() // display refresh
|
||||
<-ticker.C
|
||||
}
|
||||
ticker.Stop()
|
||||
|
||||
logrus.Info("BeatGlow 💖 Volumio")
|
||||
logoLove := resize.Thumbnail(logoLoveMaxX, logoLoveMaxY, logoVolumio, resize.Lanczos3)
|
||||
|
||||
//draw.Draw(canvas, bounds, image.NewUniform(color.Black), image.Point{}, draw.Src)
|
||||
if logoLoveCenterX {
|
||||
logoLovePosition.X -= logoLove.Bounds().Dx() / 2
|
||||
}
|
||||
if logoLoveCenterY {
|
||||
logoLovePosition.Y -= logoLove.Bounds().Dy() / 2
|
||||
}
|
||||
draw.Draw(canvas, bounds.Add(logoLovePosition), logoLove, image.Point{}, draw.Src)
|
||||
draw.Draw(dst, bounds, canvas, image.Point{}, draw.Src)
|
||||
|
||||
if err := dst.Refresh(); err != nil {
|
||||
return err
|
||||
}
|
||||
time.Sleep(1 * time.Second)
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func mustDecodePNG(b []byte) image.Image {
|
||||
i, err := png.Decode(bytes.NewBuffer(b))
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
return i
|
||||
}
|
||||
|
||||
var (
|
||||
logoVolumio = mustDecodePNG(logoVolumioPNG)
|
||||
logoMoode = mustDecodePNG(logoMoodePNG)
|
||||
)
|
||||
|
||||
//go:embed asset/logo-volumio.png
|
||||
var logoVolumioPNG []byte
|
||||
|
||||
//go:embed asset/logo-moode.png
|
||||
var logoMoodePNG []byte
|
||||
@@ -0,0 +1,113 @@
|
||||
package visual
|
||||
|
||||
import (
|
||||
"math/cmplx"
|
||||
|
||||
"github.com/BeatGlow/beatglow/audio"
|
||||
"github.com/BeatGlow/beatglow/draw"
|
||||
"github.com/BeatGlow/beatglow/draw/pixel"
|
||||
"github.com/BeatGlow/beatglow/internal/calc"
|
||||
"github.com/BeatGlow/display"
|
||||
"gonum.org/v1/gonum/dsp/fourier"
|
||||
)
|
||||
|
||||
type Analyzer struct {
|
||||
display display.Display
|
||||
canvas *draw.Canvas
|
||||
rate audio.Rate
|
||||
step int
|
||||
fft *fourier.FFT
|
||||
complex []complex128
|
||||
samples []float64
|
||||
levels []float64
|
||||
}
|
||||
|
||||
func NewAnalyzer(display display.Display, rate audio.Rate, step int) *Analyzer {
|
||||
return &Analyzer{
|
||||
display: display,
|
||||
canvas: draw.NewCanvas(display),
|
||||
rate: rate,
|
||||
step: step,
|
||||
levels: make([]float64, display.Bounds().Dx()),
|
||||
}
|
||||
}
|
||||
|
||||
func (a *Analyzer) ProcessBuffer(buffer *audio.Buffer) {
|
||||
a.frequencySpectrum(buffer.ToMono().Samples[0], a.rate, a.step)
|
||||
}
|
||||
|
||||
func (a *Analyzer) Halt() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (Analyzer) Type() string {
|
||||
return "visual:analyzer"
|
||||
}
|
||||
|
||||
func (a *Analyzer) Render() error {
|
||||
//a.display.Clear()
|
||||
|
||||
for x, level := range a.levels {
|
||||
h := int(56*level + .5)
|
||||
draw.Line(a.display, pixel.On, x, 56-h, x+1, 56)
|
||||
}
|
||||
|
||||
return a.display.Refresh()
|
||||
}
|
||||
|
||||
func (a *Analyzer) resize(n int) {
|
||||
if s := n/2 + 1; len(a.complex) != s {
|
||||
a.fft = fourier.NewFFT(n)
|
||||
a.samples = make([]float64, n)
|
||||
a.complex = make([]complex128, s)
|
||||
}
|
||||
}
|
||||
|
||||
func (a *Analyzer) convert(samples []audio.Sample) {
|
||||
for i, v := range samples {
|
||||
a.samples[i] = float64(v)
|
||||
}
|
||||
}
|
||||
|
||||
func (a *Analyzer) frequencySpectrum(samples []audio.Sample, rate audio.Rate, step int) error {
|
||||
n := len(samples)
|
||||
a.resize(n)
|
||||
a.convert(samples)
|
||||
a.fft.Coefficients(a.complex, a.samples)
|
||||
|
||||
/*
|
||||
if err := transform(csamples); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
*/
|
||||
|
||||
/*
|
||||
fmt.Printf("%d: %#+v", len(a.complex), a.complex)
|
||||
freqSamplingStep := float64(rate) / float64(n)
|
||||
scaleStep := float64(step) / freqSamplingStep
|
||||
freqLimit := float64(rate) / 2.0
|
||||
|
||||
for i := 0.0; i*freqSamplingStep <= freqLimit; i += scaleStep {
|
||||
//result[int(i*freqSamplingStep)] = math.Abs(real(a.complex[int(i)])) // cmplx.Abs(a.complex[int(i)])
|
||||
a.levels[int(i*freqSamplingStep)] = cmplx.Abs(a.complex[int(i)])
|
||||
}
|
||||
*/
|
||||
for i := 0; i < a.display.Bounds().Size().X; i++ {
|
||||
o := i << 1
|
||||
a.levels[i] = (cmplx.Abs(a.complex[o]) + cmplx.Abs(a.complex[o+1])) / 2
|
||||
}
|
||||
calc.Hamming(a.levels, a.levels)
|
||||
|
||||
a.normalizeSpectrum()
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func (a *Analyzer) normalizeSpectrum() {
|
||||
max := calc.Max(a.levels)
|
||||
if max > 0 {
|
||||
for i := range a.levels {
|
||||
a.levels[i] /= max
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,88 @@
|
||||
package visual
|
||||
|
||||
import (
|
||||
"image"
|
||||
|
||||
"github.com/nfnt/resize"
|
||||
"github.com/sirupsen/logrus"
|
||||
|
||||
"github.com/BeatGlow/beatglow/player"
|
||||
"github.com/BeatGlow/beatglow/ui"
|
||||
"github.com/BeatGlow/display"
|
||||
"github.com/BeatGlow/display/draw"
|
||||
|
||||
_ "embed"
|
||||
)
|
||||
|
||||
type Art struct {
|
||||
display display.Display
|
||||
styles ui.Styles
|
||||
player player.Player
|
||||
size uint
|
||||
track *player.Track
|
||||
icon image.Image
|
||||
}
|
||||
|
||||
func NewArt(display display.Display, player player.Player) *Art {
|
||||
size := uint(display.Bounds().Dx())
|
||||
icon := resize.Thumbnail(size, size, ui.MustDecodePNG(recordPNG), resize.Lanczos3)
|
||||
return &Art{
|
||||
display: display,
|
||||
styles: ui.StylesFor(display.ColorModel()),
|
||||
player: player,
|
||||
size: size,
|
||||
icon: icon,
|
||||
}
|
||||
}
|
||||
|
||||
func (Art) Halt() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (Art) Type() string {
|
||||
return "art"
|
||||
}
|
||||
|
||||
func (v *Art) Render() error {
|
||||
logrus.WithField("visual", "art").Debugf("render %s", v.display.Bounds())
|
||||
return v.display.Refresh()
|
||||
}
|
||||
|
||||
func (v *Art) TrackChanged(track *player.Track) {
|
||||
logrus.WithField("visual", "art").Debug("track changed")
|
||||
v.track = track
|
||||
v.display.Clear()
|
||||
draw.Draw(v.display, v.display.Bounds(), v.icon, image.Point{}, draw.Src)
|
||||
if track != nil {
|
||||
go v.request(track)
|
||||
}
|
||||
}
|
||||
|
||||
func (v *Art) request(track *player.Track) {
|
||||
log := logrus.WithFields(logrus.Fields{
|
||||
"visual": "art",
|
||||
"player": v.player.Type(),
|
||||
})
|
||||
|
||||
p, ok := v.player.(player.AlbumArt)
|
||||
if ok {
|
||||
log.Debug("requesting album art")
|
||||
|
||||
var i image.Image
|
||||
if i, ok = p.AlbumArt(track); ok {
|
||||
thumbnail := resize.Thumbnail(v.size, v.size, i, resize.Lanczos2)
|
||||
logrus.WithField("visual", "playing").Debugf("track album art %s", thumbnail.Bounds().Size())
|
||||
centered := v.display.Bounds().Size().Sub(thumbnail.Bounds().Size())
|
||||
centered.X /= 2
|
||||
centered.Y /= 2
|
||||
draw.Draw(v.display, thumbnail.Bounds().Add(centered), thumbnail, image.Point{}, draw.Src)
|
||||
} else {
|
||||
log.Debug("track album art unavailable")
|
||||
}
|
||||
} else {
|
||||
log.Debug("player doesn't support album art")
|
||||
}
|
||||
}
|
||||
|
||||
//go:embed asset/record.png
|
||||
var recordPNG []byte
|
||||
@@ -0,0 +1,50 @@
|
||||
package visual
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"image"
|
||||
"math/rand"
|
||||
"time"
|
||||
|
||||
"github.com/BeatGlow/beatglow/ui"
|
||||
"github.com/BeatGlow/beatglow/ui/font"
|
||||
"github.com/BeatGlow/display"
|
||||
)
|
||||
|
||||
type Offline struct {
|
||||
since time.Time
|
||||
display display.Display
|
||||
styles ui.Styles
|
||||
x, y int
|
||||
w, h int
|
||||
dx, dy bool
|
||||
}
|
||||
|
||||
func NewOffline(display display.Display) *Offline {
|
||||
size := display.Bounds().Size()
|
||||
return &Offline{
|
||||
since: time.Now(),
|
||||
display: display,
|
||||
styles: ui.StylesFor(display.ColorModel()),
|
||||
w: size.X - 3,
|
||||
h: size.Y - 3,
|
||||
x: rand.Int() % (size.X - 3),
|
||||
y: rand.Int() % (size.Y - 3),
|
||||
}
|
||||
}
|
||||
|
||||
func (Offline) Halt() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (Offline) Type() string {
|
||||
return "offline"
|
||||
}
|
||||
|
||||
func (v *Offline) Render() error {
|
||||
v.display.Clear()
|
||||
since := (time.Since(v.since) / time.Second) * time.Second
|
||||
font.MicroGrotesk.Draw(v.display, image.Point{1, 24}, image.NewUniform(v.styles.Boot.Foreground), "Player offline!")
|
||||
font.Monaco.Draw(v.display, image.Point{1, 40}, image.NewUniform(v.styles.Boot.Foreground), fmt.Sprintf("for %s", since))
|
||||
return v.display.Refresh()
|
||||
}
|
||||
@@ -0,0 +1,196 @@
|
||||
package visual
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"image"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/BeatGlow/beatglow/draw"
|
||||
"github.com/BeatGlow/beatglow/draw/pixel"
|
||||
"github.com/BeatGlow/beatglow/player"
|
||||
"github.com/BeatGlow/beatglow/ui"
|
||||
"github.com/BeatGlow/display"
|
||||
"github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
const (
|
||||
playingTitleY = 12
|
||||
playingArtistY = 30
|
||||
)
|
||||
|
||||
type Playing struct {
|
||||
display display.Display
|
||||
canvas *draw.Canvas
|
||||
bounds image.Rectangle
|
||||
styles ui.Styles
|
||||
|
||||
status struct {
|
||||
player *player.Status
|
||||
track *player.Track
|
||||
}
|
||||
|
||||
scroll *draw.Scroller
|
||||
}
|
||||
|
||||
func NewPlaying(display display.Display) *Playing {
|
||||
size := display.Bounds().Size()
|
||||
styles := ui.StylesFor(display.ColorModel())
|
||||
|
||||
v := &Playing{
|
||||
display: display,
|
||||
canvas: draw.NewCanvas(display).SetStyle(styles.Track),
|
||||
bounds: display.Bounds(),
|
||||
styles: styles,
|
||||
}
|
||||
|
||||
// Setup font sizes
|
||||
v.styles.Track.Font.SetPointSize(24)
|
||||
v.styles.Progress.Font.SetPointSize(9)
|
||||
|
||||
// Setup scroller
|
||||
v.scroll = draw.NewScroller(display, size.X, true)
|
||||
v.scroll.Canvas.SetStyle(v.styles.Track)
|
||||
|
||||
// Player offline text
|
||||
v.Update(nil)
|
||||
|
||||
return v
|
||||
}
|
||||
|
||||
func (Playing) Halt() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (Playing) Type() string {
|
||||
return "playing"
|
||||
}
|
||||
|
||||
func (v *Playing) Render() error {
|
||||
v.display.Clear()
|
||||
|
||||
var (
|
||||
rows = [...]int{
|
||||
0, // warnings (?)
|
||||
12, // title
|
||||
30, // artist
|
||||
55, // status
|
||||
43, // progress
|
||||
}
|
||||
/*
|
||||
fonts = [...]*font.Font{
|
||||
font.Monaco.WithPointSize(8),
|
||||
font.MicroGrotesk.WithPointSize(16),
|
||||
font.MicroGrotesk.WithPointSize(12),
|
||||
font.Monaco.WithPointSize(8),
|
||||
}
|
||||
/*
|
||||
fonts = [...]*font.Font{
|
||||
font.Fixed5x7,
|
||||
font.Unifont,
|
||||
font.Fixed5x7,
|
||||
font.Fixed5x7,
|
||||
}
|
||||
*/
|
||||
)
|
||||
|
||||
v.scroll.Advance()
|
||||
|
||||
var (
|
||||
bounds = v.display.Bounds()
|
||||
width = bounds.Dx()
|
||||
status = v.status.player
|
||||
track = v.status.track
|
||||
)
|
||||
|
||||
if status != nil {
|
||||
var (
|
||||
format = "Dunno"
|
||||
elapsedText = "--:-- / --:--"
|
||||
progress float64
|
||||
)
|
||||
|
||||
if track != nil {
|
||||
elapsedText = fmt.Sprintf("%s / %s", hms(status.Elapsed), hms(track.Duration))
|
||||
progress = float64(status.Elapsed) / float64(track.Duration)
|
||||
}
|
||||
|
||||
if status.Format.Encoding != "" {
|
||||
format = strings.ToUpper(status.Format.Encoding)
|
||||
} else if track != nil && track.Path != "" {
|
||||
format = strings.ToUpper(filepath.Ext(track.Path)[1:])
|
||||
}
|
||||
//format += fmt.Sprintf("-%d", status.Format.BitRate)
|
||||
|
||||
v.canvas.WithStyle(v.styles.Progress, func() {
|
||||
v.canvas.Text(1, 0, format)
|
||||
v.canvas.Text(40, 0, elapsedText)
|
||||
v.canvas.WithGradient(width-120-2, 8, func() {
|
||||
v.canvas.Progess(120, 0, width-120-2, progress)
|
||||
})
|
||||
})
|
||||
|
||||
if status.Paused {
|
||||
draw.Sprite(v.display, pixel.On, 1, rows[3], pauseSprite)
|
||||
} else {
|
||||
draw.Sprite(v.display, pixel.On, 1, rows[3], playSprite)
|
||||
}
|
||||
}
|
||||
|
||||
return v.display.Refresh()
|
||||
}
|
||||
|
||||
func (v *Playing) TrackChanged(track *player.Track) {
|
||||
logrus.WithField("visual", "playing").Debug("track changed")
|
||||
if track == nil {
|
||||
v.scroll.SetDirection(0)
|
||||
} else {
|
||||
v.scroll.SetDirection(+1)
|
||||
switch {
|
||||
case track.Artist != "" && track.Title != "":
|
||||
v.scroll.Text(0, playingTitleY, fmt.Sprintf("%s - %s", track.Artist, track.Title))
|
||||
case track.Title != "":
|
||||
v.scroll.Text(0, playingTitleY, fmt.Sprintf("Unknown Artist - %s", track.Title))
|
||||
case track.Artist != "":
|
||||
v.scroll.Text(0, playingTitleY, fmt.Sprintf("%s - Unknown", track.Title))
|
||||
default:
|
||||
v.scroll.Text(0, playingTitleY, "Unknown")
|
||||
}
|
||||
}
|
||||
v.scroll.Reset()
|
||||
v.status.track = track
|
||||
}
|
||||
|
||||
func (v *Playing) StatusChanged(status *player.Status) {
|
||||
logrus.WithField("visual", "playing").Debug("status changed")
|
||||
v.status.player = status
|
||||
}
|
||||
|
||||
func hms(d time.Duration) string {
|
||||
var (
|
||||
v = int(d / time.Second)
|
||||
h = v / 3600
|
||||
m = (v - h*3600) / 60
|
||||
s = (v - m*60)
|
||||
)
|
||||
if h == 0 {
|
||||
return fmt.Sprintf("%02d:%02d", m, s)
|
||||
}
|
||||
return fmt.Sprintf("%02d:%02d:%02d", h, m, s)
|
||||
}
|
||||
|
||||
func (v *Playing) Update(status *player.Status) {
|
||||
v.status.player = status
|
||||
|
||||
if status == nil {
|
||||
v.scroll.Text(0, playingTitleY, "Player is offline")
|
||||
}
|
||||
}
|
||||
|
||||
var (
|
||||
playSprite = []byte{8, 8, 0x00, 0xFF, 0xFF, 0x7E, 0x3C, 0x18, 0x00, 0x00}
|
||||
pauseSprite = []byte{8, 8, 0x00, 0x7F, 0x7F, 0x00, 0x00, 0x7F, 0x7F, 0x00}
|
||||
repeatSprite = []byte{8, 8, 0x00, 0x79, 0x7B, 0x63, 0x63, 0x63, 0x6F, 0x2F}
|
||||
volumeSprite = []byte{8, 8, 0x00, 0x18, 0x18, 0x3C, 0x7E, 0xFF, 0x00, 0x00}
|
||||
)
|
||||
@@ -0,0 +1,11 @@
|
||||
package visual
|
||||
|
||||
import (
|
||||
"github.com/BeatGlow/beatglow/hardware"
|
||||
)
|
||||
|
||||
type Visual interface {
|
||||
hardware.Driver
|
||||
|
||||
Render() error
|
||||
}
|
||||
@@ -0,0 +1,273 @@
|
||||
package visual
|
||||
|
||||
var vumeterBackground = [2][]uint8{{
|
||||
0x80, /* = width */
|
||||
0x40, /* = height */
|
||||
0x04, 0x04, 0x04, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x04, 0x1f, 0x04, 0x04,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe8, 0xa8, 0xb8, 0x00, 0xf8, 0x88, 0xf8, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0xf8, 0x00, 0xf8, 0x88, 0xf8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xa8, 0xa8,
|
||||
0xf8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0xf8, 0x88, 0xf8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf8,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe8, 0xa8, 0xb8, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xa8, 0xa8, 0xf8,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0,
|
||||
0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0,
|
||||
0xc0, 0xc0, 0x00, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0x00, 0xc0, 0xc0, 0xc0,
|
||||
0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0x00, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0x00,
|
||||
0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0x00, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0x00, 0xc0, 0xc0,
|
||||
0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0x00, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0x00,
|
||||
0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0x00, 0xe0, 0xe0, 0xe0,
|
||||
0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xf0, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x00,
|
||||
0xc0, 0x40, 0x40, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x09, 0x09, 0x0f, 0x00,
|
||||
0x0f, 0x09, 0x09, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf8, 0x04, 0x04, 0x04,
|
||||
0xf8, 0x00, 0x00, 0xfc, 0x00, 0x00, 0x00, 0xfc, 0x00, 0x00, 0x04, 0x04, 0xfc, 0x04, 0x04, 0x00,
|
||||
0x00, 0xfc, 0x44, 0x44, 0x44, 0x38, 0x00, 0x00, 0xfc, 0x00, 0x00, 0x00, 0xfc, 0x00, 0x00, 0x04,
|
||||
0x04, 0xfc, 0x04, 0x04, 0x00, 0x00, 0x00, 0x00, 0xfc, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfc, 0x24,
|
||||
0x24, 0x24, 0x00, 0x00, 0x3c, 0xc0, 0x00, 0xc0, 0x3c, 0x00, 0x00, 0xfc, 0x24, 0x24, 0x24, 0x00,
|
||||
0x00, 0xfc, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01,
|
||||
0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00,
|
||||
0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x01, 0x01,
|
||||
0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x00,
|
||||
0x00, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7e, 0x22, 0x22, 0x1c,
|
||||
0x00, 0x7e, 0x4a, 0x4a, 0x42, 0x00, 0x7c, 0x12, 0x12, 0x7c, 0x00, 0x7e, 0x08, 0x08, 0x76, 0x00,
|
||||
}, {
|
||||
0x80, /* = width */
|
||||
0x40, /* = height */
|
||||
0x04, 0x04, 0x04, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x04, 0x1f, 0x04, 0x04,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe8, 0xa8, 0xb8, 0x00, 0xf8, 0x88, 0xf8, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0xf8, 0x00, 0xf8, 0x88, 0xf8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xa8, 0xa8,
|
||||
0xf8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0xf8, 0x88, 0xf8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf8,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe8, 0xa8, 0xb8, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xa8, 0xa8, 0xf8,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0,
|
||||
0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0,
|
||||
0xc0, 0xc0, 0x00, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0x00, 0xc0, 0xc0, 0xc0,
|
||||
0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0x00, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0x00,
|
||||
0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0x00, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0x00, 0xc0, 0xc0,
|
||||
0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0x00, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0x00,
|
||||
0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0x00, 0xe0, 0xe0, 0xe0,
|
||||
0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xf0, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x00,
|
||||
0xc0, 0x40, 0x40, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x09, 0x09, 0x0f, 0x00,
|
||||
0x0f, 0x09, 0x09, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf8, 0x04, 0x04, 0x04,
|
||||
0xf8, 0x00, 0x00, 0xfc, 0x00, 0x00, 0x00, 0xfc, 0x00, 0x00, 0x04, 0x04, 0xfc, 0x04, 0x04, 0x00,
|
||||
0x00, 0xfc, 0x44, 0x44, 0x44, 0x38, 0x00, 0x00, 0xfc, 0x00, 0x00, 0x00, 0xfc, 0x00, 0x00, 0x04,
|
||||
0x04, 0xfc, 0x04, 0x04, 0x00, 0x00, 0x00, 0x00, 0xfc, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfc, 0x24,
|
||||
0x24, 0x24, 0x00, 0x00, 0x3c, 0xc0, 0x00, 0xc0, 0x3c, 0x00, 0x00, 0xfc, 0x24, 0x24, 0x24, 0x00,
|
||||
0x00, 0xfc, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01,
|
||||
0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00,
|
||||
0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x01, 0x01,
|
||||
0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x00,
|
||||
0x00, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7e, 0x22, 0x22, 0x1c,
|
||||
0x00, 0x7e, 0x4a, 0x4a, 0x42, 0x00, 0x7c, 0x12, 0x12, 0x7c, 0x00, 0x7e, 0x08, 0x08, 0x76, 0x00,
|
||||
}}
|
||||
|
||||
var vumeterBackgroundVU = [2][]uint8{{
|
||||
0x80, /* = width */
|
||||
0x40, /* = height */
|
||||
0x04, 0x04, 0x04, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x04, 0x1f, 0x04, 0x04,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xd0, 0x50, 0x70, 0x00, 0xf0, 0x10, 0xf0, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0xf0, 0x00, 0xf0, 0x10, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x50, 0x50,
|
||||
0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x10, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xd0, 0x50, 0x70, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x50, 0x50, 0xf0,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x78, 0x41, 0x41, 0x41, 0x40, 0x40, 0x40,
|
||||
0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40,
|
||||
0x41, 0x40, 0x79, 0x41, 0x41, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x60, 0x40, 0x40, 0x40,
|
||||
0x40, 0x40, 0x40, 0x40, 0x40, 0x60, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x41, 0x79,
|
||||
0x41, 0x40, 0x40, 0x40, 0x40, 0x40, 0x60, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x60, 0x40, 0x40,
|
||||
0x40, 0x40, 0x40, 0x40, 0x40, 0x41, 0x79, 0x01, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x79,
|
||||
0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x61, 0x79, 0x61, 0x60, 0x60,
|
||||
0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x61, 0x79, 0x01,
|
||||
0xc0, 0x4e, 0xc2, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02,
|
||||
0x02, 0x02, 0x02, 0x02, 0x42, 0x42, 0xc2, 0x06, 0xc2, 0x42, 0xc2, 0x02, 0x02, 0x02, 0x02, 0x02,
|
||||
0x02, 0x02, 0x02, 0x02, 0x02, 0xc2, 0x02, 0x82, 0x06, 0xc2, 0x42, 0xc2, 0x02, 0x02, 0x02, 0x02,
|
||||
0x02, 0x02, 0x02, 0x02, 0x02, 0xc2, 0x42, 0x42, 0x06, 0xc2, 0x42, 0xc2, 0x02, 0x02, 0x02, 0x02,
|
||||
0x02, 0x02, 0x02, 0xc2, 0x42, 0xc2, 0x06, 0xc2, 0x42, 0xc2, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02,
|
||||
0x02, 0x02, 0xc2, 0x02, 0xc2, 0x42, 0xce, 0x00, 0xc0, 0x40, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x07, 0x04, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x07, 0x05, 0x05, 0x00, 0x07, 0x04, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x02, 0x07, 0x00, 0x07, 0x04, 0x07, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x05, 0x07, 0x00, 0x07, 0x04, 0x07, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x07, 0x05, 0x07, 0x00, 0x07, 0x04, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x07, 0x00, 0x07, 0x04, 0x07, 0x00, 0x07, 0x04, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf8, 0x04, 0xf8, 0x00, 0x00, 0x00, 0xf8, 0x04, 0xf8, 0x00,
|
||||
0x00, 0xf8, 0x04, 0xf8, 0x00, 0x00, 0x00, 0xf8, 0x04, 0xf8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x10, 0x2f, 0x50, 0xa0, 0x50, 0x2f, 0x10, 0x0f, 0x00,
|
||||
0x00, 0x3f, 0x40, 0xbf, 0xa0, 0xa0, 0xa0, 0xbf, 0x40, 0x3f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7e, 0x22, 0x22, 0x3e,
|
||||
0x00, 0x7e, 0x52, 0x52, 0x42, 0x00, 0x7e, 0x12, 0x12, 0x7e, 0x00, 0x7e, 0x08, 0x08, 0x76, 0x00,
|
||||
}, {
|
||||
0x80, /* = width */
|
||||
0x40, /* = height */
|
||||
0x04, 0x04, 0x1f, 0x04, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x04, 0x04, 0x04,
|
||||
0x50, 0x50, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0xd0, 0x50, 0x70, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x10, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x50,
|
||||
0x50, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x00, 0xf0, 0x10, 0xf0,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0xd0, 0x50, 0x70, 0x00, 0xf0, 0x10, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x01, 0x79, 0x61, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60,
|
||||
0x60, 0x60, 0x61, 0x79, 0x61, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60,
|
||||
0x79, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x01, 0x79, 0x41, 0x40, 0x40, 0x40, 0x40, 0x40,
|
||||
0x40, 0x40, 0x60, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x60, 0x40, 0x40, 0x40, 0x40, 0x40, 0x41,
|
||||
0x79, 0x41, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x60, 0x40, 0x40, 0x40, 0x40, 0x40,
|
||||
0x40, 0x40, 0x40, 0x60, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x41, 0x40, 0x79, 0x41, 0x41,
|
||||
0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40,
|
||||
0x40, 0x40, 0x40, 0x41, 0x41, 0x41, 0x78, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x00, 0xc0, 0x40, 0xce, 0x02, 0xc2, 0x42, 0xc2, 0x02, 0x02,
|
||||
0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0xc2, 0x42, 0xc2, 0x06, 0xc2, 0x42, 0xc2, 0x02, 0x02, 0x02,
|
||||
0x02, 0x02, 0x02, 0x02, 0xc2, 0x42, 0x42, 0x06, 0xc2, 0x42, 0xc2, 0x02, 0x02, 0x02, 0x02, 0x02,
|
||||
0x02, 0x02, 0x02, 0x02, 0xc2, 0x02, 0x82, 0x06, 0xc2, 0x42, 0xc2, 0x02, 0x02, 0x02, 0x02, 0x02,
|
||||
0x02, 0x02, 0x02, 0x02, 0x02, 0x42, 0x42, 0xc2, 0x06, 0xc2, 0x42, 0xc2, 0x02, 0x02, 0x02, 0x02,
|
||||
0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0xc2, 0x4e, 0xc0,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x07, 0x04, 0x07, 0x00, 0x07, 0x04, 0x07, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x05, 0x07, 0x00, 0x07, 0x04, 0x07, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x07, 0x05, 0x07, 0x00, 0x07, 0x04, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x03, 0x02, 0x07, 0x00, 0x07, 0x04, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x05, 0x05, 0x00, 0x07, 0x04, 0x07, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x04, 0x07,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf8, 0x04, 0xf8, 0x00, 0x00, 0x00, 0xf8, 0x04, 0xf8, 0x00,
|
||||
0x00, 0xf8, 0x04, 0xf8, 0x00, 0x00, 0x00, 0xf8, 0x04, 0xf8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x10, 0x2f, 0x50, 0xa0, 0x50, 0x2f, 0x10, 0x0f, 0x00,
|
||||
0x00, 0x3f, 0x40, 0xbf, 0xa0, 0xa0, 0xa0, 0xbf, 0x40, 0x3f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x7e, 0x22, 0x22, 0x3e, 0x00, 0x7e, 0x52, 0x52, 0x42, 0x00, 0x7e, 0x12, 0x12, 0x7e, 0x00,
|
||||
0x7e, 0x08, 0x08, 0x76, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
}}
|
||||
Reference in new issue
Block a user