Skip to content

Commit f8ff561

Browse files
committed
add inputs: a4_note_frequency & note_name
1 parent 6941bcb commit f8ff561

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

demo/src/components/PlayNote.vue

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
11
<template>
22
<div class="flex flex-col items-center gap-4 pt-8 text-center">
3+
<label :for="a4_note_frequency_text">
4+
{{ a4_note_frequency_text }}
5+
<br />
6+
<input
7+
:id="a4_note_frequency_text"
8+
v-model="a4_note_frequency"
9+
type="number"
10+
:placeholder="a4_note_frequency_text"
11+
/>
12+
</label>
13+
14+
<label :for="note_name_text">
15+
{{ note_name_text }}
16+
<br />
17+
<input :id="note_name_text" v-model="note_name" type="text" :placeholder="note_name_text" />
18+
</label>
19+
320
<label :for="note_frequency_text">
421
{{ note_frequency_text }}
522
<br />
@@ -82,4 +99,10 @@ const oscillator_icon = computed(
8299
watch(oscillator_type, () => {
83100
np.setOscillatorType(oscillator_type.value)
84101
})
102+
103+
const a4_note_frequency = ref(440)
104+
const a4_note_frequency_text = 'A4 Frequency'
105+
106+
const note_name = ref('A4')
107+
const note_name_text = 'Note name'
85108
</script>

0 commit comments

Comments
 (0)