Skip to content

Commit

Permalink
Merge pull request #104 from cstanke/ecs3_cf2_sound
Browse files Browse the repository at this point in the history
Added a snippet from Richard Wagner 'Ride of the Valkyries'
  • Loading branch information
krichardsson committed Mar 17, 2016
2 parents 66aff47 + af72b4c commit 89d9e06
Showing 1 changed file with 6 additions and 0 deletions.
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

0 comments on commit 89d9e06

Please sign in to comment.