Index: cfg.orc ================================================================== --- cfg.orc +++ cfg.orc @@ -1,43 +1,74 @@ sr=44100 ksmps=20 nchnls=1 -gifn ftgen 105, 0, 524288, -1, "samples/bass/1.05.wav", 0, 0, 1 ; Middle C -gifn ftgen 106, 0, 524288, -1, "samples/bass/1.06.wav", 0, 0, 1 ; Middle C -gifn ftgen 107, 0, 524288, -1, "samples/bass/1.07.wav", 0, 0, 1 ; Middle C -gifn ftgen 108, 0, 524288, -1, "samples/bass/1.08.wav", 0, 0, 1 ; Middle C -gifn ftgen 109, 0, 524288, -1, "samples/bass/1.09.wav", 0, 0, 1 ; Middle C -gifn ftgen 110, 0, 524288, -1, "samples/bass/1.10.wav", 0, 0, 1 ; Middle C -gifn ftgen 111, 0, 524288, -1, "samples/bass/1.11.wav", 0, 0, 1 ; Middle C -gifn ftgen 200, 0, 524288, -1, "samples/bass/2.01.wav", 0, 0, 1 ; Middle C -gifn ftgen 201, 0, 524288, -1, "samples/bass/2.02.wav", 0, 0, 1 ; Middle C -gifn ftgen 202, 0, 524288, -1, "samples/bass/2.03.wav", 0, 0, 1 ; Middle C -gifn ftgen 203, 0, 524288, -1, "samples/bass/2.04.wav", 0, 0, 1 ; Middle C -gifn ftgen 204, 0, 524288, -1, "samples/bass/2.05.wav", 0, 0, 1 ; Middle C -gifn ftgen 206, 0, 524288, -1, "samples/bass/2.06.wav", 0, 0, 1 ; Middle C -gifn ftgen 207, 0, 524288, -1, "samples/bass/2.07.wav", 0, 0, 1 ; Middle C -gifn ftgen 208, 0, 524288, -1, "samples/bass/2.08.wav", 0, 0, 1 ; Middle C -gifn ftgen 209, 0, 524288, -1, "samples/bass/2.09.wav", 0, 0, 1 ; Middle C -gifn ftgen 210, 0, 524288, -1, "samples/bass/2.10.wav", 0, 0, 1 ; Middle C -gifn ftgen 211, 0, 524288, -1, "samples/bass/2.11.wav", 0, 0, 1 ; Middle C -gifn ftgen 300, 0, 524288, -1, "samples/bass/3.00.wav", 0, 0, 1 ; Middle C -gifn ftgen 301, 0, 524288, -1, "samples/bass/3.01.wav", 0, 0, 1 ; Middle C -gifn ftgen 302, 0, 524288, -1, "samples/bass/3.02.wav", 0, 0, 1 ; Middle C -gifn ftgen 303, 0, 524288, -1, "samples/bass/3.03.wav", 0, 0, 1 ; Middle C -gifn ftgen 304, 0, 524288, -1, "samples/bass/3.04.wav", 0, 0, 1 ; Middle C -gifn ftgen 305, 0, 524288, -1, "samples/bass/3.05.wav", 0, 0, 1 ; Middle C -gifn ftgen 306, 0, 524288, -1, "samples/bass/3.06.wav", 0, 0, 1 ; Middle C -gifn ftgen 307, 0, 524288, -1, "samples/bass/3.07.wav", 0, 0, 1 ; Middle C -gifn ftgen 308, 0, 524288, -1, "samples/bass/3.08.wav", 0, 0, 1 ; Middle C -gifn ftgen 309, 0, 524288, -1, "samples/bass/3.09.wav", 0, 0, 1 ; Middle C -gifn ftgen 310, 0, 524288, -1, "samples/bass/3.10.wav", 0, 0, 1 ; Middle C -gifn ftgen 311, 0, 524288, -1, "samples/bass/3.11.wav", 0, 0, 1 ; Middle C - instr 3 inum = p5*100 - asig loscil 1, 1, inum, 1 + if inum=105 then + asig diskin2 "samples/bass/1.05.wav", 1 + elseif inum=106 then + asig diskin2 "samples/bass/1.06.wav", 1 + elseif inum=107 then + asig diskin2 "samples/bass/1.07.wav", 1 + elseif inum=108 then + asig diskin2 "samples/bass/1.08.wav", 1 + elseif inum=108 then + asig diskin2 "samples/bass/1.09.wav", 1 + elseif inum=110 then + asig diskin2 "samples/bass/1.10.wav", 1 + elseif inum=111 then + asig diskin2 "samples/bass/1.11.wav", 1 + elseif inum=200 then + asig diskin2 "samples/bass/2.00.wav", 1 + elseif inum=201 then + asig diskin2 "samples/bass/2.01.wav", 1 + elseif inum=202 then + asig diskin2 "samples/bass/2.02.wav", 1 + elseif inum=203 then + asig diskin2 "samples/bass/2.03.wav", 1 + elseif inum=204 then + asig diskin2 "samples/bass/2.04.wav", 1 + elseif inum=205 then + asig diskin2 "samples/bass/2.05.wav", 1 + elseif inum=206 then + asig diskin2 "samples/bass/2.06.wav", 1 + elseif inum=207 then + asig diskin2 "samples/bass/2.07.wav", 1 + elseif inum=208 then + asig diskin2 "samples/bass/2.08.wav", 1 + elseif inum=209 then + asig diskin2 "samples/bass/2.09.wav", 1 + elseif inum=210 then + asig diskin2 "samples/bass/2.10.wav", 1 + elseif inum=211 then + asig diskin2 "samples/bass/2.11.wav", 1 + elseif inum=300 then + asig diskin2 "samples/bass/3.00.wav", 1 + elseif inum=301 then + asig diskin2 "samples/bass/3.01.wav", 1 + elseif inum=302 then + asig diskin2 "samples/bass/3.02.wav", 1 + elseif inum=303 then + asig diskin2 "samples/bass/3.03.wav", 1 + elseif inum=304 then + asig diskin2 "samples/bass/3.04.wav", 1 + elseif inum=305 then + asig diskin2 "samples/bass/3.05.wav", 1 + elseif inum=306 then + asig diskin2 "samples/bass/3.06.wav", 1 + elseif inum=307 then + asig diskin2 "samples/bass/3.07.wav", 1 + elseif inum=308 then + asig diskin2 "samples/bass/3.08.wav", 1 + elseif inum=309 then + asig diskin2 "samples/bass/3.09.wav", 1 + elseif inum=310 then + asig diskin2 "samples/bass/3.10.wav", 1 + elseif inum=311 then + asig diskin2 "samples/bass/3.11.wav", 1 + endif outs asig endin instr 1 asound pluck p4, cpspch(p5), cpspch(p6), p7, p8 p9 p10 Index: spiffyscore.py ================================================================== --- spiffyscore.py +++ spiffyscore.py @@ -103,29 +103,29 @@ }, }, }, "sync_test": { "body": { - "lead_instr": { # Instrument 'melody' - "score_line": "i1 %(time)f %(duration)f 7000 %(octave)d.%(note)s %(octave)d.%(note)s 0 6", - "octave": 8, - "duration": 30, - "grammars": { # Notes for this instrument to use in this piece - "u": ["A/4, B/4, C/4 D/4 (u)", "D/4' D/4' D/4' D/4' (v)"], - "v": ["C/4 C/4 C/4 C/4 (w)"], - "w": ["E/4 F/4 E/4 F/4 (u)"], - }, - }, +# "lead_instr": { # Instrument 'melody' +# "score_line": "i1 %(time)f %(duration)f 7000 %(octave)d.%(note)s %(octave)d.%(note)s 0 6", +# "octave": 8, +# "duration": 30, +# "grammars": { # Notes for this instrument to use in this piece +# "u": ["A/4, B/4, C/4 D/4 (u)", "D/4' D/4' D/4' D/4' (v)"], +# "v": ["C/4 C/4 C/4 C/4 (w)"], +# "w": ["E/4 F/4 E/4 F/4 (u)"], +# }, +# }, "follow_instr": { # Instrument 'melody' "score_line": "i3 %(time)f %(duration)f 7000 %(octave)d.%(note)s", # "sync": "lead_instr", "octave": 2, "duration": 30, "grammars": { # Notes for this instrument to use in this piece - "u": ["E F G E (u)"], - "v": ["G A A A (e)"], - "e": ["B' A' G' A' (v)"], + "u": ["E F G E (v)"], + "v": ["G A A A (e)", "G A A A (v)"], + "e": ["B A G A (v)"], }, }, }, }, } DELETED todo.org Index: todo.org ================================================================== --- todo.org +++ /dev/null @@ -1,37 +0,0 @@ -* Features [4/10] -- [X] Top-down composition -- [ ] Coordinate the melody and rhythm -- [X] Set maximum song length of movement per instrument -- [ ] Set minimum song length of movement per instrument -- [ ] Need to support all chord types -- [X] Doesn't handle rest notes -- [ ] Handle full ABC BNF (yeah, right, that's gonna happen...) -- [X] Set instrument octave in score file -- [ ] Output score to separate file -- [ ] Support parallel voices - ensure e.g. a certain chord progression is always - accompanied by a certain melody -- [ ] Syncopation -- [ ] Sustain option for notes (give score notation a sustain symbol, and use it to set how long after the notes's duration to keep holding. With sustain, the next note's start time isn't done by when the current note ends. - -* Bugs [5/6] -- [X] TLD resets clock for each movement -- [X] TLD doesn't accept an ordering for the movements -- [X] Doesn't handle minor chords -- [X] Calculated duration is absolute, not relative to BPM -- [X] Chords don't respect octaves -- [ ] Whole notes not held for proper duration - -* Structure [1/7] -- [ ] Chords should be composed of Notes, not ordinary arrays -- [ ] There should be a Musical_Phrase object that holds phrases (and sets of - phrases), and allows them to nest -- [ ] Does each instrument need a score parameter if the grammars are non-terminating? -- [ ] Duration should be in beats, not seconds. This ensures movements don't - end in the middle of a phrase. -- [ ] Generate score with proper generation tools, not this string-replace nonsense -- [X] Store csound score lines with instruments -- [ ] Upgrade from simple string substitution for the score to something - list-based (maybe). Idea is to keep musical phrases intact in the event of a - truncation of the score. Also, if done right, no need for retroactive length - parsing- a measure is has a specific length, which is known at - generation-time, thus solving the length limit problem.