30 Importing CSD and MIDI
Importing replaces the active project with a new Blue project. Save work in the current project before starting an import, then save the imported result as a .blue file. Open a project first; the import commands are disabled when no project is loaded. The original source file remains separate.
30.1 Import a CSD
Choose File → Import CSD File and select a .csd. Blue asks where the CsScore events should go:
| Choice | Result |
|---|---|
| Global Score | Places imported score text in the Global Score. |
| Single Sound Object | Creates GenericScore material, splitting score sections where present. |
| Sound Object per Instrument | Splits each section again by instrument. |
Blue parses orchestra instruments and UDOs, global orchestra text, settings, tables, and supported score statements. The score importer handles f, i, s, and valid t tempo statements; it is not a general Csound score parser. After import, inspect Project → Generate CSD to Screen, instrument IDs, table references, and media paths before rendering. See GenericScore and Tables.
30.2 Import a MIDI file
Choose File → Import MIDI File and select a MIDI file. The MIDI Import Settings dialog shows streams with note data, grouped by source track and channel. Each row shows its note range and lets you set an Instrument ID, Note template, and Trim choice. The instrument ID and template must be nonempty; instrument ID zero is rejected.
The default template is:
i<INSTR_ID> <START> <DUR> <KEY> <VELOCITY>
Expand Template placeholders in the dialog for the full list, including <KEY_PCH>, <KEY_OCT>, <KEY_CPS>, and <VELOCITY_AMP>. Adapt the template to the target Csound instrument’s p fields. Trim removes leading silence within that stream: the layer starts at its first note and the first generated note is written at beat zero. Review imported layers and timing before replacing the source MIDI file in your workflow.
30.3 Add an audio file
For an audio recording that should play as recorded, add an AudioClip to an audio Track in the Score. A Track can route it through the Mixer. For a file-driven SoundObject with its own playback instrument and post code, use AudioFile instead. Set the project’s Media Folder before importing if the project should copy its audio into a portable folder.