Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/brettbuddin/shaden
/ functions
Functions
905 in github.com/brettbuddin/shaden
⨍
Functions
905
◇
Types & classes
192
↓ 311 callers
Method
Read
Read reads a specific sample from the input frame
unit/in.go:49
↓ 216 callers
Method
NewIn
NewIn registers a new input
unit/io.go:51
↓ 191 callers
Method
Write
Write writes a sample to the internal buffer
unit/in.go:85
↓ 152 callers
Method
DefineSymbol
DefineSymbol defines a symbol.
lisp/environment.go:37
↓ 101 callers
Method
NewOut
NewOut registers a new output
unit/io.go:58
↓ 88 callers
Function
NewUnit
NewUnit creates a new Unit that defaults to audio rate.
unit/unit.go:44
↓ 71 callers
Method
Eval
([]byte)
runtime/handler.go:11
↓ 64 callers
Function
ArgExpectError
ArgExpectError returns an error that indicates requirements for an argument
lisp/errors.go:65
↓ 59 callers
Method
Float64
()
dsp/values.go:12
↓ 58 callers
Function
CheckArityEqual
CheckArityEqual requires the argument list to be of a certain length
lisp/errors.go:43
↓ 51 callers
Method
Out
()
unit/out.go:12
↓ 49 callers
Function
Errorf
Errorf creates a new error with a specific formatting
errors/errors.go:20
↓ 42 callers
Function
NewIO
NewIO returns a new IO
unit/io.go:22
↓ 37 callers
Method
Run
Run starts the Engine; running the audio stream
engine/engine.go:109
↓ 36 callers
Function
Frequency
Frequency returns a scalar value in Hz
dsp/values.go:29
↓ 32 callers
Function
newToken
(typ tokenType, value string)
lisp/lexer_test.go:69
↓ 31 callers
Method
Error
()
errors/errors.go:52
↓ 31 callers
Function
Wrap
Wrap creates a new error with another error as its cause
errors/errors.go:27
↓ 30 callers
Function
Clamp
Clamp limits a value to a specific range
dsp/math.go:33
↓ 30 callers
Method
ProcessSample
(i int)
unit/unit.go:18
↓ 28 callers
Method
ReadSlow
ReadSlow reads a specific sample from the input frame at a slow rate
unit/in.go:61
↓ 27 callers
Function
Static
Static returns a deterministic *rand.Rand for use in tests.
randtest/randtest.go:6
↓ 26 callers
Method
Close
()
engine/messages.go:34
↓ 25 callers
Method
NewNode
NewNode creates a new Node in the Graph.
graph/graph.go:28
↓ 24 callers
Function
New
New returns a new Sink
engine/engine.go:63
↓ 24 callers
Method
ProcessFrame
(n int)
unit/unit.go:13
↓ 24 callers
Function
isTrig
(last, current float64)
unit/unit.go:164
↓ 21 callers
Function
Builders
Builders returns all Builders for all Units provided by this package.
unit/builders.go:113
↓ 20 callers
Method
Decode
Decode loads a struct with the contents of the raw Config object.
unit/builders.go:108
↓ 20 callers
Method
ExposeOutputProcessor
ExposeOutputProcessor registers a new output that is also a Processor
unit/io.go:68
↓ 20 callers
Function
NewEnvironment
NewEnvironment returns a new Environment.
lisp/environment.go:20
↓ 19 callers
Function
New
New returns a new Runtime
runtime/runtime.go:37
↓ 19 callers
Method
Tick
(v, rise, fall float64)
unit/lag.go:51
↓ 18 callers
Method
ExternalNeighborCount
ExternalNeighborCount returns the count of neighboring nodes outside of the Unit
unit/unit.go:149
↓ 18 callers
Function
New
New returns a new Graph.
graph/graph.go:17
↓ 18 callers
Function
WithMessageChannel
WithMessageChannel establishes a MessageChannel to be used for sending and receiving messages within the Engine.
engine/engine.go:23
↓ 17 callers
Function
CheckArityAtLeast
CheckArityAtLeast requires the argument list to be at least certain length
lisp/errors.go:52
↓ 17 callers
Function
Duration
Duration returns a scalar value (float64) in MS
dsp/values.go:101
↓ 17 callers
Function
NewOut
NewOut returns a new output
unit/out.go:31
↓ 16 callers
Method
Eval
Eval evaluates expressions obtained via the Parser. It uses a trampoline loop to iteratively resolve TailCall values, enabling tail call optimization
lisp/environment.go:140
↓ 16 callers
Method
NewConnection
NewConnection creates a connection between two Nodes.
graph/graph.go:72
↓ 16 callers
Function
buildBinary
(op binaryOp)
unit/builders.go:136
↓ 15 callers
Method
Attach
Attach connects this unit and its inputs/outputs to a Graph
unit/unit.go:86
↓ 15 callers
Method
ExternalNeighborCount
ExternalNeighborCount returns the count of neighboring nodes outside of the parent Unit
unit/in.go:127
↓ 15 callers
Method
Stop
()
engine/engine.go:14
↓ 15 callers
Method
TailEval
TailEval returns a TailCall that defers evaluation of node to the trampoline loop in Eval. Special forms should use this for their tail-position sub-e
lisp/environment.go:133
↓ 14 callers
Function
newBackend
(calls int)
runtime/support_test.go:11
↓ 13 callers
Method
Mount
Mount adds a unit to the graph.
engine/graph.go:138
↓ 13 callers
Function
New
New creates a new error
errors/errors.go:13
↓ 13 callers
Function
Parse
Parse parses lisp expressions in the content from an io.Reader.
lisp/parser.go:15
↓ 13 callers
Method
TickRelative
TickRelative advances the allpass filter state with a delay length relative to the length of the delay line
dsp/allpass.go:32
↓ 13 callers
Method
next
()
lisp/lexer.go:66
↓ 12 callers
Function
NewDelayLine
NewDelayLine returns a new DelayLine of a specific maximum size in milliseconds
dsp/delay_line.go:13
↓ 12 callers
Function
mustParse
(code string)
lisp/builtin/builtin_bench_test.go:16
↓ 11 callers
Function
AcceptTypes
AcceptTypes creates a formatted list of accepted types for humans
lisp/errors.go:70
↓ 11 callers
Method
GetSymbol
GetSymbol performs a symbol lookup and returns the value if its present. If the symbol cannot be found in the current Environment context, it advances
lisp/environment.go:118
↓ 11 callers
Function
NewAllPass
NewAllPass returns a new AllPass
dsp/allpass.go:9
↓ 10 callers
Method
Error
()
lisp/errors.go:24
↓ 10 callers
Function
NewMessage
NewMessage creates a new Message to be sent to the Engine for evaluation.
engine/messages.go:8
↓ 10 callers
Method
Patch
Patch patches a value into an input.
engine/graph.go:99
↓ 10 callers
Method
SendMessage
(*engine.Message)
runtime/runtime.go:22
↓ 10 callers
Method
emit
(t tokenType)
lisp/lexer.go:112
↓ 10 callers
Function
newBenchEnv
()
lisp/builtin/builtin_bench_test.go:10
↓ 9 callers
Method
HasSource
HasSource returns whether or not we have an inbound connection
unit/in.go:98
↓ 9 callers
Method
ReadAbsolute
ReadAbsolute reads a specific sample offset from the DelayLine
dsp/delay_line.go:56
↓ 9 callers
Method
SetValue
SetValue sets the Prop's value using its internal PropSetterFunc (if it has one)
unit/prop.go:26
↓ 9 callers
Function
Sin
Sin is a lookup table version of math.Sin
dsp/trig.go:26
↓ 8 callers
Method
Branch
Branch returns a new child context Environment.
lisp/environment.go:27
↓ 8 callers
Method
Exists
Exists checks whether the Node exists in the graph.
graph/graph.go:115
↓ 8 callers
Method
InNeighborCount
InNeighborCount returns the count of inbound neighbors
graph/node.go:35
↓ 8 callers
Method
OutNeighborCount
OutNeighborCount returns the count of outbound neighbors
graph/node.go:51
↓ 8 callers
Method
Tick
Tick advances the filter's state
dsp/decimate.go:12
↓ 8 callers
Function
Wrapf
Wrapf creates a new error with a specific formatting with another error as its cause
errors/errors.go:35
↓ 8 callers
Function
buildUnary
(op unaryOp)
unit/builders.go:130
↓ 8 callers
Function
newInput
(creator streamCreator, receiver eventReceiver)
midi/input.go:14
↓ 8 callers
Function
newUnitConfig
(v map[string]interface{})
midi/support_test.go:10
↓ 8 callers
Function
stepPhase
(freq, fm, phase float64, frameSize, n int)
unit/gen.go:315
↓ 7 callers
Method
DestinationCount
DestinationCount returns the number of outbound connections to this output
unit/out.go:49
↓ 7 callers
Function
ExtractFloat64
ExtractFloat64 extracts a float64 from a value that may be int or float64.
lisp/extract.go:25
↓ 7 callers
Method
Fill
Fill fills the internal frame with a specific constant value
unit/in.go:77
↓ 7 callers
Method
HasChanged
HasChanged returns whether or not the Graph state is dirty.
graph/graph.go:180
↓ 7 callers
Function
Load
Load populates a lisp.Environment with builtin symbols.
lisp/builtin/builtin.go:16
↓ 7 callers
Method
ReadSlowInt
ReadSlowInt reads a specific sample from the input frame at a slow rate
unit/in.go:69
↓ 7 callers
Method
RemoveConnection
RemoveConnection removes a connection between two Nodes.
graph/graph.go:91
↓ 6 callers
Method
Errors
Errors returns a channel that expresses any errors during operation of the Engine
engine/engine.go:106
↓ 6 callers
Method
IsProcessable
()
unit/unit.go:23
↓ 6 callers
Function
NewGraph
NewGraph returns a new Graph.
engine/graph.go:14
↓ 6 callers
Function
NewIn
NewIn returns a new input
unit/in.go:37
↓ 6 callers
Function
Patch
Patch connects a one Unit's Out to another's In. It also creates an edge on a graph to track the connection.
unit/graph.go:8
↓ 6 callers
Method
Size
Size returns the number of units in the graph.
engine/graph.go:157
↓ 6 callers
Method
Tick
Tick advances the filter's state
dsp/interpolate.go:36
↓ 6 callers
Method
backup
()
lisp/lexer.go:105
↓ 6 callers
Method
newFrame
()
unit/gen.go:47
↓ 6 callers
Function
newLineError
(err error, line pos)
lisp/errors.go:32
↓ 6 callers
Method
topSort
TopologicalSort returns a list of nodes in topological order.
graph/graph.go:139
↓ 5 callers
Function
Cubic
Cubic performs cubic interpolation
dsp/interpolate.go:9
↓ 5 callers
Function
ExtractArg
ExtractArg extracts a typed value from args[i] with bounds checking. argPos in error messages is 1-indexed (i+1).
lisp/extract.go:16
↓ 5 callers
Method
Handle
(string, http.Handler)
runtime/handler.go:16
↓ 5 callers
Function
Hermite
Hermite performs Hermite interpolation
dsp/interpolate.go:21
↓ 5 callers
Method
InNeighbors
InNeighbors returns only neighboring Nodes with an inbound connection to this Node
graph/node.go:17
next →
1–100 of 905, ranked by callers