vdac $ midi $ onMsg $ \x -> saw (x + 150 * leg 2 2 0.5 1)
Virtual midi keyboard comes up but there is no sound .
It works when I run csound on tmp.csd file with following options
--nodisplays --output=dac -+rtmidi=virtual --midi-device=0
amidi -l
Dir Device Name
IO hw:0,0 Virtual Raw MIDI (16 subdevices)
IO hw:0,1 Virtual Raw MIDI (16 subdevices)
IO hw:0,2 Virtual Raw MIDI (16 subdevices)
IO hw:0,3 Virtual Raw MIDI (16 subdevices)
While running this snippet from ghci repl : -
amidi -l Dir Device Name IO hw:0,0 Virtual Raw MIDI (16 subdevices) IO hw:0,1 Virtual Raw MIDI (16 subdevices) IO hw:0,2 Virtual Raw MIDI (16 subdevices) IO hw:0,3 Virtual Raw MIDI (16 subdevices)