October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run ScanOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk2 min

How to Create MIDI and WAV Files from One C# Source with SoundScript

Use one compiled SoundScript cue to write both symbolic MIDI and rendered WAV files from a .NET application, with a version-aware install path.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Compile a SoundScript cue once, then call RenderMidi() and RenderWave() on the compiled object to write a MIDI file and a WAV file. The outputs come from the same musical definition, but they serve different purposes: MIDI stores musical events for editing and sequencing, while WAV stores rendered audio for playback or delivery.

Generate both files from one C# definition

This example embeds a short cue in C# and writes both outputs to the application’s working directory:

As an Amazon Associate I earn from qualifying purchases.

using System.IO;
using SoundScript;

var cue = SoundScriptEngine.Compile(
    "tempo 120 track cue { instrument piano mf C4 e E4 e G4 q }");

File.WriteAllBytes("success.mid", cue.RenderMidi());
File.WriteAllBytes("success.wav", cue.RenderWave());

The code follows the API pattern shown by Anup Jayant Dharangutti’s SoundScript tutorial: Compile(...) returns a compiled cue, and each render method returns bytes that File.WriteAllBytes saves to a file. Add using System.IO; if your project does not already provide access to File through implicit usings.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

In the example, tempo 120 sets the tempo, instrument piano selects piano, and mf means mezzo-forte. The note sequence C4 e E4 e G4 q places two eighth notes followed by a quarter note.

#1 Best Overall
Akai Professional MPK Mini IV 25-Key USB-C MIDI Keyboard Controller, Black
  • Next-Gen Music Production and Beat Maker Essential - USB-powered MIDI keyboard controller with 25 mini velocity-sensitive keys, optimized for studio or beat production, piano-style performance, synth leads, sample triggering
  • Real-Time Control and Navigation - 8x assignable 360° knobs, a vibrant full-color screen and push/turn encoder for hands-on access to settings, presets, and DAW functions, without reaching for a computer
  • Iconic MPC Pads with RGB Feedback - 8 velocity- and pressure-sensitive MPC pads deliver an iconic finger-drumming experience, plus dynamic visual feedback to match your performance in studio or on the go
  • Studio Instrument Collection Included - A powerful VST/AU and standalone virtual suite packing 1000+ pro-grade drums, keys, synths, bass, FX from AIR, Akai Pro and Moog, plus MPK Mini IV integrated controls
  • Pre-Mapped DAW Integration - Get producing in under 15 minutes with Ableton Live Lite 12, Logic Pro, FL Studio and more; comes with an expanded DAW-mapped transport section for uninterrupted workflow

Use a source file for a larger cue

For a composition that is awkward to keep inside a C# string, put the SoundScript definition in a .ss file and compile it with SoundScriptEngine.CompileFile(...). The resulting compiled object can then be rendered to WAV in the same way:

var cue = SoundScriptEngine.CompileFile("success.ss");
File.WriteAllBytes("success.wav", cue.RenderWave());

The file-based approach keeps musical notation separate from application code. The same tutorial demonstrates compiling a .ss source file and rendering its compilation to WAV.

Rank #2
Akai Professional MPK Mini MK3 25-Key USB MIDI Keyboard Controller
  • Music Production and Beat Maker Essential -USB powered MIDI controller with 25 mini MIDI keyboard velocity-sensitive keys for studio production, virtual synthesizer control and beat production
  • Total Control of your Production - Innovative 4-way thumbstick for dynamic pitch and modulation control, plus a built-in arpeggiator with adjustable resolution, range and modes
  • Native Kontrol Standard (NKS) Integration - Akai Professional and Native Instruments have partnered to bring NKS support to the MPK Controller series, get ready to Kontrol straight from your MPK
  • Choose Your Exclusive Complimentary NKS Bundle - Browse and control Native Instruments presets and sound libraries; select one of three curated Komplete 15 Select bundles: Beats, Band, or Electronic
  • The MPC Experience - 8 backlit velocity-sensitive MPC-style MIDI beat pads with Note Repeat and Full Level for programming drums, triggering samples and controlling virtual synthesizer / DAW controls

Choose MIDI or WAV for the next step

