# SEND SPi´s Midi to Another DAW

**URL:** <https://in-thread.sonic-pi.net/t/send-spi-s-midi-to-another-daw/4052>\
**Category:** Support, Help & Resources\
**Created:** [June 14, 2020, 6:50pm UTC](https://in-thread.sonic-pi.net/t/send-spi-s-midi-to-another-daw/4052 "2020-06-14T18:50:20Z")\
**Posts on this page:** 7\
**Page:** 2

<div class="post-metadata">

**Author:** ![nlb](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/nlb/32/997_2.png) [@nlb](https://in-thread.sonic-pi.net/u/nlb)\
**Post date:** [June 20, 2020, 7:29am UTC](https://in-thread.sonic-pi.net/t/send-spi-s-midi-to-another-daw/4052/21 "2020-06-20T07:29:03Z")

</div>

> [@Hypostatic](#):
>
> . So, I used a normal MIDI map. It takes some screwing around because you need to make a small loop of just the midi send from Sonic Pi in order to have Ableton pick up on it and map it to the record button. But if you do things in the right order it does work.

nice idea ! Some code available ?  
i guess you use the learn midi affectation to the record button into ableton live then into sonic pi send some clever midi signals but which one ?  
Thanks if you can tell us more

EDIT : this is the idea non ?

```ruby
live_loop :ArmTrack01 do
  
  midi_cc 20, 0
  sleep 1
  midi_cc 20, 127
  sleep 1
  
end

```

---

<div class="post-metadata">

**Author:** ![Lunatico](https://avatars.discourse-cdn.com/v4/letter/l/5fc32e/32.png) [@Lunatico](https://in-thread.sonic-pi.net/u/Lunatico)\
**Post date:** [June 20, 2020, 10:14am UTC](https://in-thread.sonic-pi.net/t/send-spi-s-midi-to-another-daw/4052/22 "2020-06-20T10:14:43Z")

</div>

Hi siimphh!  
Yes; I have Oscular Toolkit but i don,t know how to use it with Sonic Pi .

> **[EraserMice - tools and technology](http://www.erasermice.com/)**
>
> Check out this GoDaddy hosted webpage! http://erasermice.com.

[![](https://img.youtube.com/vi/9LQAtjKt9UQ/maxresdefault.jpg "eraserMice Ableton OSCular Toolkit from Isotonik") ](https://www.youtube.com/watch?v=9LQAtjKt9UQ)

Thanks

---

<div class="post-metadata">

**Author:** ![Lunatico](https://avatars.discourse-cdn.com/v4/letter/l/5fc32e/32.png) [@Lunatico](https://in-thread.sonic-pi.net/u/Lunatico)\
**Post date:** [June 20, 2020, 10:18am UTC](https://in-thread.sonic-pi.net/t/send-spi-s-midi-to-another-daw/4052/23 "2020-06-20T10:18:23Z")

</div>

Hi nlb & Hypostatic!

Thanks for the advice about LiveOSC.

I have tried but does not work for me because i am doing something bad.

In the original Hypostatic post are the files.

Have nice weekend 😉

---

<div class="post-metadata">

**Author:** ![Lunatico](https://avatars.discourse-cdn.com/v4/letter/l/5fc32e/32.png) [@Lunatico](https://in-thread.sonic-pi.net/u/Lunatico)\
**Post date:** [June 20, 2020, 10:22am UTC](https://in-thread.sonic-pi.net/t/send-spi-s-midi-to-another-daw/4052/24 "2020-06-20T10:22:16Z")

</div>

Hi !  
Hypostatic; I love Reaper.  
Please could you explain with detail,some pictures how do you set up Reaper OSC with Sonic Pi?  
Maybe better by creating a new thread  
Thanks in advance

---

<div class="post-metadata">

**Author:** ![Hypostatic](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/hypostatic/32/1383_2.png) [@Hypostatic](https://in-thread.sonic-pi.net/u/Hypostatic)\
**Post date:** [June 20, 2020, 3:06pm UTC](https://in-thread.sonic-pi.net/t/send-spi-s-midi-to-another-daw/4052/25 "2020-06-20T15:06:36Z")

</div>

@nlb

> [@nlb](#):
>
> nice idea ! Some code available ?  
> i guess you use the learn midi affectation to the record button into ableton live then into sonic pi send some clever midi signals but which one ?  
> Thanks if you can tell us more
> 
> EDIT : this is the idea non ?

Yep, that’s correct. I’m not totally sure using 0, and 127 has an effect like ‘on and off’ - I guess I didn’t try that. I think it’s a toggle though. Any command on that channel and value toggle it. I could be wrong.

What I actually didn’t say very well was I only use the loop I was talking about for control mapping - like arming the record button. I comment out everything else, run that to set up mapping in Ableton, and then comment that out and just use a single command before I run the OSC “play” command.

To do that it helps to have just one single command (though that can work as well). I set up a small loop like what you have above with only one midi command at a time and then put Ableton into ‘midi mapping’ mode with say the ‘record’ button chosen. Then I start just the live\_loop and Ableton then has that midi command (usually a midi cc in this case) internally mapped to listen for that. For whatever reason LiveOSC, does not have a way that I could find to play AND record. It can play fine with the OSC command for that (in the [LiveOSC reference](https://github.com/ideoforms/LiveOSC/blob/master/OSCAPI.txt) list I shared in [my other post](https://in-thread.sonic-pi.net/t/liveosc-sonic-pi-ableton-live/3850)) but you either need to click the record button manually every time (maybe not that big of a deal) or use midi as just mentioned.

But with this method of midi-mapping you can also do just about amount of Ableton control as well. I just find the OSC commands cleaner.

ANOTHER BIG CAVEAT: You can’t seem to use both LiveOSC AND the OSC Toolkit. I think LiveOSC must be intercepting all calls, even if you use a different port. Again, I could be wrong, but never figured it out.

---

<div class="post-metadata">

**Author:** ![Hypostatic](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/hypostatic/32/1383_2.png) [@Hypostatic](https://in-thread.sonic-pi.net/u/Hypostatic)\
**Post date:** [June 20, 2020, 3:19pm UTC](https://in-thread.sonic-pi.net/t/send-spi-s-midi-to-another-daw/4052/26 "2020-06-20T15:19:25Z")

</div>

Hi @Lunatico !

> [@Lunatico](#):
>
> Hi !  
> Hypostatic; I love Reaper.  
> Please could you explain with detail,some pictures how do you set up Reaper OSC with Sonic Pi?  
> Maybe better by creating a new thread  
> Thanks in advance

Sure! When I get a chance and refresh my memory, I’ll write this up in another thread. It isn’t very difficult and REAPER is very efficient. I actually had much less problems than with Ableton AND there are MANY more commands to use than with Ableton and LiveOSC. Perfect for recording stems of loops for mixing.

---

<div class="post-metadata">

**Author:** ![Lunatico](https://avatars.discourse-cdn.com/v4/letter/l/5fc32e/32.png) [@Lunatico](https://in-thread.sonic-pi.net/u/Lunatico)\
**Post date:** [June 20, 2020, 7:54pm UTC](https://in-thread.sonic-pi.net/t/send-spi-s-midi-to-another-daw/4052/27 "2020-06-20T19:54:28Z")

</div>

Hi  
Fantastic Hypostatic!  
I wait happily for the configuration of the powerful reaper 😉

[Previous page](https://in-thread.sonic-pi.net/t/send-spi-s-midi-to-another-daw/4052.md?page=1)
