Skip to content

Commit

Permalink
propagate changes
Browse files Browse the repository at this point in the history
  • Loading branch information
noahbaculi committed Jul 20, 2023
1 parent cd9d433 commit 1d9f0fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/guitar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ impl Guitar {
num_frets -= capo;
let adjusted_tuning = tuning
.into_iter()
.map(|(string_num, pitch)| (string_num, pitch.plus_offset(capo as i8).unwrap()))
.map(|(string_num, pitch)| (string_num, pitch.plus_offset(capo as i16).unwrap()))
.collect::<BTreeMap<_, _>>();

let mut string_ranges: BTreeMap<StringNumber, Vec<Pitch>> = BTreeMap::new();
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use anyhow::Result;
use parser::{parse_lines, parse_tuning};
use parser::{create_string_tuning_offset, parse_lines, parse_tuning};
use pitch::Pitch;
use wasm_bindgen::prelude::*;

Expand Down Expand Up @@ -37,7 +37,7 @@ pub fn create_guitar_compositions(
Err(e) => return Err(JsError::new(&e.to_string())),
};

let tuning = parse_tuning(tuning_input);
let tuning = create_string_tuning_offset(parse_tuning(tuning_input));

Ok(WebArrangement {
composition: "Hi".to_owned(),
Expand Down

0 comments on commit 1d9f0fe

Please sign in to comment.