pshdlWavSim

package module
v0.0.0-...-b8dc244 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2015 License: MIT Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

pshdlWavSim

helper for audio processing of PSHDL simulation code - Pipes a WAV file through an external process using os/exec

Todo

  • don't pass coeffs through argv[] can be done with os.Pipe and exec.Cmd ExtraFiles ex

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMonoFIR

func NewMonoFIR(binPath string, scaler int, coeffs []int, input *wav.Reader, output *wav.Writer) error

func NewMonoFIRFromFile

func NewMonoFIRFromFile(binPath string, scaler int, coeffs []int, inputFname, outputFname string) error

func SetFilter

func SetFilter(f Filter) optionFunc

func SetInputs

func SetInputs(inputFnames []string) optionFunc

func SetOutputs

func SetOutputs(outputFnames []string) optionFunc

Types

type Filter

type Filter struct {
	Vals   []int `bson:"vals"`
	Scaler int   `bson:"scaleBits"`
}

type Multi

type Multi struct {
	// contains filtered or unexported fields
}

func NewMulti

func NewMulti(binPath string, options ...optionFunc) (*Multi, error)

func (*Multi) Run

func (m *Multi) Run() error

Run start up the binary, run it and check for errors. close down the writers afterwards.

Notes

Bugs

  • close this file after run

  • check that all wav files have the same characteristics

Jump to

Keyboard shortcuts

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