Skip to content

Commit

Permalink
Integrate latest clip engine
Browse files Browse the repository at this point in the history
  • Loading branch information
helgoboss committed Feb 24, 2024
1 parent d1b4ca6 commit 8c66856
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions base/src/sound_player.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ use anyhow::{ensure, Context};
use reaper_high::Reaper;
use reaper_low::raw;
use reaper_medium::{
FlexibleOwnedPcmSource, Handle, MeasureAlignment, MidiImportBehavior, OwnedPcmSource,
OwnedPreviewRegister, PositionInSeconds, ReaperMutex, ReaperMutexGuard, ReaperVolumeValue,
FlexibleOwnedPcmSource, Handle, MeasureAlignment, MidiImportBehavior, OwnedPreviewRegister,
PositionInSeconds, ReaperMutex, ReaperMutexGuard, ReaperVolumeValue,
};
use std::cell::Cell;
use std::path::Path;
Expand Down
2 changes: 1 addition & 1 deletion playtime-clip-engine
4 changes: 4 additions & 0 deletions resources/api/luau/playtime.luau
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export type Matrix = {
clip_play_settings: MatrixClipPlaySettings,
clip_record_settings: MatrixClipRecordSettings,
common_tempo_range: TempoRange,
activate_slot_on_trigger: boolean?,
click_volume: Db?,
color_palette: ColorPalette?,
content_quantization_settings: ContentQuantizationSettings?,
Expand Down Expand Up @@ -130,14 +131,17 @@ function module.SignedMatrix(value: SignedMatrix): SignedMatrix
return value
end

--- This is redundant (already contained in [`Matrix`]) but used to transfer settings only.
export type MatrixSettings = {
clip_play_settings: MatrixClipPlaySettings,
clip_record_settings: MatrixClipRecordSettings,
common_tempo_range: TempoRange,
color_palette: ColorPalette,
content_quantization_settings: ContentQuantizationSettings,
activate_slot_on_trigger: boolean,
}
--- Creates a MatrixSettings value.
--- This is redundant (already contained in [`Matrix`]) but used to transfer settings only.
function module.MatrixSettings(value: MatrixSettings): MatrixSettings
return value
end
Expand Down

0 comments on commit 8c66856

Please sign in to comment.