Side projects

Riyaz: a keyboard tutor that speaks sargam

A practice app for my Casio keyboard. A Raspberry Pi reads every key over USB and a browser page teaches, listens and grades, in Indian sargam notation.

Screenshot of a Riyaz lesson called Skipping swar: buttons for Listen, Practice and With metronome at 60 beats per minute, the next note shown large as Sa with finger 1, the phrase Sa Ga Re Ma Ga Pa Pa Ma Ga Re Sa with finger numbers, and a three-octave on-screen keyboard labelled in sargam.
A lesson in practice mode: the next swar and finger, the whole phrase with finger numbers, and the keyboard labelled in sargam.

What it is

I’m learning the keyboard (a Casio CT-X9000IN), and wanted a teacher that thinks in sargam (Sa Re Ga Ma Pa Dha Ni) rather than staff notation. The keyboard connects over USB to a Raspberry Pi, where a small Python server reads every key press through the ALSA sequencer and streams it to a browser page. The page runs the lessons and grades my playing. It lives as a home-screen app on an old iPad mini.

The Riyaz home screen: a progress ring showing 8 of 28 lessons done, minutes today, days this week and streak, a Continue button for Unit 2 Skipping swar, and lesson cards for Meet the keyboard and Right hand: five fingers, with stars for each lesson passed.
Eight units, from finding Sa to the aaroh and avaroh of Bhupali and Yaman, with stars for each lesson passed.

How it teaches

Every attempt is logged, so the next lessons can be planned around what actually goes wrong.

Riyaz's three-octave on-screen keyboard with every key labelled in sargam, dots marking the lower and upper octaves, and a strip above for live key-press bars.
The on-screen keyboard: dots below and above a swar mark the lower and upper octaves.

Stack: Python (ALSA sequencer via ctypes, server-sent events), JavaScript, Web Audio, Raspberry Pi 5. Vibe-coded with Claude Code.