Skip to content

Commit e5740a6

Browse files
committed
tweak midi params
1 parent 26941cd commit e5740a6

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.cargo/config.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ rustflags = ["-Clink-arg=-fuse-ld=lld", "-Zshare-generics=on", "-Zmacro-backtrac
1717

1818
[target.x86_64-pc-windows-msvc]
1919
linker = "rust-lld.exe"
20-
rustflags = ["-Zshare-generics=off", "-Zmacro-backtrace=on"]
20+
rustflags = ["-Zshare-generics=on", "-Zmacro-backtrace=on"]
2121

2222
# Optional: Uncommenting the following improves compile times, but reduces the amount of debug info to 'line number tables only'
2323
# In most cases the gains are negligible, but if you are on macos and have slow compile times you should see significant gains.

crates/notation_midi/src/midi_settings.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ impl Default for MidiSettings {
2121
Self {
2222
use_internal_synth: Self::default_use_internal_synth(),
2323
vocal_sound: GMSoundSet::Cello as u8,
24-
vocal_velocity: 90,
24+
vocal_velocity: 110,
2525
guitar_sound: GMSoundSet::AcousticGuitarSteel as u8,
26-
guitar_velocity: 100,
26+
guitar_velocity: 120,
2727
piano_sound: GMSoundSet::AcousticGrandPiano as u8,
28-
piano_velocity: 90,
28+
piano_velocity: 110,
2929
}
3030
}
3131
}

crates/notation_midi/src/native/audio_stream.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use std::sync::{Arc, Mutex};
22

33
use bevy_kira_audio::{AudioStream, Frame};
44

5-
pub const AUDIO_BUFFER_SIZE: usize = 4096 * 2;
5+
pub const AUDIO_BUFFER_SIZE: usize = 2048 * 2;
66

77
pub type AudioBuffer = [f32; AUDIO_BUFFER_SIZE];
88

0 commit comments

Comments
 (0)