Overview
Comment: | Now handles chords |
---|---|
Timelines: | family | ancestors | descendants | both | ply |
Files: | files | file ages | folders |
SHA1: |
5aa14570f13983c6b441c37c2ebc5587 |
User & Date: | spiffytech@gmail.com on 2010-11-13 00:12:38 |
Other Links: | branch diff | manifest | tags |
Context
2010-11-13
| ||
08:26 | Added basic ABC tokenizing via the PLY module check-in: 729263ecd0 user: spiffytech@gmail.com tags: ply | |
00:12 | Now handles chords check-in: 5aa14570f1 user: spiffytech@gmail.com tags: ply | |
2010-11-12
| ||
20:30 | Now generates scores until it makes one 50 notes ling check-in: e425f3d6c2 user: spiffytech@gmail.com tags: ply | |
Changes
Modified cfg.py from [d8090f9de3] to [43fd8f5bb3].
1 2 3 4 5 6 7 8 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 | + + - - - - - + + + + + + + + + + - + - - + - - + + - + - + + - - + + + + + + + + + + | #!/usr/bin/env python import os import random import sys import time random.seed(time.time()) def main(): key = "C" |
︙ | |||
80 81 82 83 84 85 86 | 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 | + + + + + + - - - + + + | "A": "09", "A#": "10", "B": "11", } t = 0 csound_score = [] for token in score: if isinstance(token, list): # Chords for note in token: note = csound_note_values[note] csound_score.append("i2 %(time)f 1 7000 %(octave)d.%(note)s %(octave)d.%(note)s 0 6" % {"time": t, "octave": random.choice([7,8]), "note": note}) t += 1 else: # Individual notes |
Modified test.sco from [9253ead855] to [3dafd59328].
1 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + | f1 0 256 10 1 0 3 ; sine wave function table |