waveformjson

package module
v0.0.0-...-3dd94f0 Latest Latest
Warning

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

Go to latest
Published: May 18, 2015 License: MIT Imports: 10 Imported by: 0

README

waveform-json

A golang package to read data points from a waveform, it would return a json that is compatible or use with waveformjs.org

installation

  go get github.com/samcrosoft/waveform-json

Todo

  1. Complete the readme

Documentation

Index

Constants

View Source
const (
	IMAGE_TYPE = "png"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Waveform

type Waveform struct {
	Source  string
	Fetcher fetchers.IMAGEFetcher
}

this struct holds the source of the waveform and also the fetcher type that is to be used

func New

func New(sSource string, oFetcher fetchers.IMAGEFetcher) *Waveform

return a new pointer to the waveform type

func (*Waveform) GetWaveformJson

func (w *Waveform) GetWaveformJson() ([]byte, error)

this method will get the waveform from the source image it would then detect the float points as a float array that would be encoded and returned as json which is in effect a byte array

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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