Guitar Chord Sequence Plugin
A Wordpress plugin that allows the user to select a pre-saved set of guitar chords from a drop down menu and generates a guitar chord sequence.
by wprevs.com · github.com/richardgourley/guitar-chord-sequence-plugin · website
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/richardgourley/guitar-chord-sequence-plugin/archive/refs/heads/master.zipA Wordpress plugin that generates buttons on a Wordpress page that display different musical keys. On clicking a button for a specific key, chord sequences of 2,3 and 4 chords are generated.
The plugin is ideal for song-writers looking for inspiration or guitarists wishing to practice chords from different musical keys.
On generating chord sequences, the code is written to start with either a root major chord OR a root minor chord. The remaining chords are then shuffled before outputting chord sequences of 2,3 or 4 chords.
SKILLS COVERED
- PHP OOP programming for Wordpress plugins.
- Localizing a PHP array to use in a JS file.
- Custom post type.
- Inserting posts on plugin activation.
- Registering activation hooks.
- Enqueuing JS and CSS files the Wordpress way.
- Gutenberg blocks - registering a block that displays the musical key buttons
- Deactivation hooks.
- Separating classes into model classes, init classes and deacivation classes.