summaryrefslogtreecommitdiffstats
path: root/Modding-your-keyboard.md
diff options
context:
space:
mode:
authorJack Humbert <jack.humb@gmail.com>2017-05-16 04:29:17 +0200
committerJack Humbert <jack.humb@gmail.com>2017-05-16 04:29:17 +0200
commit997a847f8cd3579824009822a125e64507cf6595 (patch)
tree42eb90bc63ac63039cbef3efcc8332f4e95db8a5 /Modding-your-keyboard.md
parent60daffbe5df7284e83e092c26bb6b4b32a61f33a (diff)
downloadqmk_firmware-997a847f8cd3579824009822a125e64507cf6595.tar.gz
qmk_firmware-997a847f8cd3579824009822a125e64507cf6595.tar.xz
update links
Diffstat (limited to 'Modding-your-keyboard.md')
-rw-r--r--Modding-your-keyboard.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modding-your-keyboard.md b/Modding-your-keyboard.md
index 43cc81945..9d3e0319d 100644
--- a/Modding-your-keyboard.md
+++ b/Modding-your-keyboard.md
@@ -3,7 +3,7 @@
Your keyboard can make sounds! If you've got a Planck, Preonic, or basically any keyboard that allows access to the C6 port, you can hook up a simple speaker and make it beep. You can use those beeps to indicate layer transitions, modifiers, special keys, or just to play some funky 8bit tunes.
-The audio code lives in [quantum/audio/audio.h](/quantum/audio/audio.h) and in the other files in the audio directory. It's enabled by default on the Planck [stock keymap](/keyboards/planck/keymaps/default/keymap.c). Here are the important bits:
+The audio code lives in [quantum/audio/audio.h](https://github.com/qmk/qmk_firmware/blob/master/quantum/audio/audio.h) and in the other files in the audio directory. It's enabled by default on the Planck [stock keymap](https://github.com/qmk/qmk_firmware/blob/master/keyboards/planck/keymaps/default/keymap.c). Here are the important bits:
```
#include "audio.h"
@@ -36,7 +36,7 @@ float music_scale[][2] = SONG(MUSIC_SCALE_SOUND);
float goodbye[][2] = SONG(GOODBYE_SOUND);
```
-Wherein we bind predefined songs (from [quantum/audio/song_list.h](/quantum/audio/song_list.h)) into named variables. This is one optimization that helps save on memory: These songs only take up memory when you reference them in your keymap, because they're essentially all preprocessor directives.
+Wherein we bind predefined songs (from [quantum/audio/song_list.h](https://github.com/qmk/qmk_firmware/blob/master/quantum/audio/song_list.h)) into named variables. This is one optimization that helps save on memory: These songs only take up memory when you reference them in your keymap, because they're essentially all preprocessor directives.
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: