Hiyve Components - v1.0.0
    Preparing search index...
    • The settings of a sight-reading exercise, as a form: key, time, bars, clef, range, chords, level, rhythms. The tune they make is written by the page that owns them (generateSightReading). Every tune has a code — the settings and the seed in sixteen characters — shown here to keep or share, and a code pasted in brings its tune back.

      Parameters

      Returns Element

      const [settings, setSettings] = useState(defaultSightReadingSettings);
      const exercise = useMemo(() => generateSightReading({ ...settings, tempoBpm: bpm }), [settings, bpm]);
      <SightReadingPanel settings={settings} onChange={setSettings} locked={session.recorder.isRecording} />