spiffyscore

Check-in [29231e328a]
Login
Overview
SHA1:29231e328aa76fab3c029a83c52303a78e58826b
Date: 2011-10-11 15:19:14
User: brian
Comment:Played around a little with melodies and instruments
Timelines: family | ancestors | feature/abc
Downloads: Tarball | ZIP archive
Other Links: files | file ages | folders | manifest
Tags And Properties
Context
2011-10-11
15:31
[192b8b1639] Merged in rewrite of core functionality (user: brian, tags: develop)
15:19
[29231e328a] Closed-Leaf: Played around a little with melodies and instruments (user: brian, tags: feature/abc)
2011-09-22
18:30
[f653a4fa10] Added back in support for subsections (user: brian, tags: feature/abc)
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Modified cfg.orc from [9f49be1cae] to [8f705f0ccb].

    13     13       out asound
    14     14   endin
    15     15   
    16     16   instr 3
    17     17       asound foscili p4, cpspch(p5), 5, 2, 3, p9
    18     18       out asound
    19     19   endin
           20  +
           21  +instr 4
           22  +    aFMinst foscili p4, cpspch(p5), p6, p7, p8, p9
           23  +endin

Modified cfg.py from [0cb9a22d0b] to [61885bbe35].

    10     10   
    11     11   import tree
    12     12   
    13     13   random.seed(time.time())
    14     14   
    15     15   def main():
    16     16       composition = {
           17  +        "fm_test": {
           18  +            "intro": {
           19  +                "melody": {  # Instrument 'melody'
           20  +                    "score_line": "i2 %(time)f %(duration)f 7000 %(octave)d.%(note)s 2 6 5 1",
           21  +                    "octave": 8,
           22  +                    "duration": 10,
           23  +                    "grammars": {  # Notes for this instrument to use in this piece
           24  +                        "u": ["G/2 G/2 | G/4 G/4 A/4 A/4 | A/2 A/2 | G | G | A | A | A3 (w)"],
           25  +                        "w": ["E | E | F | F | G/2 G/2 | G3 (u)"],
           26  +                    },
           27  +                },
           28  +            },
           29  +        },
    17     30           "verse1": {
    18     31               "intro": {
    19     32                   "melody": {  # Instrument 'melody'
    20         -                    "score_line": "i2 %(time)f %(duration)f 7000 %(octave)d.%(note)s 2",
           33  +                    "score_line": "i2 %(time)f %(duration)f 7000 %(octave)d.%(note)s 1",
    21     34                       "octave": 8,
    22     35                       "duration": 10,
    23     36                       "grammars": {  # Notes for this instrument to use in this piece
    24         -                        "u": ["G/2 G/2 G/4 G/4 A/4 A/4 A/2 G G A A A3 (w)"],
    25         -                        "w": ["E E F F G/2 G/2 G3 (u)"],
           37  +                        "u": ["G/2 G/2 | G/4 G/4 A/4 A/4 | A/2 A/2 | G | G | A | A | A3 (w)"],
           38  +                        "w": ["E | E | F | F | G/2 G/2 | G3 (u)"],
    26     39                       },
    27     40                   },
    28     41               },
    29     42               "body": {
    30     43                   "melody": {  # Instrument 'melody'
    31         -                    "score_line": "i2 %(time)f %(duration)f 7000 %(octave)d.%(note)s 2",
           44  +                    "score_line": "i2 %(time)f %(duration)f 7000 %(octave)d.%(note)s 1",
           45  +                    "octave": 8,
           46  +                    "duration": 10,
           47  +                    "grammars": {  # Notes for this instrument to use in this piece
           48  +                        "u": ["C | G/2 G/2 | G/2 G/2 | C | B, | F' | C | F | C | B | F | (w)"],
           49  +                        "w": ["E/4 A/4 D/4 G/4 | F/4 F/4 B2 | (u)"],
           50  +                    },
           51  +                },
           52  +            },
           53  +            "outro": {
           54  +                "melody": {  # Instrument 'melody'
           55  +                    "score_line": "i2 %(time)f %(duration)f 7000 %(octave)d.%(note)s 1",
    32     56                       "octave": 8,
    33     57                       "duration": 10,
    34     58                       "grammars": {  # Notes for this instrument to use in this piece
    35         -                        "u": ["C G/2 G/2 G/2 C B, F' C F C B F (w)"],
    36         -                        "w": ["E/4 A/4 D/4 G/4 F/4 F/4 B2 (u)"],
           59  +                        "u": ["C/4 C/4 C/4 C/4 | z2"],
    37     60                       },
    38     61                   },
    39     62               },
    40     63           },
    41     64           "verse2": {
    42     65               "body": {
    43     66                   "melody": {  # Instrument 'melody'
    44         -                    "score_line": "i2 %(time)f %(duration)f 7000 %(octave)d.%(note)s 2",
           67  +                    "score_line": "i2 %(time)f %(duration)f 7000 %(octave)d.%(note)s 1",
    45     68                       "octave": 8,
    46         -                    "duration": 10,
           69  +                    "duration": 30,
    47     70                       "grammars": {  # Notes for this instrument to use in this piece
    48         -                        "u": ["C C C C F/2 F/2 F/2 (u)", "D D G/2 A/2 D D (u)"],
           71  +                        "u": ["C | C | C | C | F/2 F/2 | F/2 F/2 | (u)", "D | D | G/2 A/2 | D | D | (u)"],
    49     72                       },
    50     73                   },
    51     74                   "harmony": {  # Instrument 'melody'
    52         -                    "score_line": "i2 %(time)f %(duration)f 7000 %(octave)d.%(note)s 2",
           75  +                    "score_line": "i3 %(time)f %(duration)f 4000 %(octave)d.%(note)s 2 3 5 3",
           76  +                    "octave": 8,
           77  +                    "duration": 30,
           78  +                    "grammars": {  # Notes for this instrument to use in this piece
           79  +                        "u": ["C | C | z | C | C | z/2 F/4 F/2 F/2 | F/2 F/2 | z (u)", "D | D | G/2 A/2 | D | D | z (u)"],
           80  +                    },
           81  +                },
           82  +                "percussion": {  # Instrument 'melody'
           83  +                    "score_line": "i1 %(time)f %(duration)f 7000 %(octave)d.%(note)s %(octave)d.%(note)s 0 6",
           84  +                    "octave": 8,
           85  +                    "duration": 30,
           86  +                    "grammars": {  # Notes for this instrument to use in this piece
           87  +                        "u": ["C/4 C/4 C/4 C/4 | F/2 F/2 | F/2 F/2 | (u)", "D/4 D/4 G/4 A/4 | D | D | (v)"],
           88  +                        "v": ["C | D | E | F | E | D | C | (u)",],
           89  +                    },
           90  +                },
           91  +            },
           92  +            "outro": {
           93  +                "percussion": {  # Instrument 'melody'
           94  +                    "score_line": "i1 %(time)f %(duration)f 7000 %(octave)d.%(note)s %(octave)d.%(note)s 0 6",
    53     95                       "octave": 8,
    54         -                    "duration": 10,
           96  +                    "duration": 30,
    55     97                       "grammars": {  # Notes for this instrument to use in this piece
    56         -                        "u": ["C C C C F/2 F/2 F/2 (u)", "D D G/2 A/2 D D (u)"],
           98  +                        "u": ["C/4 C/4 C/4 C/4"],
    57     99                       },
    58    100                   },
    59    101               },
    60    102           },
    61    103       }
    62    104       print '''f1 0 512 10 1
    63    105   f2 0 8192 10 .24 .64 .88 .76 .06 .5 .34 .08
    64    106   f3 0 1025 10 1
    65    107   t 0 100
    66    108       '''
    67    109   
    68    110       section_start = 0
    69         -    for section in ["verse1", "verse2"]:
          111  +#    for section in ["verse1", "verse2"]:
          112  +    for section in ["fm_test"]:
    70    113           print "; Section " + section
    71    114           subsection_start = section_start
    72    115           section = composition[section]
    73    116           for subsection in ["intro", "body", "outro"]:
    74    117               try:
    75    118                   print "; Subsection " + subsection
    76    119                   subsection = section[subsection]

