-
Notifications
You must be signed in to change notification settings - Fork 0
Miscellaneous
The volume
property of an instance of Synth.System
is a GainNode
that represents a master volume control for the whole sound system.
The frequencies (in Hz) needed to generate notes can be read off from the noteFrequencies
property of a channel object in case you need to perform raw calculations using frequency values. It's an array indexed by MIDI note number. The array can even be directly modified, which might be useful if you want to use a quarter note scale or for similar applications. You can also set the a4Pitch
property of a Synth.System
object, e.g. system.a4Pitch = 415;
to change the system's pitch standard.
Synth.keymap
is a Map
object which maps KeyboardEvent.code
values to MIDI note numbers ranging from B2 to G5. This can be used to turn the computer keyboard into a makeshift music keyboard. View layout.