Loading lessons...
Project 2: Melody & Bass
Now let's make a melody and a bass line to go over a beat.
Step 1 - A repeating bassline
Use angle brackets so the tempo stays steady:
strudel
setcpm(60)
note("<36 34 41 39>").sound("gm_acoustic_bass")
Step 2 - Add a melody with a scale
Keep the melody in scale so it always sounds good:
strudel
setcpm(60)
n("<0 2 4 5 4 2>").scale("C:major").sound("gm_electric_guitar_muted")
Step 3 - Play them together with stack
strudel
setcpm(60)
stack(
note("<36 34 41 39>").sound("gm_acoustic_bass"),
n("<0 2 4 5 4 2>").scale("C:major").sound("gm_electric_guitar_muted")
)
Step 4 - Add rhythm to the melody
strudel
setcpm(60)
stack(
note("<36 34 41 39>").sound("gm_acoustic_bass"),
n("<[0,2,4] 5 [4,2] 1 0>").scale("C:major").sound("gm_electric_guitar_muted")
)
Step 5 - Experiment!
- Change the scale to
A2:minororD:dorian. - Make the bass follow the melody's scale.
- Add a
room(0.5)to both. - Slow the melody with
/2or speed the bass with*2.
Checklist
- [ ] A bassline using
note+ angle brackets. - [ ] A melody using a scale so notes always fit.
- [ ] Both playing together with
stack. - [ ] A rhythm in the melody (sub-sequences).
TL;DR
notefor pitches,n + scalefor safe melodies.stacklayers the two voices.< >keeps tempos steady as you edit.