Skip to content

Commit

Permalink
feat(config): add drumkit preset (#18)
Browse files Browse the repository at this point in the history
* Add drumkit preset

* style(config): format the preset

* docs(readme): add drumkit preset

---------

Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
  • Loading branch information
arda-guler and orhun committed Oct 3, 2023
1 parent 00bc615 commit 6899c65
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -62,6 +62,7 @@ There are also different presets available:
| `basic` | an alternative and more basic typewriter effect |
| `musicbox` | plays random notes like a music box |
| `ducktilo` | quack quack 🦆 |
| `drumkit` | dum, tss, cha! 🥁 |

Check warning on line 65 in README.md

View workflow job for this annotation

GitHub Actions / Lint

"dum" should be "dumb".

To list the presets:

Expand Down
17 changes: 17 additions & 0 deletions config/daktilo.toml
Expand Up @@ -73,6 +73,23 @@ key_config = [
] },
]

# Drumkit
# Dum, tss, cha!

Check warning on line 77 in config/daktilo.toml

View workflow job for this annotation

GitHub Actions / Lint

"Dum" should be "Dumb".
[[sound_preset]]
name = "drumkit"
key_config = [
{ event = "press", keys = ".*", files = [
{ path = "kick.mp3" },
{ path = "hat.mp3" },
{ path = "snare.mp3" },
{ path = "kick.mp3" },
{ path = "hat.mp3" },
{ path = "kick.mp3" },
{ path = "snare.mp3" },
{ path = "hat.mp3" },
], strategy = "sequential" },
]

# Here is how you can define your custom preset:
# [[sound_preset]]
# # Custom sound preset named "custom"
Expand Down
Binary file added sounds/hat.mp3
Binary file not shown.
Binary file added sounds/kick.mp3
Binary file not shown.
Binary file added sounds/snare.mp3
Binary file not shown.

0 comments on commit 6899c65

Please sign in to comment.