i want to ask for help regarding Haskell libraries, since i am writing one to integrate with hardware synths and i am stuck right now
my motivation is being able to easily retrieve parameters from hardware instruments such as Korg volca beats while live coding.
for example, on the korg volca beats, the kick is note 36, and snare is 38, so i want to be able to retrieve those numbers with notation Korg.volcaBeats.kick which i want to evaluate to 36, so i can use it on Tidal scripts.
another example would be that MIDI instruments tend to have a default MIDI channel for input, and i want to be able to store that on this library, so i can write code such as Korg.volcaBeats.midiChannel, which should evaluate to 10.
i am writing it here, and so far i have played around and been able to create dummy Haskell modules and published the library, but i need help with the Haskell code.
i would like to finish the Korg.hs module with several instruments, and each instrument with several parameters, like these:
Korg has instruments volcaBeats, volcaFM, minilogue, monologue, etc
volcaBeats has noteKick = 36, noteSnare = 38, midiChannel = 10, etc
so that they can be accessed with the notation Korg.volcaBeats.noteKick, and also i would love thoughts about less verbose ways to write the same