mirror of
https://github.com/kaythomas0/noisedash.git
synced 2025-11-14 20:27:59 +00:00
Fix audio chain
This commit is contained in:
@@ -277,8 +277,8 @@
|
|||||||
thumb-label
|
thumb-label
|
||||||
label="Rate"
|
label="Rate"
|
||||||
max="10"
|
max="10"
|
||||||
min="0.1"
|
min="0.01"
|
||||||
step="0.1"
|
step="0.01"
|
||||||
class="mx-3"
|
class="mx-3"
|
||||||
@change="updateLFOFilterCutoffFrequency"
|
@change="updateLFOFilterCutoffFrequency"
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -93,22 +93,20 @@ export default {
|
|||||||
} else if (this.isFilterEnabled && !this.isTremoloEnabled) {
|
} else if (this.isFilterEnabled && !this.isTremoloEnabled) {
|
||||||
this.filter = new Filter(this.filterCutoff, this.filterType).toDestination()
|
this.filter = new Filter(this.filterCutoff, this.filterType).toDestination()
|
||||||
this.noise = new Noise({ volume: this.volume, type: this.noiseColor }).connect(this.filter)
|
this.noise = new Noise({ volume: this.volume, type: this.noiseColor }).connect(this.filter)
|
||||||
} else if (this.isFilterEnabled && this.isLFOFilterCutoffEnabled && this.isTremoloEnabled) {
|
} else if (this.isFilterEnabled && this.isTremoloEnabled) {
|
||||||
this.tremolo = new Tremolo({ frequency: this.tremoloFrequency, depth: this.tremoloDepth }).toDestination().start()
|
this.tremolo = new Tremolo({ frequency: this.tremoloFrequency, depth: this.tremoloDepth }).toDestination().start()
|
||||||
this.filter = new Filter(this.filterCutoff, this.filterType).connect(this.tremolo)
|
this.filter = new Filter(this.filterCutoff, this.filterType).connect(this.tremolo)
|
||||||
this.noise = new Noise({ volume: this.volume, type: this.noiseColor }).connect(this.filter)
|
this.noise = new Noise({ volume: this.volume, type: this.noiseColor }).connect(this.filter)
|
||||||
this.lfo = new LFO({ frequency: this.lfoFilterCutoffFrequency, min: this.lfoFilterCutoffRange[0], max: this.lfoFilterCutoffRange[1] })
|
|
||||||
this.lfo.connect(this.filter.frequency).start()
|
|
||||||
} else {
|
} else {
|
||||||
this.tremolo = new Tremolo({ frequency: this.tremoloFrequency, depth: this.tremoloDepth }).toDestination().start()
|
this.tremolo = new Tremolo({ frequency: this.tremoloFrequency, depth: this.tremoloDepth }).toDestination().start()
|
||||||
this.filter = new Filter(this.filterCutoff, this.filterType).connect(this.tremolo)
|
this.filter = new Filter(this.filterCutoff, this.filterType).connect(this.tremolo)
|
||||||
this.noise = new Noise({ volume: this.volume, type: this.noiseColor }).connect(this.filter)
|
this.noise = new Noise({ volume: this.volume, type: this.noiseColor }).connect(this.filter)
|
||||||
}
|
}
|
||||||
|
|
||||||
// if (this.isLFOFilterCutoffEnabled) {
|
if (this.isLFOFilterCutoffEnabled) {
|
||||||
// this.lfo = new LFO({ frequency: this.lfoFilterCutoffFrequency, min: this.lfoFilterCutoffRange[0], max: this.lfoFilterCutoffRange[1] })
|
this.lfo = new LFO({ frequency: this.lfoFilterCutoffFrequency, min: this.lfoFilterCutoffRange[0], max: this.lfoFilterCutoffRange[1] })
|
||||||
// this.lfo.connect(this.filter.frequency).start()
|
this.lfo.connect(this.filter.frequency).start()
|
||||||
// }
|
}
|
||||||
|
|
||||||
if (this.isTimerEnabled) {
|
if (this.isTimerEnabled) {
|
||||||
this.duration = parseInt((this.hours * 3600)) + parseInt((this.minutes * 60)) + parseInt(this.seconds)
|
this.duration = parseInt((this.hours * 3600)) + parseInt((this.minutes * 60)) + parseInt(this.seconds)
|
||||||
|
|||||||
Reference in New Issue
Block a user