Added score.yaml version [29fd4ba47c].

            1  +---
            2  +chorus:
            3  +    core:
            4  +        rhythm:
            5  +            csound_line: i1 %(time)f %(duration)f 7000 %(octave)d.%(note)s %(octave)d.%(note)s 0 6
            6  +            max_duration: 80
            7  +            sync: timbre
            8  +            octave: 7
            9  +            sustain: 1
           10  +            grammars:
           11  +                u: 
           12  +                    - (I) (ii)/4 (ii)/4 (IV)/2 (V)2 (IV) (ii) x u
           13  +                    - (I) (vii) (III) y u
           14  +                    - (I) (v) (IV) u u
           15  +                w: (i) (VII)2 (VI)/4 (V)/4 (i)/4 (VII)2 (VI) (V) w u
           16  +                x: (III/2) (VI)/2 (III)/2 (vii)2 (i)2 (V) u
           17  +                y: (I) (vi)2 (IV) (V) y y u
           18  +
           19  +        timbre:
           20  +            csound_line: i3 %(time)f %(duration)f 2000 %(octave)d.%(note)s 2 3 5 3
           21  +            max_duration: 80
           22  +            sync: melody
           23  +            sustain: 1
           24  +            octave: 6
           25  +            grammars:
           26  +                u: 
           27  +                    - I2+ VII2 V2 VI2 I2 IV/2 V/2 III2 u
           28  +                    - I2- IV2 V2 IV I V2 III2 II2. u
           29  +
           30  +        melody:
           31  +            csound_line: i2 %(time)f %(duration)f 7000 %(octave)d.%(note)s 2
           32  +            max_duration: 80
           33  +            octave: 8
           34  +            grammars: 
           35  +                u: 
           36  +                    - I V/2 V/2 V/2 I VII
           37  +                    - IV' I IV I VII IV
           38  +                w: III/4 VI/4 II/4 V/4 VI/4 IV/4 VII2
           39  +                x: I/2 I/2 VI IV/2 V2 z I/2 I/2 VI IV/2 V

