|
@@ -77,6 +77,9 @@ export default defineComponent({
|
|
// console.log("🚀 ~ item:", item);
|
|
// console.log("🚀 ~ item:", item);
|
|
const noteAudio = data.soundFonts[item.realKey];
|
|
const noteAudio = data.soundFonts[item.realKey];
|
|
if (type === "start") {
|
|
if (type === "start") {
|
|
|
|
+ if (data.realKey) {
|
|
|
|
+ data.soundFonts[data.realKey].stop();
|
|
|
|
+ }
|
|
data.realKey = item.realKey;
|
|
data.realKey = item.realKey;
|
|
if (noteAudio) {
|
|
if (noteAudio) {
|
|
noteAudio.play();
|
|
noteAudio.play();
|