Skip to content

Commit a2cc164

Browse files
committed
#75 switch to sawtooth
1 parent 42be683 commit a2cc164

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/synth/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ fn main() {
3434
let frequency: MidiFrequency = note.frequency();
3535

3636
// Create an audio source for the note.
37-
let audio_source = Oscillator::sine_wave(frequency).amplify(1.0);
37+
let audio_source = Oscillator::sawtooth_wave(frequency).amplify(1.0);
3838

3939
// Get the note id (u8) if you need it. 0 is the lowest note. 127 is the highest note.
4040
let source_id: MidiNoteId = note.id();

0 commit comments

Comments
 (0)