Output What it contains Useful for
MIDI Symbolic musical events rather than recorded audio Sequencing, DAW editing, and MIDI processing
WAV Rendered audio Playback, delivery, app packaging, and audio processing

These are not interchangeable versions of the same file. MIDI leaves musical events available to downstream sequencing or editing tools; WAV is an audio rendering that can be played or processed as sound. Rendering both lets an application keep an editable musical representation alongside an audio asset.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Install the package with the version in mind

The tutorial’s install snippet pins SoundScript version 13.0.0 and says that release targets .NET 10. The official SoundScript site reported version 16.0.1 when accessed October 7, 2026. Those are different release references, so treat the tutorial as an API example rather than evidence that its exact package pin remains the recommended install.

Rank #3
Akai Professional LPK25 25-Key USB MIDI Keyboard Controller
  • Mini Keys, Major Performance - 25-key MIDI controller keyboard with responsive keys to play with feel and dynamics; Enjoy expressive songwriting, composing, jamming, playing melodies, bass lines, and more
  • Full Range Experience - Play every note with ease; Use the dedicated octave up and down buttons to transpose the range of your software instruments plus a sustain button for expressive performances
  • Feature Packed - Use the built-in arpeggiator and clock for creative control of any of your sound sources like software instruments, synthesizers, or USB-enabled modular gear, all by one USB cable
  • Customized Production - With 8 programmable preset slots you can instantly recall your mappings for DAWs, virtual instruments, and more; Create, edit, and manage all your presets from the computer
  • Versatile Performance - The USB Studio MIDI controller is perfect for your songwriting, beat-making, and DJ remixes whenever you're inspired; The sleek design fits alongside your studio equipment

Before adding the dependency, check the current package listing and the official project documentation for the version and target framework that fit your project. The documented code pattern is the important part here; package version availability and compatibility can change.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Know where the C# workflow ends

SoundScript also documents a separate Wave-oriented path. Its release notes describe SoundScript.Wave rendering .ss or .ssw files directly to WAV and introduce the soundscript wave CLI verb. The notes also state that Wave-only directives are rejected by the MIDI run path. See the SoundScript release notes for those pipeline distinctions; do not assume a script using Wave-specific directives can be sent through every MIDI route.

Rank #4
Sale
Donner Mini MIDI Keyboard N-25, 25 Key MIDI Controller Gifts for Beginners with Velocity-Sensitive Mini Keys Light-up Rocker Music Production Software, Small USB Controlador with 40 Teaching Courses
  • Compact Design with 25 Mini Velocity-Sensitive Keys: The portable N-25 midi keyboard controller, made up of 25 scaled-down velocity-sensitive keys, is a companion for you to create melodies and riffs full of emotion
  • Simple Layout and User-Friendly Functions: Donner N-25 mini MIDI is beginner-friendly, featuring 4 user programmable banks and essential tools like arpeggiator, sustain, octave, and tap tempo for musicians with limited music theory background
  • Mac, iOS, PC/iPhone/iPad Compatible: Just plug and play with Mac/PC via USB-MIDI, no extra drivers needed. Also, easily connect your MIDI controller to smartphone music apps with an OTG adapter
  • Multifunctional Pitch-Bend Wheel & Cool Light-up Buttons: The pitch-bend function ensures a rich and expressive timbre. In addition, the light-up button will provide you a fun visual display of your playing
  • 40 Entertaining Keyboard-Teaching Courses: Beginner to advanced keyboard courses designed for music arrangement novices. 40 engaging lessons cover all arrangement essentials to help unleash your creativity

There is a similar boundary for vocal features. The official vocal documentation describes lyric events being placed in MIDI; that MIDI output is not rendered speech audio.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
midiplus AKM320 Midi Keyboard Controller
  • 32-note velocity sensitive mid-size key keyboard. Pitch Wheel. Modulation Wheel. Octave Buttons(Up & Down). Transpose Buttons(Up & Down).
  • Sustain Switch interface (sustain pedal does not include). USB B type: USB connect to Computer
  • Attachment Type: USB cable
  • Country of origin : Taiwan

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
PC Slower Than It Used to Be?Free scan - under a minute
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.