SPB Git

Repository Public

studio.md 5.5 KB 115 lines markdown

1<!--2ORIX Sonata3File: Documentation/manual/studio.md4Author: Simon-Pierre Boucher5Contact: contact@spboucher.ai6-->7# Studio89The **Studio** space (⌘3) shows the compiled piece as a multitrack session: a timeline above,10and below it either the mixer or a piano roll. Everything it displays comes from the compiler11and the audio engine: the notes are the notes the code produced, the waveforms are drawn from12the rendered audio of each track, the meters read what the engine is playing.1314## The timeline1516* **Ruler.** Bars are numbered along the top; beats appear when there is room. Click or drag17  in the ruler to move the playhead. **Shift-drag** draws the cycle range.18* **Lanes.** One lane per track. Each note is a bar placed by time and pitch; behind the notes19  is the waveform of the track's own audio (its *stem*), rendered in the background after each20  compilation. A waveform shown in grey belongs to the previous version of the code and is21  being re-rendered.22* **Markers** declared with `marker "A" at 4bars` appear as flags in the ruler. Automation23  curves written in the code are drawn as dashed lines over their track.24* **Zoom** with a pinch, with ⌘-scroll or ⌥-scroll, or with the slider; the read-out at the25  right gives the scale, down to single samples. **Fit** shows the whole piece. Scroll26  sideways to move in time and vertically through the tracks. While playing, the view follows27  the playhead.28* **Track headers** show the name, the instrument, mute (M) and solo (S), the fader value and29  a level meter. Drag the lower edge of a header to change the height of the lane. The30  context menu sets the track's colour and offers **Show in Code**.31* **Double-click a note** to jump to the statement that produced it in the Code space.32  Double-clicking an empty part of a lane jumps to the track.33* **Space** starts and pauses playback when the Studio has the focus (in the editor, where34  Space types a space, use ⌘↩).3536## Transport3738| Control | Shortcut |39|---|---|40| Play / Pause | ⌘↩ (Space in the Studio) |41| Stop | ⌘. |42| Return to start | ⇧⌘↩ |43| Cycle | ⌘L |44| Metronome | ⌘K |4546The position read-out shows the bar and beat and the time. Both come from the engine's clock47and the compiled bar map, so they stay right through tempo and metre changes.4849## The mixer5051Choose **Mixer** in the dock, or **Detach Mixer** to open it in its own floating window. There52is a strip for each track, each bus and the master:5354* a **fader** in decibels (drag; hold Shift for fine steps; double-click for 0 dB; arrow keys55  when focused);56* **pan**, **mute** and **solo**;57* the strip's **effects**, with their settings in a tooltip (crossed out when bypassed);58* a **meter**: the pale bar is the peak, the solid bar the RMS level, the line the peak hold,59  whose value is written under the fader.6061The panel at the right gives the loudness of the master (momentary, short-term, integrated,62true peak) and what the engine measured about itself: the time spent in the audio callback63(median, 99th percentile, maximum), the number of voices and the number of overruns.6465## The piano roll6667Choose **Piano Roll** in the dock and select a track. The roll shows that track's notes on a68keyboard grid, with their velocities underneath.6970| Action | How |71|---|---|72| Select | click a note; Shift-click adds or removes |73| Move in time or pitch | drag a note (the selection follows) |74| Change length | drag the right end of a note |75| Transpose | ↑ and ↓ (with Shift: an octave) |76| Add a note | double-click an empty place |77| Delete | select, then ⌫ |78| Change velocity | drag a stem in the velocity lane |79| Quantise | **Quantise** moves the selected notes (or all) to the nearest grid line |80| Hear the instrument | press a key of the keyboard at the left |8182The **Snap** menu sets the grid used for moving, resizing, adding and quantising: bar, beat,83half, quarter or third of a beat, or off.8485## How studio edits relate to the code8687This is the rule that keeps a project understandable: **the code is the piece, and the Studio88never rewrites it.**8990When you move a fader or drag a note, the change is stored as an explicit *override* in the91project's `studio.json`, beside the code. The compiler applies the overrides after compiling92the source, so the timeline, the mixer, the score, the renders and the command line all agree.9394* **Mixer overrides** are stored per strip, by name: gain, pan, mute, solo. A strip with an95  override shows **Reset to code**, which removes it.96* **Note overrides** are stored per note: a new start, length, pitch or velocity, or a97  deletion. Notes you add are stored as added notes and drawn in a different colour. The98  header of the piano roll counts the edits of the track and offers **Discard Edits**.99* Every studio change can be undone and redone (⌘Z, ⇧⌘Z).100* Each note override remembers the start and pitch the note had when you edited it. If you101  later change that note in the code, the override no longer matches: it is **not** applied to102  some other note. The console lists it as *Studio edit skipped* with the reason, and the103  code's version plays.104* Deleting `studio.json`, or discarding the edits, returns the project to exactly what the105  code says.106107If an edit should become part of the piece itself, write it in the code. The Studio is for108adjusting; the code is for composing.109110## Not in this version111112So that nothing is assumed: recording audio or MIDI, editing audio clips on the timeline113(trim, split, fades), drawing automation in the Studio (automation is written in the code and114displayed), and freezing tracks are not part of version 0.1.115
Files main
Menu

Theme