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
↓ 5 callers
Function
Lerp
Lerp performs linear interpolation
dsp/interpolate.go:4
↓ 5 callers
Function
Mix
Mix sums two panned inputs
dsp/math.go:43
↓ 5 callers
Method
OutNeighbors
OutNeighbors returns only neighboring Nodes with an outbound connection from this Node
graph/node.go:26
↓ 5 callers
Method
ReadRelative
ReadRelative reads sample from the DelayLine at a scale between 0 and 1
dsp/delay_line.go:66
↓ 5 callers
Method
RemoveNode
RemoveNode removes a Node from the Graph.
graph/graph.go:39
↓ 5 callers
Function
ResolveTailCalls
ResolveTailCalls evaluates any chain of TailCall values to produce a final result. This is needed when a caller requires a fully-evaluated value (e.g.
lisp/tailcall.go:19
↓ 5 callers
Method
Source
Source returns the inbound connection if it has one
unit/in.go:103
↓ 5 callers
Method
TickAbsolute
TickAbsolute advances the filter's state with a specific delay
dsp/comb.go:25
↓ 5 callers
Function
blep
(p float64, freq, fm float64)
unit/gen.go:323
↓ 5 callers
Function
patchableValue
(v any)
runtime/unit.go:341
↓ 5 callers
Function
slopeCoeffs
(ratio, duration, target float64, curve int)
unit/slope.go:135
↓ 4 callers
Function
AddHandler
AddHandler registers the evaluation handler with a ServeMux.
runtime/handler.go:20
↓ 4 callers
Method
Detach
Detach removes this unit and its inputs/outputs from a Graph
unit/unit.go:110
↓ 4 callers
Method
Error
()
graph/graph.go:194
↓ 4 callers
Function
ParsePitch
ParsePitch parses the scientific notation of a pitch
dsp/values.go:43
↓ 4 callers
Method
Reset
Reset disconnects an input from an output (if a connection has been established) and fills the frame with the normal constant value
unit/in.go:114
↓ 4 callers
Method
SetSymbol
SetSymbol sets the value of a symbol. Like GetSymbol, it advances to parent Environments if the symbol cannot be found in the current context. If the
lisp/environment.go:56
↓ 4 callers
Method
Size
Size returns the number of nodes in the graph.
graph/graph.go:25
↓ 4 callers
Method
String
()
dsp/values.go:40
↓ 4 callers
Method
TickAbsolute
TickAbsolute advances the state of the DelayLine using a specific delay length (less than total) in samples
dsp/delay_line.go:37
↓ 4 callers
Method
Unpatch
Unpatch disconnects any sources from an input.
engine/graph.go:133
↓ 4 callers
Method
UnsetSymbol
UnsetSymbol removes a symbol definition. It only operates on the current context; no parent Environments will be affected.
lisp/environment.go:105
↓ 4 callers
Method
createSink
(fadeIn, frameSize, sampleRate int)
engine/graph.go:64
↓ 4 callers
Method
errorf
(format string, args ...any)
lisp/lexer.go:80
↓ 4 callers
Function
foldNumeric
foldNumeric applies intOp/floatOp across a list of numeric arguments. It preserves the int type when no float64 values are present. For commutative op
lisp/builtin/math.go:16
↓ 4 callers
Function
isHigh
(v float64)
unit/unit.go:168
↓ 4 callers
Function
isType
isType returns a lisp builtin that checks whether its single argument is of type T.
lisp/builtin/value.go:12
↓ 4 callers
Method
maybeDirty
(changed bool)
graph/graph.go:173
↓ 4 callers
Method
mounted
()
runtime/unit.go:52
↓ 4 callers
Function
natsort
(s []string)
runtime/natsort.go:11
↓ 4 callers
Method
newFrame
()
unit/low_gen.go:37
↓ 4 callers
Function
patchableInputs
(args lisp.List)
runtime/unit.go:297
↓ 4 callers
Function
repeatControl
(s []float64)
unit/all_test.go:1183
↓ 3 callers
Function
BPM
BPM returns a scalar value in beats-per-minute
dsp/values.go:124
↓ 3 callers
Method
Devices
Devices returns the devices currently in use by portaudio.
engine/portaudio/portaudio.go:94
↓ 3 callers
Function
ForEachEntry
ForEachEntry iterates over a List or Table, calling fn(key, value) for each entry. For Lists the key is the integer index; for Tables it is the map ke
lisp/extract.go:39
↓ 3 callers
Function
IsPowerOfTwo
IsPowerOfTwo determines whether or not an integer is a power of two
dsp/math.go:60
↓ 3 callers
Function
MountUnit
MountUnit mounts a Unit into the audio graph.
engine/actions.go:14
↓ 3 callers
Method
Name
()
lisp/values.go:24
↓ 3 callers
Method
NeighborCount
NeighborCount returns the total neighbor count
graph/node.go:43
↓ 3 callers
Function
NewDelayLineMS
NewDelayLineMS returns a new DelayLine of a specific maximum size in milliseconds
dsp/delay_line.go:20
↓ 3 callers
Function
NewPitchShift
NewPitchShift returns a new PitchShift
dsp/pitch_shift.go:8
↓ 3 callers
Method
NewProp
NewProp registers a new property
unit/io.go:36
↓ 3 callers
Function
PanMix
PanMix pans two inputs between two outputs
dsp/math.go:49
↓ 3 callers
Function
PatchInput
PatchInput patches values into a Unit's Ins. If `forceReset` is set to `true` all Ins on that Unit that haven't been referenced in `inputs` will be re
engine/actions.go:53
↓ 3 callers
Function
PrepareBuilders
PrepareBuilders converts a set of IOBuilders to a set of Builders.
unit/builders.go:118
↓ 3 callers
Method
Replace
(v any)
lisp/environment.go:81
↓ 3 callers
Method
SampleRate
()
engine/engine.go:15
↓ 3 callers
Method
Sorted
Sorted returns a topologically sorted list of strongly connected components in the Graph.
graph/graph.go:120
↓ 3 callers
Method
Start
(func([]float32, [][]float32))
engine/engine.go:13
↓ 3 callers
Method
String
()
runtime/unit.go:48
↓ 3 callers
Function
SwapUnit
SwapUnit swaps one unit out in the graph for another. If the two units or of different types, the original is just removed and nothing is done. Otherw
engine/actions.go:89
↓ 3 callers
Method
Tick
Tick advances the filter's state with the default delay
dsp/comb.go:20
↓ 3 callers
Method
TickAbsolute
TickAbsolute advances the allpass filter state with a specified absolute delay length (less than maximum)
dsp/allpass.go:25
↓ 3 callers
Method
TickSemitones
TickSemitones shifts a pitch by a specific number of semitones in equal temperament.
dsp/pitch_shift.go:21
↓ 3 callers
Method
Transpose
Transpose transposes the pitch by some interval
dsp/values.go:87
↓ 3 callers
Method
Unmount
Unmount removes a unit from the graph.
engine/graph.go:141
↓ 3 callers
Method
Write
Write writes a value to the DelayLine and steps ahead by one sample
dsp/delay_line.go:49
↓ 3 callers
Method
applyFilter
(in, ctrl, cutoffhigh, cutofflow, res float64)
unit/gate.go:71
↓ 3 callers
Method
ignore
()
lisp/lexer.go:117
↓ 3 callers
Function
isAlphaNumeric
(r rune)
lisp/lexer.go:249
↓ 3 callers
Function
newPitch
(p musictheory.Pitch, sampleRate int, rawName string)
dsp/values.go:56
↓ 3 callers
Function
parseArgs
(args []string)
config.go:37
↓ 3 callers
Function
prepAdsrAttack
(s *adsrState)
unit/adsr.go:125
↓ 3 callers
Function
prepAdsrRelease
(s *adsrState)
unit/adsr.go:148
↓ 3 callers
Function
prepSlopeRise
(s *slopeState)
unit/slope.go:112
↓ 2 callers
Method
AckChange
AckChange acknowledges changes to the Graph, resetting the dirty flag.
graph/graph.go:185
↓ 2 callers
Method
Channel
(time.Duration)
midi/midi.go:92
↓ 2 callers
Function
Chebyshev
Chebyshev generates the Chebyshev polynomial coefficient for order n
dsp/math.go:96
↓ 2 callers
Method
Constant
Constant is the constant value that's filling the buffer.
unit/in.go:108
↓ 2 callers
Method
Couple
Couple assigns the internal frame of this input to the frame of an output; binding them together. This in-of-itself does not define the connection. Th
unit/in.go:91
↓ 2 callers
Function
EmitOutputs
EmitOutputs sinks 1 or 2 outputs to the Engine.
engine/actions.go:28
↓ 2 callers
Method
Error
()
unit/prop.go:40
↓ 2 callers
Function
ExpRatio
ExpRatio produces an (inverse-)exponential curve that's inflection can be controlled by a specific ratio
dsp/math.go:14
↓ 2 callers
Function
Fold
Fold reflects a value exceeding minimum/maximum thresholds back over those thresholds
dsp/math.go:65
↓ 2 callers
Method
FrameSize
()
runtime/runtime.go:24
↓ 2 callers
Function
New
New returns a new Stdout
engine/stdout/stdout.go:12
↓ 2 callers
Function
NewFBComb
NewFBComb returns a new FBComb
dsp/comb.go:4
↓ 2 callers
Function
NewFFComb
NewFFComb returns a new FBComb
dsp/comb.go:32
↓ 2 callers
Function
NewFilter
NewFilter returns a new Filter.
dsp/filter.go:53
↓ 2 callers
Function
NewPitch
NewPitch creates a Pitch
dsp/values.go:52
↓ 2 callers
Method
NewStream
(deviceID portmidi.DeviceID, frameSize int64)
midi/midi.go:87
↓ 2 callers
Function
Overload
Overload is a sigmoid function that simulates soft clip overloading
dsp/math.go:28
↓ 2 callers
Method
Parse
()
lisp/parser.go:37
↓ 2 callers
Method
QuasiQuoteEval
QuasiQuoteEval is a special evaluation mode that is used in quasiquoting. Like `quote` it doesn't evaluate any expressions. However, unlike `quote` it
lisp/environment.go:195
↓ 2 callers
Method
Reset
Reset empties the graph.
engine/graph.go:50
↓ 2 callers
Method
SampleRate
()
runtime/runtime.go:25
↓ 2 callers
Method
SetMode
SetMode sets the processing mode for this input.
unit/in.go:122
↓ 2 callers
Function
SoftClamp
SoftClamp limits a value to a specific range, but compresses the value as it goes beyond the threshold
dsp/math.go:19
↓ 2 callers
Method
Sort
Sort sorts the graph; caching a slice of unit.FrameProcessors.
engine/graph.go:37
↓ 2 callers
Method
String
()
unit/in.go:136
↓ 2 callers
Function
Tan
Tan is a lookup table version of math.Tan
dsp/trig.go:45
↓ 2 callers
Method
Tick
Tick advances the operation
dsp/filter.go:62
↓ 2 callers
Method
Tick
Tick advances the filter's state with the default delay
dsp/comb.go:47
↓ 2 callers
Method
Tick
Tick advances the state
dsp/dc_block.go:9
↓ 2 callers
Method
TickAbsolute
TickAbsolute advances the filter's state with a specific delay
dsp/comb.go:52
↓ 2 callers
Function
UnmountUnit
UnmountUnit removes a Unit from the audio graph.
engine/actions.go:21
↓ 2 callers
Function
Unpatch
Unpatch disconnects all inbound neighbors (Outs) from an In. All graph edges are removed as well to track the disconnection. Once all, if any, Outs ar
unit/graph.go:18
↓ 2 callers
Method
Value
Value returns the Prop's value
unit/prop.go:21
↓ 2 callers
Method
accept
(valid string)
lisp/lexer.go:85
← previous
next →
101–200 of 905, ranked by callers