Skip to content

Commit d80feb1

Browse files
committed
wip
1 parent 34c3de9 commit d80feb1

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

crates/notation_core/src/scale.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,8 @@ impl Scale {
300300
(Semitones::from(*note) - self.calc_do_semitones(key)).into()
301301
}
302302
pub fn calc_note(&self, key: &Key, syllable_note: &SyllableNote) -> Note {
303-
(Semitones::from(*syllable_note) + self.calc_do_semitones(key)).into()
303+
let pitch = self.calc_pitch(key, &syllable_note.syllable);
304+
Note::new(syllable_note.octave, pitch)
304305
}
305306
pub fn calc_click_note(&self, key: &Key, octave: &Octave, syllable: &Syllable) -> Note {
306307
let pitch = self.calc_pitch(key, syllable);

crates/notation_dsl/src/core/note.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ impl NoteDsl {
6969
let syllable = Syllable::from((pitch_sign.sign, pitch_name.name));
7070
Context::calc_note(octave_tweak, &syllable)
7171
} else {
72-
let octave = Context::octave(octave_tweak);
72+
let octave = Context::tweaked_octave(octave_tweak);
7373
let pitch = Pitch::new(pitch_name.name, pitch_sign.sign);
7474
Note::new(octave, pitch)
7575
}

crates/notation_midi/src/native/embedded_api.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ pub struct EmbeddedApi;
1111

1212
impl FileApi for EmbeddedApi {
1313
type File = EmbeddedFile;
14-
fn open(&mut self, filename: &Path) -> Option<Self::File> {
14+
fn open(&mut self, _filename: &Path) -> Option<Self::File> {
1515
let bytes = include_bytes!("../../assets/sblive.sf2");
1616
Some(Self::File {
1717
pos: 0,

0 commit comments

Comments
 (0)