Aural JS

Auditory programming environment

var test = 'testing';

Try putting your cursor in various places in the variable declaration. Then, try typing some some stuff yourself. Adjust sound volume if needed.

Uses the NearleyJS parser to hook sounds to Javascript grammar rules (similar to syntax highlighting). ***Proof of concept, very rough, not optimal, etc etc.***

Rule > Sound mapping

Grammar rules are considered in this order, so later ones will override earlier ones. Possible rule names can be found here, and check the browser console for some useful info while typing.

Sounds are played if any of these grammar rules are allowed but not complete (based on the code up to your cursor). This allows for a large set of rules to potentially trigger sounds at each point in the code. So, it's a good idea to specify that generic high-level rules (like 'Program') reset the sound state back to 'lowlevel' at the end of the list.

* please use valid json :) * please use valid json :)

Sound definitions (combination of noise types)

* please use valid json :)