Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a snippet from Richard Wagner 'Ride of the Valkyries' #104

Merged
merged 1 commit into from
Mar 17, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/modules/src/sound_cf2.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,11 @@ static Melody starwars = {.bpm = 120, .delay = 1, .notes = {{A3, Q}, {A3, Q}, {A
{C4,S}, {B3, S}, {C4, E}, {0, E}, {F3, E}, {Ab3, Q}, {F3, ES}, {C4, S},
{A3, Q}, {F3, ES}, {C4, S}, {A3, H}, {0, H},
REPEAT}};
static Melody valkyries = {.bpm = 140, .delay = 1, .notes = {{Gb3, Q}, {B3, Q},
{Gb3, S}, {B3, E}, {D4, Q}, {B3, Q}, {D4, Q}, {B3, S}, {D4, E}, {Gb4, Q},
{D4, Q}, {Gb4, Q}, {D4, S}, {Gb4, E}, {A4, Q}, {A3, Q}, {D4, Q}, {A3, S},
{D4, E}, {Gb4, H},
REPEAT}};

typedef void (*BuzzerEffect)(uint32_t timer, uint32_t * mi, Melody * melody);

Expand Down Expand Up @@ -305,6 +310,7 @@ static EffectCall effects[] = {
{.call = &melodyplayer, .melody = &range_slow},
{.call = &melodyplayer, .melody = &range_fast},
{.call = &melodyplayer, .melody = &starwars},
{.call = &melodyplayer, .melody = &valkyries},
{.call = &bypass},
{.call = &siren},
{.call = &tilt}
Expand Down