Skip to content

Commit

Permalink
start updating audio docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jackhumbert committed Jul 23, 2017
1 parent 6a3c667 commit fe113eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 2 additions & 1 deletion docs/modding_your_keyboard.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ Wherein we bind predefined songs (from [quantum/audio/song_list.h](https://githu
So now you have something called `tone_plover` for example. How do you make it play the Plover tune, then? If you look further down the keymap, you'll see this:

```
PLAY_NOTE_ARRAY(tone_plover, false, 0); // Signature is: Song name, repeat, rest style
PLAY_NOTE_ARRAY(tone_plover, false, LEGATO); // song name, repeat, rest style
PLAY_SONG(tone_plover); // song name (repeat is false, rest is STACCATO)
```

This is inside one of the macros. So when that macro executes, your keyboard plays that particular chime.
Expand Down
5 changes: 1 addition & 4 deletions quantum/quantum.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,7 @@ extern backlight_config_t backlight_config;
#define AG_SWAP_SONG SONG(AG_SWAP_SOUND)
#endif
#ifndef DEFAULT_LAYER_SONGS
#define DEFAULT_LAYER_SONGS { SONG(QWERTY_SOUND), \
SONG(COLEMAK_SOUND) \
SONG(DVORAK_SOUND) \
}
#define DEFAULT_LAYER_SONGS { }
#endif
float goodbye_song[][2] = GOODBYE_SONG;
float ag_norm_song[][2] = AG_NORM_SONG;
Expand Down

0 comments on commit fe113eb

Please sign in to comment.