Skip to content

Commit 9d69107

Browse files
authored
Merge pull request #6 from brylie/abcjs-example
Add ABC notation player for C Major and D Dorian scales
2 parents c5eecfb + bbdc428 commit 9d69107

File tree

5 files changed

+59
-0
lines changed

5 files changed

+59
-0
lines changed

package-lock.json

Lines changed: 23 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"@iconify-json/simple-icons": "^1.2.66",
1919
"@tailwindcss/vite": "^4.1.13",
2020
"astro": "^5.16.6",
21+
"astro-abcjs": "^1.1.0",
2122
"astro-embed": "^0.12.0",
2223
"astro-icon": "^1.1.5",
2324
"markdown-it": "^14.1.0",
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
import AbcjsPlayer from "astro-abcjs/AbcjsPlayer.astro";
3+
---
4+
5+
<AbcjsPlayer
6+
notation={`X:1\nT:C Major\nM:4/4\nL:1/4\nK:C\nC D E F | G A B c |`}
7+
showControls={true}
8+
responsive={true}
9+
abcjsVersion="6.6.0"
10+
/>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
import AbcjsPlayer from "astro-abcjs/AbcjsPlayer.astro";
3+
---
4+
5+
<AbcjsPlayer
6+
notation={`X:1\nT:D Dorian\nM:4/4\nL:1/4\nK:Ddor\nD E F G | A B c d |`}
7+
showControls={true}
8+
responsive={true}
9+
abcjsVersion="6.6.0"
10+
/>

src/content/blog/parallel-major-chords.md renamed to src/content/blog/parallel-major-chords.mdx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@ keywords: ["music theory", "chords", "composition", "harmony", "parallel majors"
99

1010
Have you ever wondered how some of your favorite songs create such emotionally rich and unexpected chord progressions? Many composers and songwriters use a powerful technique that involves borrowing chords from different scales or modes. Today, we'll explore a specific approach called "parallel majors" that can immediately add new colors to your compositions.
1111

12+
import CMajorScale from '../../components/scales/CMajorScale.astro';
13+
import DDorianMode from '../../components/scales/DDorianMode.astro';
14+
15+
## Parallel Majors Example (ABC Notation)
16+
17+
Have you ever wondered how some of your favorite songs create such emotionally rich and unexpected chord progressions? Many composers and songwriters use a powerful technique that involves borrowing chords from different scales or modes. Today, we'll explore a specific approach called "parallel majors" that can immediately add new colors to your compositions.
18+
1219
## What Are Parallel Majors?
1320

1421
Before diving into parallel majors, let's establish some foundational concepts.
@@ -17,6 +24,14 @@ Before diving into parallel majors, let's establish some foundational concepts.
1724

1825
A mode is essentially a scale that starts on a different note of a parent major scale. For example, if we take the C major scale (C, D, E, F, G, A, B) but start on D instead, we get D Dorian mode (D, E, F, G, A, B, C).
1926

27+
---
28+
29+
<CMajorScale />
30+
31+
<DDorianMode />
32+
33+
---
34+
2035
The seven modes of the major scale are:
2136

2237
1. Ionian (major)

0 commit comments

Comments
 (0)