mirror of
https://github.com/kaythomas0/noisedash.git
synced 2025-11-15 04:38:00 +00:00
Fix updateSampleVolume and nav drawer
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user