Modified test.sco from [b5abda4892] to [e27e42951e].

     1      1   f1 0 512 10 1
     2      2   f2 0 8192 10 .24 .64 .88 .76 .06 .5 .34 .08
     3      3   f3 0 1025 10 1
     4      4   t 0 100
     5      5       
     6         -; Section verse1
            6  +; Section fm_test
     7      7   ; Subsection intro
     8      8   ;Instrument melody
     9         -i2 0.000000 1.000000 7000 8.04 2
    10         -i2 1.000000 1.000000 7000 8.04 2
    11         -i2 2.000000 1.000000 7000 8.05 2
    12         -i2 3.000000 1.000000 7000 8.05 2
    13         -i2 4.000000 0.500000 7000 8.07 2
    14         -i2 4.500000 0.500000 7000 8.07 2
    15         -i2 5.000000 3.000000 7000 8.07 2
            9  +i2 0.000000 1.000000 7000 8.04 2 6 5 1
           10  +i2 1.000000 1.000000 7000 8.04 2 6 5 1
           11  +i2 2.000000 1.000000 7000 8.05 2 6 5 1
           12  +i2 3.000000 1.000000 7000 8.05 2 6 5 1
           13  +i2 4.000000 0.500000 7000 8.07 2 6 5 1
           14  +i2 4.500000 0.500000 7000 8.07 2 6 5 1
           15  +i2 5.000000 3.000000 7000 8.07 2 6 5 1
    16     16   ; Subsection body
    17         -;Instrument melody
    18         -i2 8.000000 0.250000 7000 8.04 2
    19         -i2 8.250000 0.250000 7000 8.09 2
    20         -i2 8.500000 0.250000 7000 8.02 2
    21         -i2 8.750000 0.250000 7000 8.07 2
    22         -i2 9.000000 0.250000 7000 8.05 2
    23         -i2 9.250000 0.250000 7000 8.05 2
    24         -i2 9.500000 2.000000 7000 8.11 2
    25         -; Subsection outro
    26         -; Section verse2
    27         -; Subsection intro
    28         -; Subsection body
    29         -;Instrument melody
    30         -i2 11.500000 1.000000 7000 8.00 2
    31         -i2 12.500000 1.000000 7000 8.00 2
    32         -i2 13.500000 1.000000 7000 8.00 2
    33         -i2 14.500000 1.000000 7000 8.00 2
    34         -i2 15.500000 0.500000 7000 8.05 2
    35         -i2 16.000000 0.500000 7000 8.05 2
    36         -i2 16.500000 0.500000 7000 8.05 2
    37         -;Instrument harmony
    38         -i2 11.500000 1.000000 7000 8.00 2
    39         -i2 12.500000 1.000000 7000 8.00 2
    40         -i2 13.500000 1.000000 7000 8.00 2
    41         -i2 14.500000 1.000000 7000 8.00 2
    42         -i2 15.500000 0.500000 7000 8.05 2
    43         -i2 16.000000 0.500000 7000 8.05 2
    44         -i2 16.500000 0.500000 7000 8.05 2
    45     17   ; Subsection outro