mirror of
https://github.com/storytold/soundcraft.git
synced 2026-11-23 02:50:57 +01:00
Clip List › Auto Rename… opens Rename Selected Clips for the selected clips. Name, Starting Number, Number of Places and Suffix set the names that editing gives the clips it separates from them: the name, as many zeros as Number of Places, a number counting up from Starting Number, and the suffix. The piece after each cut is the new clip and takes the next name. The piece before it keeps its name. The clips separated from one clip, and from every clip that got the scheme together, count up one number sequence. The guide does not say how Strip Silence's own Rename fields and Auto Rename combine. Here, when Strip Silence's own Rename fields are set, they name the audio pieces it cuts inside its range, and those pieces take no Auto Rename name and do not count the Auto Rename number up. In Strip and Extract, only the pieces that Strip Silence keeps take Auto Rename names, in time order, so their numbers have no gaps. clip.auto_rename takes clips, name, number, zeros and suffix, with the same limits and errors as edit.strip_silence. Without a name the clips get no scheme. Cut and Copy keep a copy of the copied clips' schemes, and a paste uses the session's scheme with the same id or adds the copy under a new key, so a pasted copy keeps its names after an undo or in another session. Saved sessions hold the schemes, and opening a session repairs them and drops the ones no clip uses. Import Session Data brings them in under new keys. Clips placed from a clip group file get no scheme.
33 lines
1.3 KiB
Rust
33 lines
1.3 KiB
Rust
//! The SoundCraft session document.
|
|
//!
|
|
//! A [`Session`] is pure data: tracks with playlists of clips, the mixer (inserts, sends, routing,
|
|
//! automation), tempo/meter, memory locations and groups. Audio sample data lives in
|
|
//! [`SourcePool`] behind `Arc`s, so cloning a session for undo is cheap.
|
|
#![deny(clippy::unwrap_used, clippy::expect_used, clippy::panic, clippy::unimplemented, clippy::todo, clippy::unreachable)]
|
|
|
|
mod automation;
|
|
pub mod b64;
|
|
mod clip;
|
|
mod ids;
|
|
mod markers;
|
|
mod mixer;
|
|
mod session;
|
|
mod source;
|
|
mod track;
|
|
|
|
pub use automation::{AutoParam, AutomationLane, AutomationMode, AutomationPoint};
|
|
pub use clip::{Clip, ClipContent, Fade, FadeShape};
|
|
pub use ids::{BusId, ClipId, GroupId, MarkerId, SourceId, TrackId};
|
|
pub use markers::{Group, MarkerKind, MemoryLocation};
|
|
pub use mixer::{
|
|
Bus, ChannelFormat, INSERT_SLOTS, Insert, Mixer, OutputPath, Route, SEND_SLOTS, SendSlot, Speaker, SurroundPan, fader_db_to_pos, fader_pos_to_db,
|
|
};
|
|
pub use session::{
|
|
AutoName, BitDepthSetting, EditMode, EditState, FEET_FRAMES_START, MAX_COMMENT_CHARS, MAX_NAME_CHARS, SESSION_EXTENSION, Session, SessionError,
|
|
Tool, TrackView, ZoomState, ZoomToggle, truncate_chars,
|
|
};
|
|
pub use source::{Source, SourceAudio, SourcePool, VideoSource};
|
|
pub use track::{Playlist, TRACK_COLORS, Track, TrackHeight, TrackKind};
|
|
|
|
pub use soundcraft_time as time;
|