@effetune/dsp 0.0.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/assets/effetune-dsp.meta.json +436 -6
- package/dist/assets/effetune-dsp.simd.wasm +0 -0
- package/dist/assets/effetune-dsp.wasm +0 -0
- package/dist/catalog/effects-v1.json +753 -3
- package/dist/generated-effects.d.ts +157 -1
- package/dist/generated-effects.js +94 -3
- package/dist/index.d.ts +21 -0
- package/dist/index.js +14 -0
- package/dist/internal/dsp-engine-binding.js +20 -0
- package/dist/internal/dsp-params.generated.js +185 -64
- package/dist/internal/dsp-wasm-loader.js +2 -0
- package/dist/schemas/chain-v1.schema.json +782 -62
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Generated by scripts/gen-dsp-library-bindings.mjs. Do not edit.
|
|
2
2
|
import { Effect } from './effect.js';
|
|
3
3
|
|
|
4
|
-
export type EffectType = "LevelMeter" | "Oscilloscope" | "Spectrogram" | "SpectrumAnalyzer" | "StereoMeter" | "ChannelDivider" | "DCOffset" | "FIRCrossover" | "Matrix" | "MultiChannelPanel" | "Mute" | "PolarityInversion" | "StereoBalance" | "Volume" | "Delay" | "TimeAlignment" | "AutoLeveler" | "BrickwallLimiter" | "Compressor" | "Expander" | "Gate" | "MultibandCompressor" | "MultibandExpander" | "MultibandTransient" | "PowerAmpSag" | "TransientShaper" | "BandPassFilter" | "CombFilter" | "EarphoneCableSim" | "FifteenBandGEQ" | "FifteenBandPEQ" | "FiveBandDynamicEQ" | "FiveBandFIRPEQ" | "FiveBandPEQ" | "GroupDelayEQ" | "HiPassFilter" | "LoPassFilter" | "LoudnessEqualizer" | "NarrowRange" | "RoomEQ" | "TiltEQ" | "ToneControl" | "AMRadioSimulator" | "BitCrusher" | "DigitalErrorEmulator" | "DSD64IMDSimulator" | "FMRadioSimulator" | "HumGenerator" | "NoiseBlender" | "SimpleJitter" | "SWRadioSimulator" | "VinylArtifacts" | "VinylSimulator" | "DopplerDistortion" | "PitchShifter" | "Tremolo" | "WowFlutter" | "Oscillator" | "HornResonator" | "HornResonatorPlus" | "ModalResonator" | "DattorroPlateReverb" | "FDNReverb" | "IRReverb" | "RSReverb" | "DynamicSaturation" | "Exciter" | "HardClipping" | "HarmonicDistortion" | "MultibandSaturation" | "Saturation" | "SubSynth" | "CrossfeedFilter" | "MSMatrix" | "MultibandBalance" | "StereoBlend";
|
|
4
|
+
export type EffectType = "LevelMeter" | "Oscilloscope" | "Spectrogram" | "SpectrumAnalyzer" | "StereoMeter" | "ChannelDivider" | "DCOffset" | "FIRCrossover" | "Matrix" | "MultiChannelPanel" | "Mute" | "PolarityInversion" | "StereoBalance" | "Volume" | "Delay" | "TimeAlignment" | "AutoLeveler" | "BrickwallLimiter" | "Compressor" | "Expander" | "Gate" | "MultibandCompressor" | "MultibandExpander" | "MultibandTransient" | "PowerAmpSag" | "TransientShaper" | "BandPassFilter" | "CombFilter" | "EarphoneCableSim" | "FifteenBandGEQ" | "FifteenBandPEQ" | "FiveBandDynamicEQ" | "FiveBandFIRPEQ" | "FiveBandPEQ" | "GroupDelayEQ" | "HiPassFilter" | "LoPassFilter" | "LoudnessEqualizer" | "NarrowRange" | "RoomEQ" | "TiltEQ" | "ToneControl" | "AMRadioSimulator" | "BitCrusher" | "BluetoothSBCSimulator" | "CassetteArtifacts" | "DigitalErrorEmulator" | "DSD64IMDSimulator" | "FMRadioSimulator" | "G726ADPCMSimulator" | "GSMFullRateSimulator" | "HumGenerator" | "MP3CodecSimulator" | "NoiseBlender" | "SimpleJitter" | "SWRadioSimulator" | "TapeArtifacts" | "VinylArtifacts" | "VinylSimulator" | "DopplerDistortion" | "PitchShifter" | "Tremolo" | "WowFlutter" | "Oscillator" | "HornResonator" | "HornResonatorPlus" | "ModalResonator" | "DattorroPlateReverb" | "FDNReverb" | "IRReverb" | "RSReverb" | "DynamicSaturation" | "Exciter" | "HardClipping" | "HarmonicDistortion" | "MultibandSaturation" | "Saturation" | "SubSynth" | "TubeSimulator" | "CrossfeedFilter" | "MSMatrix" | "MultibandBalance" | "StereoBlend";
|
|
5
5
|
type RequiredAssetEffectType = "FIRCrossover" | "FiveBandFIRPEQ" | "GroupDelayEQ" | "RoomEQ" | "IRReverb";
|
|
6
6
|
export type EffectChannel = "all" | "stereo" | "left" | "right" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "34" | "56" | "78";
|
|
7
7
|
|
|
@@ -658,6 +658,7 @@ export declare class ToneControl extends Effect {
|
|
|
658
658
|
export declare function createToneControl(options?: ToneControlOptions): ToneControl;
|
|
659
659
|
|
|
660
660
|
export interface AMRadioSimulatorOptions extends CommonEffectOptions {
|
|
661
|
+
readonly radio?: boolean;
|
|
661
662
|
readonly txBandwidth?: number;
|
|
662
663
|
readonly preEmphasis?: number;
|
|
663
664
|
readonly modDepth?: number;
|
|
@@ -704,6 +705,46 @@ export declare class BitCrusher extends Effect {
|
|
|
704
705
|
|
|
705
706
|
export declare function createBitCrusher(options?: BitCrusherOptions): BitCrusher;
|
|
706
707
|
|
|
708
|
+
export interface BluetoothSBCSimulatorOptions extends CommonEffectOptions {
|
|
709
|
+
readonly bitpool?: number;
|
|
710
|
+
readonly channelMode?: "Joint Stereo" | "Stereo" | "Dual Channel";
|
|
711
|
+
readonly blocks?: "4" | "8" | "12" | "16";
|
|
712
|
+
readonly outputGain?: number;
|
|
713
|
+
readonly mix?: number;
|
|
714
|
+
readonly packetLoss?: number;
|
|
715
|
+
readonly assets?: never;
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
export declare class BluetoothSBCSimulator extends Effect {
|
|
719
|
+
static readonly effectType: "BluetoothSBCSimulator";
|
|
720
|
+
constructor(options?: BluetoothSBCSimulatorOptions);
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
export declare function createBluetoothSBCSimulator(options?: BluetoothSBCSimulatorOptions): BluetoothSBCSimulator;
|
|
724
|
+
|
|
725
|
+
export interface CassetteArtifactsOptions extends CommonEffectOptions {
|
|
726
|
+
readonly deckGrade?: "Reference" | "Hi-Fi" | "Consumer" | "Portable";
|
|
727
|
+
readonly tapeType?: "Type I" | "Type II" | "Type IV";
|
|
728
|
+
readonly noiseReduction?: "Off" | "Dolby B" | "Dolby C";
|
|
729
|
+
readonly bias?: number;
|
|
730
|
+
readonly recordLevel?: number;
|
|
731
|
+
readonly wowFlutter?: number;
|
|
732
|
+
readonly hiss?: number;
|
|
733
|
+
readonly dropouts?: number;
|
|
734
|
+
readonly azimuth?: number;
|
|
735
|
+
readonly dolbyLevelError?: number;
|
|
736
|
+
readonly output?: number;
|
|
737
|
+
readonly mix?: number;
|
|
738
|
+
readonly assets?: never;
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
export declare class CassetteArtifacts extends Effect {
|
|
742
|
+
static readonly effectType: "CassetteArtifacts";
|
|
743
|
+
constructor(options?: CassetteArtifactsOptions);
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
export declare function createCassetteArtifacts(options?: CassetteArtifactsOptions): CassetteArtifacts;
|
|
747
|
+
|
|
707
748
|
export interface DigitalErrorEmulatorOptions extends CommonEffectOptions {
|
|
708
749
|
readonly bitErrorRate?: number;
|
|
709
750
|
readonly mode?: "1" | "2A" | "2B" | "3A" | "3B" | "4" | "5A" | "5B" | "5C" | "6A" | "6B" | "8" | "9" | "10" | "10A";
|
|
@@ -743,6 +784,7 @@ export declare class DSD64IMDSimulator extends Effect {
|
|
|
743
784
|
export declare function createDSD64IMDSimulator(options?: DSD64IMDSimulatorOptions): DSD64IMDSimulator;
|
|
744
785
|
|
|
745
786
|
export interface FMRadioSimulatorOptions extends CommonEffectOptions {
|
|
787
|
+
readonly radio?: boolean;
|
|
746
788
|
readonly emphasis?: "50us" | "75us";
|
|
747
789
|
readonly processing?: number;
|
|
748
790
|
readonly signal?: number;
|
|
@@ -764,6 +806,36 @@ export declare class FMRadioSimulator extends Effect {
|
|
|
764
806
|
|
|
765
807
|
export declare function createFMRadioSimulator(options?: FMRadioSimulatorOptions): FMRadioSimulator;
|
|
766
808
|
|
|
809
|
+
export interface G726ADPCMSimulatorOptions extends CommonEffectOptions {
|
|
810
|
+
readonly bitrate?: "16" | "24" | "32" | "40";
|
|
811
|
+
readonly outputGain?: number;
|
|
812
|
+
readonly mix?: number;
|
|
813
|
+
readonly radioBitErrorRate?: number;
|
|
814
|
+
readonly assets?: never;
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
export declare class G726ADPCMSimulator extends Effect {
|
|
818
|
+
static readonly effectType: "G726ADPCMSimulator";
|
|
819
|
+
constructor(options?: G726ADPCMSimulatorOptions);
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
export declare function createG726ADPCMSimulator(options?: G726ADPCMSimulatorOptions): G726ADPCMSimulator;
|
|
823
|
+
|
|
824
|
+
export interface GSMFullRateSimulatorOptions extends CommonEffectOptions {
|
|
825
|
+
readonly transcodes?: number;
|
|
826
|
+
readonly outputGain?: number;
|
|
827
|
+
readonly mix?: number;
|
|
828
|
+
readonly carrierToInterference?: number;
|
|
829
|
+
readonly assets?: never;
|
|
830
|
+
}
|
|
831
|
+
|
|
832
|
+
export declare class GSMFullRateSimulator extends Effect {
|
|
833
|
+
static readonly effectType: "GSMFullRateSimulator";
|
|
834
|
+
constructor(options?: GSMFullRateSimulatorOptions);
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
export declare function createGSMFullRateSimulator(options?: GSMFullRateSimulatorOptions): GSMFullRateSimulator;
|
|
838
|
+
|
|
767
839
|
export interface HumGeneratorOptions extends CommonEffectOptions {
|
|
768
840
|
readonly frequency?: number;
|
|
769
841
|
readonly humType?: "Standard" | "Rich" | "Dirty";
|
|
@@ -781,6 +853,23 @@ export declare class HumGenerator extends Effect {
|
|
|
781
853
|
|
|
782
854
|
export declare function createHumGenerator(options?: HumGeneratorOptions): HumGenerator;
|
|
783
855
|
|
|
856
|
+
export interface MP3CodecSimulatorOptions extends CommonEffectOptions {
|
|
857
|
+
readonly codecRate?: "22.05 kHz (MPEG-2)" | "44.1 kHz (MPEG-1)";
|
|
858
|
+
readonly bitrate?: "32" | "48" | "64" | "80" | "96" | "112" | "128" | "160" | "192" | "224" | "256" | "320";
|
|
859
|
+
readonly stereoMode?: "Joint Stereo" | "Stereo";
|
|
860
|
+
readonly bitReservoir?: boolean;
|
|
861
|
+
readonly outputGain?: number;
|
|
862
|
+
readonly mix?: number;
|
|
863
|
+
readonly assets?: never;
|
|
864
|
+
}
|
|
865
|
+
|
|
866
|
+
export declare class MP3CodecSimulator extends Effect {
|
|
867
|
+
static readonly effectType: "MP3CodecSimulator";
|
|
868
|
+
constructor(options?: MP3CodecSimulatorOptions);
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
export declare function createMP3CodecSimulator(options?: MP3CodecSimulatorOptions): MP3CodecSimulator;
|
|
872
|
+
|
|
784
873
|
export interface NoiseBlenderOptions extends CommonEffectOptions {
|
|
785
874
|
readonly noiseType?: "white" | "pink" | "brown";
|
|
786
875
|
readonly level?: number;
|
|
@@ -808,6 +897,7 @@ export declare class SimpleJitter extends Effect {
|
|
|
808
897
|
export declare function createSimpleJitter(options?: SimpleJitterOptions): SimpleJitter;
|
|
809
898
|
|
|
810
899
|
export interface SWRadioSimulatorOptions extends CommonEffectOptions {
|
|
900
|
+
readonly radio?: boolean;
|
|
811
901
|
readonly txBandwidth?: number;
|
|
812
902
|
readonly preEmphasis?: number;
|
|
813
903
|
readonly modDepth?: number;
|
|
@@ -829,6 +919,8 @@ export interface SWRadioSimulatorOptions extends CommonEffectOptions {
|
|
|
829
919
|
readonly speaker?: "Off" | "Small" | "Table";
|
|
830
920
|
readonly outputGain?: number;
|
|
831
921
|
readonly mix?: number;
|
|
922
|
+
readonly mode?: "AM" | "USB" | "LSB";
|
|
923
|
+
readonly bfoOffset?: number;
|
|
832
924
|
readonly assets?: never;
|
|
833
925
|
}
|
|
834
926
|
|
|
@@ -839,6 +931,25 @@ export declare class SWRadioSimulator extends Effect {
|
|
|
839
931
|
|
|
840
932
|
export declare function createSWRadioSimulator(options?: SWRadioSimulatorOptions): SWRadioSimulator;
|
|
841
933
|
|
|
934
|
+
export interface TapeArtifactsOptions extends CommonEffectOptions {
|
|
935
|
+
readonly speed?: "7.5" | "15" | "30";
|
|
936
|
+
readonly tape?: "Standard" | "Master";
|
|
937
|
+
readonly bias?: number;
|
|
938
|
+
readonly recordLevel?: number;
|
|
939
|
+
readonly wowFlutter?: number;
|
|
940
|
+
readonly hiss?: number;
|
|
941
|
+
readonly output?: number;
|
|
942
|
+
readonly mix?: number;
|
|
943
|
+
readonly assets?: never;
|
|
944
|
+
}
|
|
945
|
+
|
|
946
|
+
export declare class TapeArtifacts extends Effect {
|
|
947
|
+
static readonly effectType: "TapeArtifacts";
|
|
948
|
+
constructor(options?: TapeArtifactsOptions);
|
|
949
|
+
}
|
|
950
|
+
|
|
951
|
+
export declare function createTapeArtifacts(options?: TapeArtifactsOptions): TapeArtifacts;
|
|
952
|
+
|
|
842
953
|
export interface VinylArtifactsOptions extends CommonEffectOptions {
|
|
843
954
|
readonly popsPerMinute?: number;
|
|
844
955
|
readonly popLevel?: number;
|
|
@@ -1232,6 +1343,37 @@ export declare class SubSynth extends Effect {
|
|
|
1232
1343
|
|
|
1233
1344
|
export declare function createSubSynth(options?: SubSynthOptions): SubSynth;
|
|
1234
1345
|
|
|
1346
|
+
export interface TubeSimulatorOptions extends CommonEffectOptions {
|
|
1347
|
+
readonly inputVolume?: number;
|
|
1348
|
+
readonly tube?: "12AX7" | "12AT7" | "12AU7";
|
|
1349
|
+
readonly bias?: number;
|
|
1350
|
+
readonly plateVoltage?: number;
|
|
1351
|
+
readonly sourceImpedance?: number;
|
|
1352
|
+
readonly supplyImpedance?: number;
|
|
1353
|
+
readonly outputTrim?: number;
|
|
1354
|
+
readonly mix?: number;
|
|
1355
|
+
readonly inputReference?: number;
|
|
1356
|
+
readonly negativeFeedback?: number;
|
|
1357
|
+
readonly outputStage?: "Line" | "Power";
|
|
1358
|
+
readonly powerTube?: "EL84" | "EL34";
|
|
1359
|
+
readonly powerBPlus?: number;
|
|
1360
|
+
readonly cathodeResistor?: number;
|
|
1361
|
+
readonly screenTap?: "0" | "20" | "43";
|
|
1362
|
+
readonly primaryImpedance?: "6.0" | "6.6" | "8.0";
|
|
1363
|
+
readonly speakerLoad?: "4" | "8" | "15" | "16";
|
|
1364
|
+
readonly actualSpeakerLoad?: number;
|
|
1365
|
+
readonly safetyTrim?: number;
|
|
1366
|
+
readonly autoGainReduction?: boolean;
|
|
1367
|
+
readonly assets?: never;
|
|
1368
|
+
}
|
|
1369
|
+
|
|
1370
|
+
export declare class TubeSimulator extends Effect {
|
|
1371
|
+
static readonly effectType: "TubeSimulator";
|
|
1372
|
+
constructor(options?: TubeSimulatorOptions);
|
|
1373
|
+
}
|
|
1374
|
+
|
|
1375
|
+
export declare function createTubeSimulator(options?: TubeSimulatorOptions): TubeSimulator;
|
|
1376
|
+
|
|
1235
1377
|
export interface CrossfeedFilterOptions extends CommonEffectOptions {
|
|
1236
1378
|
readonly level?: number;
|
|
1237
1379
|
readonly delay?: number;
|
|
@@ -1334,13 +1476,19 @@ export interface EffectOptionsByType {
|
|
|
1334
1476
|
readonly ToneControl: ToneControlOptions;
|
|
1335
1477
|
readonly AMRadioSimulator: AMRadioSimulatorOptions;
|
|
1336
1478
|
readonly BitCrusher: BitCrusherOptions;
|
|
1479
|
+
readonly BluetoothSBCSimulator: BluetoothSBCSimulatorOptions;
|
|
1480
|
+
readonly CassetteArtifacts: CassetteArtifactsOptions;
|
|
1337
1481
|
readonly DigitalErrorEmulator: DigitalErrorEmulatorOptions;
|
|
1338
1482
|
readonly DSD64IMDSimulator: DSD64IMDSimulatorOptions;
|
|
1339
1483
|
readonly FMRadioSimulator: FMRadioSimulatorOptions;
|
|
1484
|
+
readonly G726ADPCMSimulator: G726ADPCMSimulatorOptions;
|
|
1485
|
+
readonly GSMFullRateSimulator: GSMFullRateSimulatorOptions;
|
|
1340
1486
|
readonly HumGenerator: HumGeneratorOptions;
|
|
1487
|
+
readonly MP3CodecSimulator: MP3CodecSimulatorOptions;
|
|
1341
1488
|
readonly NoiseBlender: NoiseBlenderOptions;
|
|
1342
1489
|
readonly SimpleJitter: SimpleJitterOptions;
|
|
1343
1490
|
readonly SWRadioSimulator: SWRadioSimulatorOptions;
|
|
1491
|
+
readonly TapeArtifacts: TapeArtifactsOptions;
|
|
1344
1492
|
readonly VinylArtifacts: VinylArtifactsOptions;
|
|
1345
1493
|
readonly VinylSimulator: VinylSimulatorOptions;
|
|
1346
1494
|
readonly DopplerDistortion: DopplerDistortionOptions;
|
|
@@ -1362,6 +1510,7 @@ export interface EffectOptionsByType {
|
|
|
1362
1510
|
readonly MultibandSaturation: MultibandSaturationOptions;
|
|
1363
1511
|
readonly Saturation: SaturationOptions;
|
|
1364
1512
|
readonly SubSynth: SubSynthOptions;
|
|
1513
|
+
readonly TubeSimulator: TubeSimulatorOptions;
|
|
1365
1514
|
readonly CrossfeedFilter: CrossfeedFilterOptions;
|
|
1366
1515
|
readonly MSMatrix: MSMatrixOptions;
|
|
1367
1516
|
readonly MultibandBalance: MultibandBalanceOptions;
|
|
@@ -1413,13 +1562,19 @@ export interface EffectClassByType {
|
|
|
1413
1562
|
readonly ToneControl: ToneControl;
|
|
1414
1563
|
readonly AMRadioSimulator: AMRadioSimulator;
|
|
1415
1564
|
readonly BitCrusher: BitCrusher;
|
|
1565
|
+
readonly BluetoothSBCSimulator: BluetoothSBCSimulator;
|
|
1566
|
+
readonly CassetteArtifacts: CassetteArtifacts;
|
|
1416
1567
|
readonly DigitalErrorEmulator: DigitalErrorEmulator;
|
|
1417
1568
|
readonly DSD64IMDSimulator: DSD64IMDSimulator;
|
|
1418
1569
|
readonly FMRadioSimulator: FMRadioSimulator;
|
|
1570
|
+
readonly G726ADPCMSimulator: G726ADPCMSimulator;
|
|
1571
|
+
readonly GSMFullRateSimulator: GSMFullRateSimulator;
|
|
1419
1572
|
readonly HumGenerator: HumGenerator;
|
|
1573
|
+
readonly MP3CodecSimulator: MP3CodecSimulator;
|
|
1420
1574
|
readonly NoiseBlender: NoiseBlender;
|
|
1421
1575
|
readonly SimpleJitter: SimpleJitter;
|
|
1422
1576
|
readonly SWRadioSimulator: SWRadioSimulator;
|
|
1577
|
+
readonly TapeArtifacts: TapeArtifacts;
|
|
1423
1578
|
readonly VinylArtifacts: VinylArtifacts;
|
|
1424
1579
|
readonly VinylSimulator: VinylSimulator;
|
|
1425
1580
|
readonly DopplerDistortion: DopplerDistortion;
|
|
@@ -1441,6 +1596,7 @@ export interface EffectClassByType {
|
|
|
1441
1596
|
readonly MultibandSaturation: MultibandSaturation;
|
|
1442
1597
|
readonly Saturation: Saturation;
|
|
1443
1598
|
readonly SubSynth: SubSynth;
|
|
1599
|
+
readonly TubeSimulator: TubeSimulator;
|
|
1444
1600
|
readonly CrossfeedFilter: CrossfeedFilter;
|
|
1445
1601
|
readonly MSMatrix: MSMatrix;
|
|
1446
1602
|
readonly MultibandBalance: MultibandBalance;
|