set_custom_kernel_coefficients
Set FIR filter sample rate and kernel coefficients for the specified filter channel. This will enable the specified channel output.Parameters
integer required
Target channel
allowed values:Moku:Lab 1, 2 Moku:Go 1, 2 Moku:Pro 1, 2, 3, 4 Moku:Delta 1, 2, 3, 4
number required
Desired sample rate
allowed values:Moku:Lab 15.6MSa/s, 7.81MSa/s, 3.91MSa/s, 1.95MSa/s, 977kSa/s, 488kSa/s, 244kSa/s, 122kSa/s Moku:Go 3.91MSa/s, 1.95MSa/s, 977kSa/s, 488kSa/s, 244kSa/s, 122kSa/s, 61kSa/s, 30.5kSa/s Moku:Pro 39.1MSa/s, 19.5MSa/s, 9.77MSa/s, 4.88MSa/s, 2.44MSa/s, 1.22MSa/s, 610kSa/s, 305kSa/s Moku:Delta 39.1MSa/s, 19.5MSa/s, 9.77MSa/s, 4.88MSa/s, 2.44MSa/s, 1.22MSa/s, 610kSa/s, 305kSa/s
units: Hz array required
Kernel coefficients for the specified filter channel
boolean
Disable all implicit conversions and coercions.
default: true# Examples
# Sample response
{
"Filter design domain": "Time",
"Impulse response": "Custom",
"customCoefficients": [0.02, 0.02, "..."],
"sample_rate": "39.1MSa/s"
}
1
2
3
4
5
6
2
3
4
5
6