webAudio playing while Midi is also being sent

I was wondering if there is a way I can still have the audio play while i am also sending midi?
right now the behavior I am observing is that its either or.
Running on Chrome, Macbook.
this is the example code:

$: chord("<C^7 A7 Dm7 G7>").voicing().cpm(12).midi('IAC Driver Bus 1').midi('IAC Driver Bus 1')

Makes sound without the last part.

1 Like

Hi @CharStiles !

If I understand you right, I think this would do it:

$: chord("<C^7 A7 Dm7 G7>").voicing().cpm(12)
  .superimpose(x => x.midi('IAC Driver Bus 1').midi('IAC Driver Bus 1'))
1 Like

YES! Perfect! Thanks Yaxu!

1 Like