# Feature Request: Native MIDI Export Functionality (Similar to Audio Record)

**URL:** <https://in-thread.sonic-pi.net/t/feature-request-native-midi-export-functionality-similar-to-audio-record/9975>\
**Category:** Feature Requests\
**Created:** [April 17, 2026, 4:17am UTC](https://in-thread.sonic-pi.net/t/feature-request-native-midi-export-functionality-similar-to-audio-record/9975 "2026-04-17T04:17:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bhargavvenkat123](https://avatars.discourse-cdn.com/v4/letter/b/57b2e6/32.png) [@bhargavvenkat123](https://in-thread.sonic-pi.net/u/bhargavvenkat123)\
**Post date:** [April 17, 2026, 4:17am UTC](https://in-thread.sonic-pi.net/t/feature-request-native-midi-export-functionality-similar-to-audio-record/9975/1 "2026-04-17T04:17:06Z")

</div>

​First, thank you for the incredible work you’ve done on Sonic Pi. It has completely changed the way many of us approach composition and algorithmic music.

​I am writing to suggest a feature that would greatly enhance the workflow for users who distribute their music or use notation software: A native “Export to MIDI” button.

​Currently, converting a Sonic Pi composition into MIDI requires setting up virtual MIDI buses and recording into a third-party DAW in real-time. While this works, it adds a layer of technical friction for users who want to:

​Import their algorithmic compositions into notation software like MuseScore. ​Refine their compositions in a DAW with high-end VSTs. ​Archive their musical ideas in a lightweight, editable format.

​Proposed Implementation:

Much like the existing “Record” button captures audio to a .wav file, a “Record MIDI” toggle could capture all outgoing note events (pitch, duration, velocity, and channel) and save them as a Standard MIDI File (.mid) upon stopping.

​This feature would make Sonic Pi an even more powerful tool for professional composers and educators alike by seamlessly connecting code to the broader music production ecosystem.

​Thank you for your time and for everything you do for the live-coding community!
