Fix updateSampleVolume and nav drawer

This commit is contained in:
Kevin Thomas
2021-11-11 22:02:27 -08:00
parent bd73f9dae3
commit e155f67f53
2 changed files with 6 additions and 5 deletions

View File

@@ -12,7 +12,7 @@
</v-app-bar> </v-app-bar>
<v-navigation-drawer <v-navigation-drawer
v-model="drawyer" v-model="drawyer"
absolute fixed
temporary temporary
> >
<v-list <v-list

View File

@@ -105,10 +105,10 @@ export default {
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)
@@ -393,6 +393,7 @@ export default {
}, },
updateSampleVolume (id, index) { updateSampleVolume (id, index) {
this.players.player(id).volume.value = this.loadedSamples[index].volume this.players.player(id).volume.value = this.loadedSamples[index].volume
this.$forceUpdate()
}, },
removeSample (index) { removeSample (index) {
this.loadedSamples.splice(index, 1) this.loadedSamples.splice(index, 1)