spell-music / csound-expression

Haskell Framework for Electronic Music
320 stars 31 forks source link

Midi sound #82

Closed Aman1531 closed 1 year ago

Aman1531 commented 1 year ago

While running this snippet from ghci repl : -

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)