# Midi problem with sonic pi

**URL:** <https://in-thread.sonic-pi.net/t/midi-problem-with-sonic-pi/561>\
**Category:** General\
**Created:** [December 23, 2017, 6:57am UTC](https://in-thread.sonic-pi.net/t/midi-problem-with-sonic-pi/561 "2017-12-23T06:57:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![umbe](https://avatars.discourse-cdn.com/v4/letter/u/f19dbf/32.png) [@umbe](https://in-thread.sonic-pi.net/u/umbe)\
**Post date:** [December 23, 2017, 6:57am UTC](https://in-thread.sonic-pi.net/t/midi-problem-with-sonic-pi/561/1 "2017-12-23T06:57:58Z")

</div>

Hello to all, I’m new here, I just discovered sonic pi watching an old video (eight months ago) where sonic pi sends midi messages to synthesizer, i installed sonic pi but , if I use an instruction seen in the video, like this one “midi (scale :e1, :minor\_pentatonic, num\_octaves: 3).choose, sustain: 0.5, channel: 1” ,  
I always get this error “undefined method ‘midi’ for Runtime :SonicPiLang”.  
What am I doing wrong ?

thank you

---

<div class="post-metadata">

**Author:** ![robin.newman](https://avatars.discourse-cdn.com/v4/letter/r/76d3ee/32.png) [@robin.newman](https://in-thread.sonic-pi.net/u/robin.newman)\
**Post date:** [December 23, 2017, 8:31am UTC](https://in-thread.sonic-pi.net/t/midi-problem-with-sonic-pi/561/2 "2017-12-23T08:31:17Z")

</div>

Welcome!  
Which version of Sonic Pi are you using? The midi command is only available in the latest released version 3.0.1 available for RPi Mac or for Windows PC using a beta release for patreon supporters of Sam Aaron ( or Linux if you build it yourself)

---

<div class="post-metadata">

**Author:** ![umbe](https://avatars.discourse-cdn.com/v4/letter/u/f19dbf/32.png) [@umbe](https://in-thread.sonic-pi.net/u/umbe)\
**Post date:** [December 23, 2017, 12:06pm UTC](https://in-thread.sonic-pi.net/t/midi-problem-with-sonic-pi/561/3 "2017-12-23T12:06:21Z")

</div>

Thanks for the reply , I’m using windows 7.

I do not know patreon , now I inform myself on the internet.

Thanks

---

<div class="post-metadata">

**Author:** ![robin.newman](https://avatars.discourse-cdn.com/v4/letter/r/76d3ee/32.png) [@robin.newman](https://in-thread.sonic-pi.net/u/robin.newman)\
**Post date:** [December 23, 2017, 12:08pm UTC](https://in-thread.sonic-pi.net/t/midi-problem-with-sonic-pi/561/4 "2017-12-23T12:08:06Z")

</div>

see

> **[Sam Aaron is creating the live coding synth Sonic Pi | Patreon](https://www.patreon.com/samaaron)**
>
> Become a patron of Sam Aaron today:
> Read 70 posts by Sam Aaron and get access to exclusive
> content and experiences on the world’s largest membership
> platform for artists and creators.

  
If you support Sam you will get acxcess to the Windows beta for Sonic Pi 3.0.1 which will support midi
