Skip to content

Commit a9e0cae

Browse files
committed
Fix some tests
1 parent e28ca6b commit a9e0cae

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

caw/examples/electric_organ_level_1.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ fn virtual_key_events(
102102
let trig = Sig(trig);
103103
trig.divide(32).map_mut(move |t| {
104104
let inversion = Inversion::InOctave {
105-
octave_base: note::A2,
105+
octave_base: note::A_2,
106106
};
107107
let mut events = KeyEvents::empty();
108108
if t {
@@ -151,7 +151,7 @@ fn virtual_key_events(
151151
fn virtual_key_events_bass(
152152
trig: impl SigT<Item = bool>,
153153
) -> Sig<impl SigT<Item = KeyEvents>> {
154-
let notes = [note::C2, note::B2, note::F2, note::G2];
154+
let notes = [note::C_2, note::B_2, note::F_2, note::G_2];
155155
struct State {
156156
index: usize,
157157
}

caw/examples/electric_organ_level_2.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ fn virtual_key_events(
103103
let trig = Sig(trig);
104104
trig.divide(32).map_mut(move |t| {
105105
let inversion = Inversion::InOctave {
106-
octave_base: note::A2,
106+
octave_base: note::A_2,
107107
};
108108
let mut events = KeyEvents::empty();
109109
if t {
@@ -152,7 +152,7 @@ fn virtual_key_events(
152152
fn virtual_key_events_bass(
153153
trig: impl SigT<Item = bool>,
154154
) -> Sig<impl SigT<Item = KeyEvents>> {
155-
let notes = [note::C2, note::E2, note::F2, note::F2];
155+
let notes = [note::C_2, note::E_2, note::F_2, note::F_2];
156156
struct State {
157157
index: usize,
158158
}

caw/examples/electric_organ_menu.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ fn virtual_key_events(
128128
let mut state = State { index: 0 };
129129
let trig = Sig(trig);
130130
trig.divide(32).map_mut(move |t| {
131-
let octave_base = note::A2;
131+
let octave_base = note::A_2;
132132
let mut events = KeyEvents::empty();
133133
if t {
134134
if state.index > 0 {
@@ -164,7 +164,7 @@ fn virtual_key_events(
164164
fn virtual_key_events_bass(
165165
trig: impl SigT<Item = bool>,
166166
) -> Sig<impl SigT<Item = KeyEvents>> {
167-
let notes = [note::C2, note::C2, note::G2];
167+
let notes = [note::C_2, note::C_2, note::G_2];
168168
struct State {
169169
index: usize,
170170
}

0 commit comments

Comments
 (0)