Skip to content

Commit

Permalink
#1108 Add pitch adjustment for audio clips
Browse files Browse the repository at this point in the history
  • Loading branch information
helgoboss committed Aug 19, 2024
1 parent 2511e46 commit 57ce73e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
16 changes: 8 additions & 8 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion playtime-api/src/persistence/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ use camino::Utf8PathBuf;
use chrono::NaiveDateTime;
use derive_more::Display;
use num_enum::{IntoPrimitive, TryFromPrimitive};
use reaper_common_types::{Bpm, Db, DurationInBeats, DurationInSeconds};
use reaper_common_types::{Bpm, Db, DurationInBeats, DurationInSeconds, Semitones};
use serde::{Deserialize, Serialize};
use strum::EnumIter;

Expand Down Expand Up @@ -1217,6 +1217,8 @@ pub struct Clip {
/// rarely changes.
#[serde(alias = "section")]
pub fixed_section: Section,
#[serde(default)]
pub pitch_shift: Semitones,
pub audio_settings: ClipAudioSettings,
pub midi_settings: ClipMidiSettings,
// /// Defines the total amount of time this clip should consume and where within that range the
Expand Down
2 changes: 1 addition & 1 deletion playtime-clip-engine

0 comments on commit 57ce73e

Please sign in to comment.