SPB Git

Repository Public

pc_bossa.sonata 2.9 KB 111 lines

1// ORIX Sonata2// File: Examples/pc_bossa.sonata3// Description: A bossa nova chorus: nylon guitar comping the syncopated two-bar pattern over a root-fifth bass, rim clicks on the bossa clave, and a flute melody floating on top.4//5// Author: Simon-Pierre Boucher6// Contact: contact@spboucher.ai7//8// category: Pieces9// title: Bossa10// teaches: syncopated comping as a pattern, bass and chord in one guitar track with voices, a full small form11//12// expect: notes 36513// expect: tracks 414// expect: duration 31.3043s15// expect: deterministic16// Two bars of the classic comping rhythm on one chord, thumb and fingers in two voices.17pattern comp(root: Pitch, upper: Chord) {18    voice {19        play root duration 3/820        play root duration 1/821        play root + 7st duration 3/822        play root + 7st duration 1/823        play root duration 3/824        play root duration 1/825        play root + 7st duration 1/226    }27    voice {28        chord upper duration 1/4 velocity 0.5529        rest 1/830        chord upper duration 1/4 velocity 0.5531        rest 1/832        chord upper duration 1/4 velocity 0.5533        rest 1/834        chord upper duration 1/8 velocity 0.5535        rest 1/836        chord upper duration 1/4 velocity 0.5537        rest 3/838    }39}4041composition "Bossa" {42    tempo 138bpm43    key F major4445    instrument guitar: NylonGuitar {46        gain -4dB47        pan -0.248        comp(F2, [A3, C4, E4])49        comp(G2, [F3, B3, D4])50        comp(G2, [F3, Bb3, D4])51        comp(C3, [E3, Bb3, D4])52        comp(F2, [A3, C4, E4])53        comp(D2, [F#3, C4, E4])54        comp(G2, [F3, Bb3, D4])55        comp(C3, [E3, Bb3, C4])56        chord [F2, C3, A3, C4, E4, G4] duration 2bars57        effects {58            reverb room(mix: 0.15)59        }60    }6162    instrument rim: Woodblock {63        gain -14dB64        pan 0.465        repeat 8 {66            // Bossa clave over two bars of sixteen eighths.67            for hit in [1, 0, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1, 0, 0] {68                if hit == 1 {69                    play G5 duration 1/8 velocity 0.670                } else {71                    rest 1/872                }73            }74        }75    }7677    instrument shaker: ClosedHat {78        gain -19dB79        pan -0.480        repeat 128 {81            play F#2 duration 1/8 velocity 0.482        }83    }8485    instrument flute: Flute {86        gain -8dB87        pan 0.288        rest 2bars89        play A5 duration 3/490        play G5 duration 1/491        play G5 duration 1/1 tie92        play G5 duration 1/293        play F5 duration 1/494        play D5 duration 1/495        play E5 duration 2bars96        rest 1/297        play C5 duration 1/498        play E5 duration 1/499        play A5 duration 3/4100        play G5 duration 1/4101        play F#5 duration 2bars102        play G5 duration 3/4103        play F5 duration 1/4104        play D5 duration 1/1105        play E5 duration 2bars106        effects {107            reverb hall(mix: 0.2)108        }109    }110}111
Files main
Menu

Theme