Skip to content

Commit

Permalink
Use latest clip engine
Browse files Browse the repository at this point in the history
  • Loading branch information
helgoboss committed Mar 2, 2024
1 parent f922781 commit 8c90c29
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 9 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion doc/playtime.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
* At the moment, Playtime 2 is a live instrument, so it's intended to be used with buffer sizes that don't introduce more than 10 or 11ms of latency.
* When using it with higher buffer sizes, the following effects may occur:
** When triggering audio clips on a track that contains FX which introduces latency, the audio will be delayed
** Triggering MIDI clips will lead to unpleasant delays
** Triggering MIDI clips will lead to unpleasant delays if the virtual instrument FX introduces latency
* Behavior with high buffer sizes might improve in future
2 changes: 1 addition & 1 deletion main/src/infrastructure/proto/hub.rs
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ mod playtime_impl {
let bar_quantization = EvenQuantization::ONE_BAR;
let next_bar =
timeline.next_quantized_pos_at(pos, bar_quantization, Laziness::EagerForNextPos);
// TODO-high-ms4 We are mainly interested in beats relative to the bar in order to get a
// TODO-high-ms6 We are mainly interested in beats relative to the bar in order to get a
// typical position display and a useful visual metronome. It's not super urgent because
// at least with the steady timeline, the app can derive a good metronome view because
// of the way the steady timeline is constructed. However, it gets wrong as soon as we
Expand Down
6 changes: 3 additions & 3 deletions main/src/infrastructure/proto/playtime_request_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ impl PlaytimeProtoRequestHandler {
TriggerSlotMainOptions {
stop_column_if_slot_empty: false,
allow_start_stop: true,
/// Activating from GUI side ... no.
// Activating from GUI side ... no.
allow_activate: false,
},
),
Expand All @@ -85,7 +85,7 @@ impl PlaytimeProtoRequestHandler {
TriggerSlotMainOptions {
stop_column_if_slot_empty: false,
allow_start_stop: true,
/// Activating from GUI side ... no.
// Activating from GUI side ... no.
allow_activate: false,
},
),
Expand Down Expand Up @@ -479,7 +479,7 @@ impl PlaytimeProtoRequestHandler {
) -> Result<Response<Empty>, Status> {
let db = Db::try_from(req.db).map_err(|e| Status::invalid_argument(e.to_string()))?;
let kind = MatrixVolumeKind::try_from(req.kind)
.map_err(|e| Status::invalid_argument("unknown matrix volume kind"))?;
.map_err(|_| Status::invalid_argument("unknown matrix volume kind"))?;
self.handle_matrix_command(&req.matrix_id, |matrix| {
match kind {
MatrixVolumeKind::Master => {
Expand Down
2 changes: 1 addition & 1 deletion playtime-clip-engine
6 changes: 3 additions & 3 deletions resources/api/luau/playtime.luau
Original file line number Diff line number Diff line change
Expand Up @@ -1018,10 +1018,10 @@ function module.ClipAudioSettings(value: ClipAudioSettings): ClipAudioSettings
end

export type ClipMidiSettings = {
source_reset_settings: MidiResetMessageRange,
section_reset_settings: MidiResetMessageRange,
loop_reset_settings: MidiResetMessageRange,
interaction_reset_settings: MidiResetMessageRange,
loop_reset_settings: MidiResetMessageRange,
section_reset_settings: MidiResetMessageRange,
source_reset_settings: MidiResetMessageRange,
}
--- Creates a ClipMidiSettings value.
function module.ClipMidiSettings(value: ClipMidiSettings): ClipMidiSettings
Expand Down

0 comments on commit 8c90c29

Please sign in to comment.