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-navigation-drawer
v-model="drawyer"
absolute
fixed
temporary
>
<v-list

View File

@@ -105,10 +105,10 @@ export default {
this.noise = new Noise({ volume: this.volume, type: this.noiseColor }).connect(this.filter)
}
if (this.isLFOFilterCutoffEnabled) {
this.lfo = new LFO({ frequency: this.lfoFilterCutoffFrequency, min: this.lfoFilterCutoffRange[0], max: this.lfoFilterCutoffRange[1] })
this.lfo.connect(this.filter.frequency).start()
}
// if (this.isLFOFilterCutoffEnabled) {
// this.lfo = new LFO({ frequency: this.lfoFilterCutoffFrequency, min: this.lfoFilterCutoffRange[0], max: this.lfoFilterCutoffRange[1] })
// this.lfo.connect(this.filter.frequency).start()
// }
if (this.isTimerEnabled) {
this.duration = parseInt((this.hours * 3600)) + parseInt((this.minutes * 60)) + parseInt(this.seconds)
@@ -393,6 +393,7 @@ export default {
},
updateSampleVolume (id, index) {
this.players.player(id).volume.value = this.loadedSamples[index].volume
this.$forceUpdate()
},
removeSample (index) {
this.loadedSamples.splice(index, 1)