Gamelan Components — Vue

Wire Vue components with props, emits, slots, provide and Pinia at Pak Prapto's gamelan rehearsal. 16 levels, right in the browser.

What the levels ask

  1. The first Thursday night in Pak Prapto's pendapa. The plate on Bu Sari's saron must show the gending the kendang holds, and change when Pak Prapto changes it on the tablet. Pick how Pendapa gives gending to <Saron>.
  2. Bu Sari wants a faster tempo and presses the button on her saron. The tempo (laya) belongs to the kendang; the saron only receives it as a prop. Pick what goes in Saron's @click so both plates go up to 70.
  3. Mbak Wulan picks the scale for her song with the PilihLaras component on the tablet, used as v-model="laras". When she presses Pelog, the scale plate and the kendang's plate must both become pelog. Pick the call name pilih sends.
  4. The sinden sings the words Pak Prapto writes: Pendapa puts them between <Sinden> and </Sinden>. Pick what goes on the sinden's plate so the words show, and change when Pak Prapto turns the verse.
  5. Tonight's words have two lines: one for the sinden, one for the chorus. The Cakepan component offers two named places. Pick the names for the two <template>s in Pendapa so each line shows at its own singer.
  6. The DaftarGending component holds the list of gendings, but Pendapa writes how each row looks: the title, then its scale in brackets. Pick how the <template> receives a gending from the slot, then let Dina add one.
  7. Pak Prapto lights the turn lamp by giving an instrument component class="giliran". The lamp must light on the bonang (not its frame) and then move to the gong (not its name plate) when Pak Prapto signals, without Vue warning about anything. Pick Bonang's option and Gong's template.
  8. The saron and the bonang sit inside Rancak, two levels below the kendang. Both read the tempo with inject('laya'). Pick how Pendapa provides the tempo so all three plates go up to 80 when Pak Prapto speeds up.
  9. Rara on the kenong and Pak Tono on the gong both count the cycles with the composable useHitungan(). The code is done. Guess first: when Rara strikes the kenong once, what changes? Tap what will change, then watch the rehearsal.
  10. Now the kenong and the gong must hold the same count. There is a Pinia store useGongan and last week's composable useHitungan. Pick what g is in both components so Rara's stroke raises both plates and the count in the store.
  11. Bagas moves on two lines in his bonang notation. Then Pak Prapto opens the saron sheet for Bu Sari and comes back. Bagas must carry on from line 3, and his bonang calls out through onActivated. Pick what wraps <component :is="lembar">.
  12. The WaraWara component is used inside the sinden's corner, but Pak RT's notice must be pinned on the notice board outside the pendapa, the element <div id="papan-luar">. Pick the <Teleport>'s destination.

And more, 16 levels in all.