Skip to content

Commit

Permalink
#75 switch to sawtooth
Browse files Browse the repository at this point in the history
  • Loading branch information
wtholliday committed Jan 24, 2025
1 parent 42be683 commit a2cc164
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/synth/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ fn main() {
let frequency: MidiFrequency = note.frequency();

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

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

0 comments on commit a2cc164

Please sign in to comment.