Free browser-based tool to detect swaras in Indian classical music in real time. Identify Sa, Re, Ga, Ma, Pa, Dha, Ni with pitch frequency analysis.
Built at SBU Hacks 2025. Swara Detector identifies the frequency and pitch of sounds and labels them according to the sargam system (Sa Re Ga Ma Pa Dha Ni). Since Indian music uses only one key, all swaras are calculated as mathematical ratios from the performer's chosen base Sa.
Swara Detector is a client-side React application that processes audio entirely in the browser using the Web Audio API. No audio data ever leaves your device.
The app supports ragas including Yaman, Bhairav, Malkauns, and Bhairavi, and allows users to set their own base Sa frequency for accurate swara mapping regardless of vocal range or instrument.
The team behind Swara Detector also founded the Indian Classical Music Club at Stony Brook University (SBU ICM). The club aims to keep the spirit of Indian classical music alive while exploring new creative directions, preserving and sharing the beauty of Indian classical traditions while encouraging creative interpretations and collaborations.
Visit the club: sbuicm.github.io | Instagram: sbu.icm
Swara Detector works for both Hindustani and Carnatic classical music traditions. The twelve swaras are: Sa, Komal Re, Shuddha Re, Komal Ga, Shuddha Ga, Shuddha Ma, Teevra Ma, Pa, Komal Dha, Shuddha Dha, Komal Ni, Shuddha Ni.