MCPcopy Create free account

hub / github.com/brettbuddin/shaden / functions

Functions905 in github.com/brettbuddin/shaden

↓ 311 callersMethodRead
Read reads a specific sample from the input frame
unit/in.go:49
↓ 216 callersMethodNewIn
NewIn registers a new input
unit/io.go:51
↓ 191 callersMethodWrite
Write writes a sample to the internal buffer
unit/in.go:85
↓ 152 callersMethodDefineSymbol
DefineSymbol defines a symbol.
lisp/environment.go:37
↓ 101 callersMethodNewOut
NewOut registers a new output
unit/io.go:58
↓ 88 callersFunctionNewUnit
NewUnit creates a new Unit that defaults to audio rate.
unit/unit.go:44
↓ 71 callersMethodEval
([]byte)
runtime/handler.go:11
↓ 64 callersFunctionArgExpectError
ArgExpectError returns an error that indicates requirements for an argument
lisp/errors.go:65
↓ 59 callersMethodFloat64
()
dsp/values.go:12
↓ 58 callersFunctionCheckArityEqual
CheckArityEqual requires the argument list to be of a certain length
lisp/errors.go:43
↓ 51 callersMethodOut
()
unit/out.go:12
↓ 49 callersFunctionErrorf
Errorf creates a new error with a specific formatting
errors/errors.go:20
↓ 42 callersFunctionNewIO
NewIO returns a new IO
unit/io.go:22
↓ 37 callersMethodRun
Run starts the Engine; running the audio stream
engine/engine.go:109
↓ 36 callersFunctionFrequency
Frequency returns a scalar value in Hz
dsp/values.go:29
↓ 32 callersFunctionnewToken
(typ tokenType, value string)
lisp/lexer_test.go:69
↓ 31 callersMethodError
()
errors/errors.go:52
↓ 31 callersFunctionWrap
Wrap creates a new error with another error as its cause
errors/errors.go:27
↓ 30 callersFunctionClamp
Clamp limits a value to a specific range
dsp/math.go:33
↓ 30 callersMethodProcessSample
(i int)
unit/unit.go:18
↓ 28 callersMethodReadSlow
ReadSlow reads a specific sample from the input frame at a slow rate
unit/in.go:61
↓ 27 callersFunctionStatic
Static returns a deterministic *rand.Rand for use in tests.
randtest/randtest.go:6
↓ 26 callersMethodClose
()
engine/messages.go:34
↓ 25 callersMethodNewNode
NewNode creates a new Node in the Graph.
graph/graph.go:28
↓ 24 callersFunctionNew
New returns a new Sink
engine/engine.go:63
↓ 24 callersMethodProcessFrame
(n int)
unit/unit.go:13
↓ 24 callersFunctionisTrig
(last, current float64)
unit/unit.go:164
↓ 21 callersFunctionBuilders
Builders returns all Builders for all Units provided by this package.
unit/builders.go:113
↓ 20 callersMethodDecode
Decode loads a struct with the contents of the raw Config object.
unit/builders.go:108
↓ 20 callersMethodExposeOutputProcessor
ExposeOutputProcessor registers a new output that is also a Processor
unit/io.go:68
↓ 20 callersFunctionNewEnvironment
NewEnvironment returns a new Environment.
lisp/environment.go:20
↓ 19 callersFunctionNew
New returns a new Runtime
runtime/runtime.go:37
↓ 19 callersMethodTick
(v, rise, fall float64)
unit/lag.go:51
↓ 18 callersMethodExternalNeighborCount
ExternalNeighborCount returns the count of neighboring nodes outside of the Unit
unit/unit.go:149
↓ 18 callersFunctionNew
New returns a new Graph.
graph/graph.go:17
↓ 18 callersFunctionWithMessageChannel
WithMessageChannel establishes a MessageChannel to be used for sending and receiving messages within the Engine.
engine/engine.go:23
↓ 17 callersFunctionCheckArityAtLeast
CheckArityAtLeast requires the argument list to be at least certain length
lisp/errors.go:52
↓ 17 callersFunctionDuration
Duration returns a scalar value (float64) in MS
dsp/values.go:101
↓ 17 callersFunctionNewOut
NewOut returns a new output
unit/out.go:31
↓ 16 callersMethodEval
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 callersMethodNewConnection
NewConnection creates a connection between two Nodes.
graph/graph.go:72
↓ 16 callersFunctionbuildBinary
(op binaryOp)
unit/builders.go:136
↓ 15 callersMethodAttach
Attach connects this unit and its inputs/outputs to a Graph
unit/unit.go:86
↓ 15 callersMethodExternalNeighborCount
ExternalNeighborCount returns the count of neighboring nodes outside of the parent Unit
unit/in.go:127
↓ 15 callersMethodStop
()
engine/engine.go:14
↓ 15 callersMethodTailEval
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 callersFunctionnewBackend
(calls int)
runtime/support_test.go:11
↓ 13 callersMethodMount
Mount adds a unit to the graph.
engine/graph.go:138
↓ 13 callersFunctionNew
New creates a new error
errors/errors.go:13
↓ 13 callersFunctionParse
Parse parses lisp expressions in the content from an io.Reader.
lisp/parser.go:15
↓ 13 callersMethodTickRelative
TickRelative advances the allpass filter state with a delay length relative to the length of the delay line
dsp/allpass.go:32
↓ 13 callersMethodnext
()
lisp/lexer.go:66
↓ 12 callersFunctionNewDelayLine
NewDelayLine returns a new DelayLine of a specific maximum size in milliseconds
dsp/delay_line.go:13
↓ 12 callersFunctionmustParse
(code string)
lisp/builtin/builtin_bench_test.go:16
↓ 11 callersFunctionAcceptTypes
AcceptTypes creates a formatted list of accepted types for humans
lisp/errors.go:70
↓ 11 callersMethodGetSymbol
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 callersFunctionNewAllPass
NewAllPass returns a new AllPass
dsp/allpass.go:9
↓ 10 callersMethodError
()
lisp/errors.go:24
↓ 10 callersFunctionNewMessage
NewMessage creates a new Message to be sent to the Engine for evaluation.
engine/messages.go:8
↓ 10 callersMethodPatch
Patch patches a value into an input.
engine/graph.go:99
↓ 10 callersMethodSendMessage
(*engine.Message)
runtime/runtime.go:22
↓ 10 callersMethodemit
(t tokenType)
lisp/lexer.go:112
↓ 10 callersFunctionnewBenchEnv
()
lisp/builtin/builtin_bench_test.go:10
↓ 9 callersMethodHasSource
HasSource returns whether or not we have an inbound connection
unit/in.go:98
↓ 9 callersMethodReadAbsolute
ReadAbsolute reads a specific sample offset from the DelayLine
dsp/delay_line.go:56
↓ 9 callersMethodSetValue
SetValue sets the Prop's value using its internal PropSetterFunc (if it has one)
unit/prop.go:26
↓ 9 callersFunctionSin
Sin is a lookup table version of math.Sin
dsp/trig.go:26
↓ 8 callersMethodBranch
Branch returns a new child context Environment.
lisp/environment.go:27
↓ 8 callersMethodExists
Exists checks whether the Node exists in the graph.
graph/graph.go:115
↓ 8 callersMethodInNeighborCount
InNeighborCount returns the count of inbound neighbors
graph/node.go:35
↓ 8 callersMethodOutNeighborCount
OutNeighborCount returns the count of outbound neighbors
graph/node.go:51
↓ 8 callersMethodTick
Tick advances the filter's state
dsp/decimate.go:12
↓ 8 callersFunctionWrapf
Wrapf creates a new error with a specific formatting with another error as its cause
errors/errors.go:35
↓ 8 callersFunctionbuildUnary
(op unaryOp)
unit/builders.go:130
↓ 8 callersFunctionnewInput
(creator streamCreator, receiver eventReceiver)
midi/input.go:14
↓ 8 callersFunctionnewUnitConfig
(v map[string]interface{})
midi/support_test.go:10
↓ 8 callersFunctionstepPhase
(freq, fm, phase float64, frameSize, n int)
unit/gen.go:315
↓ 7 callersMethodDestinationCount
DestinationCount returns the number of outbound connections to this output
unit/out.go:49
↓ 7 callersFunctionExtractFloat64
ExtractFloat64 extracts a float64 from a value that may be int or float64.
lisp/extract.go:25
↓ 7 callersMethodFill
Fill fills the internal frame with a specific constant value
unit/in.go:77
↓ 7 callersMethodHasChanged
HasChanged returns whether or not the Graph state is dirty.
graph/graph.go:180
↓ 7 callersFunctionLoad
Load populates a lisp.Environment with builtin symbols.
lisp/builtin/builtin.go:16
↓ 7 callersMethodReadSlowInt
ReadSlowInt reads a specific sample from the input frame at a slow rate
unit/in.go:69
↓ 7 callersMethodRemoveConnection
RemoveConnection removes a connection between two Nodes.
graph/graph.go:91
↓ 6 callersMethodErrors
Errors returns a channel that expresses any errors during operation of the Engine
engine/engine.go:106
↓ 6 callersMethodIsProcessable
()
unit/unit.go:23
↓ 6 callersFunctionNewGraph
NewGraph returns a new Graph.
engine/graph.go:14
↓ 6 callersFunctionNewIn
NewIn returns a new input
unit/in.go:37
↓ 6 callersFunctionPatch
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 callersMethodSize
Size returns the number of units in the graph.
engine/graph.go:157
↓ 6 callersMethodTick
Tick advances the filter's state
dsp/interpolate.go:36
↓ 6 callersMethodbackup
()
lisp/lexer.go:105
↓ 6 callersMethodnewFrame
()
unit/gen.go:47
↓ 6 callersFunctionnewLineError
(err error, line pos)
lisp/errors.go:32
↓ 6 callersMethodtopSort
TopologicalSort returns a list of nodes in topological order.
graph/graph.go:139
↓ 5 callersFunctionCubic
Cubic performs cubic interpolation
dsp/interpolate.go:9
↓ 5 callersFunctionExtractArg
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 callersMethodHandle
(string, http.Handler)
runtime/handler.go:16
↓ 5 callersFunctionHermite
Hermite performs Hermite interpolation
dsp/interpolate.go:21
↓ 5 callersMethodInNeighbors
InNeighbors returns only neighboring Nodes with an inbound connection to this Node
graph/node.go:17
next →1–100 of 905, ranked by callers