Skip to content

Commit

Permalink
Update to m8-files 0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexCharlton committed Apr 3, 2023
1 parent ec5e8d6 commit 02d46cc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 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 Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ members = ["core"]

[workspace.dependencies]
midi-msg = "0.4"
m8-files = "0.1.3"
m8-files = "0.2"
6 changes: 3 additions & 3 deletions core/src/song_to_midi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ impl TrackCtx {
}

fn change_groove(&mut self, step: &Step, song: &Song) {
if step.fx1.command == FXCommand::GRV {
if step.fx1.command_eq("GRV", song.version) {
self.groove = song.grooves[step.fx1.value as usize].clone();
}
if step.fx2.command == FXCommand::GRV {
if step.fx2.command_eq("GRV", song.version) {
self.groove = song.grooves[step.fx2.value as usize].clone();
}
if step.fx3.command == FXCommand::GRV {
if step.fx3.command_eq("GRV", song.version) {
self.groove = song.grooves[step.fx3.value as usize].clone();
}
}
Expand Down

0 comments on commit 02d46cc

Please sign in to comment.