@blibliki/engine
Advanced tools
Comparing version 0.1.7 to 0.1.8
@@ -1,2 +0,2 @@ | ||
import { Filter as InternalFilter } from "tone"; | ||
import { Filter as InternalFilter, FilterRollOff } from "tone"; | ||
import { FreqEnvelope, MonoFreqEnvelope } from "./Envelope"; | ||
@@ -9,2 +9,3 @@ import Module, { Voicable } from "./Base"; | ||
resonance: number; | ||
slope: FilterRollOff; | ||
envelopeAmount: number; | ||
@@ -20,2 +21,6 @@ voiceNo?: number; | ||
set cutoff(value: number); | ||
get filterType(): BiquadFilterType; | ||
set filterType(value: BiquadFilterType); | ||
get slope(): FilterRollOff; | ||
set slope(value: FilterRollOff); | ||
get frequency(): import("tone").Signal<"frequency">; | ||
@@ -22,0 +27,0 @@ get resonance(): number; |
@@ -8,2 +8,3 @@ import { Filter as InternalFilter } from "tone"; | ||
envelopeAmount: 0, | ||
slope: -24, | ||
filterType: "lowpass", | ||
@@ -31,2 +32,16 @@ }; | ||
} | ||
get filterType() { | ||
return this._props["filterType"]; | ||
} | ||
set filterType(value) { | ||
this._props = { ...this.props, filterType: value }; | ||
this.internalModule.type = value; | ||
} | ||
get slope() { | ||
return this._props["slope"]; | ||
} | ||
set slope(value) { | ||
this._props = { ...this.props, slope: value }; | ||
this.internalModule.rolloff = value; | ||
} | ||
get frequency() { | ||
@@ -33,0 +48,0 @@ return this.internalModule.frequency; |
{ | ||
"name": "@blibliki/engine", | ||
"version": "0.1.7", | ||
"version": "0.1.8", | ||
"main": "build/index.js", | ||
@@ -32,6 +32,9 @@ "types": "build/index.d.ts", | ||
"devDependencies": { | ||
"@types/jest": "^29.2.0", | ||
"@types/node": "^16.7.13", | ||
"@types/uuid": "^8.3.4", | ||
"eslint": "^8.18.0", | ||
"jest": "^29.2.2", | ||
"prettier": "^2.7.1", | ||
"ts-jest": "^29.0.3", | ||
"typescript": "^4.7.4", | ||
@@ -38,0 +41,0 @@ "typescript-language-server": "^0.11.1" |
@@ -1,2 +0,2 @@ | ||
import { Filter as InternalFilter } from "tone"; | ||
import { Filter as InternalFilter, FilterRollOff } from "tone"; | ||
@@ -11,2 +11,3 @@ import { FreqEnvelope, MonoFreqEnvelope } from "./Envelope"; | ||
resonance: number; | ||
slope: FilterRollOff; | ||
envelopeAmount: number; | ||
@@ -22,2 +23,3 @@ voiceNo?: number; | ||
envelopeAmount: 0, | ||
slope: -24, | ||
filterType: "lowpass", | ||
@@ -50,2 +52,20 @@ }; | ||
get filterType() { | ||
return this._props["filterType"]; | ||
} | ||
set filterType(value: BiquadFilterType) { | ||
this._props = { ...this.props, filterType: value }; | ||
this.internalModule.type = value; | ||
} | ||
get slope() { | ||
return this._props["slope"]; | ||
} | ||
set slope(value: FilterRollOff) { | ||
this._props = { ...this.props, slope: value }; | ||
this.internalModule.rolloff = value; | ||
} | ||
get frequency() { | ||
@@ -52,0 +72,0 @@ return this.internalModule.frequency; |
Sorry, the diff of this file is not supported yet
178628
117
4254
9