How to send MIDI while playing Strudel patterns

Hello! I would like to play a drum beat in Strudel, while sending midi notes out at the same time.

Something like this for example:$: s("bd:1!16").midi('IAC Driver')

At the moment, when I add the.midi('IAC Driver') i stop hearing the bass drum.

How do I send MIDI notes out while playing the bass drum in Strudel?

Thanks in advance, and my apologies if this is a newbie question but I can’t get this to work :slight_smile:

you can separate the pattern in a variable and use it twice I think:

const pattern = "c2!4"

$: note(pattern).s("bd")
$: note(pattern).midi('IAC Driver')
2 Likes

This works, thank you!

I think you could also do this:

$: s("bd:1!16").superimpose(x => x.midi('IAC Driver'))

1 Like

thanks @yaxu , that’s a neat solution, but I can get it to work, I’ll roll with @mr-e syntax for now, it seems to be working well

For anyone interested, I have found that shortening the length of the MIDI notes can be very useful.

For example in my case I need to control visuals in real time, and often the MIDI notes were “too close” to each other (aka not enough time for the MIDI off to occur, resulting in missing some midi events).

I tried using .sustain() but for my particular application I found .legato() to be more suitable

const pattern1 = "c2!16"// bd:1!2 4 8 16
$: note(pattern1).s("bd:1")
$: note(pattern1).midi('IAC Driver').legato(0.1)

1 Like