Several fixes and new example
This commit is contained in:
697
examples/enchanted.json
Normal file
697
examples/enchanted.json
Normal file
@ -0,0 +1,697 @@
|
||||
{
|
||||
"metadata": {
|
||||
"title": "Enchanted",
|
||||
"artist": "Enchanted",
|
||||
"description": "A waltx in 3/4 time."
|
||||
},
|
||||
"composition": {
|
||||
"key": "Bb3",
|
||||
"scale": "major",
|
||||
"tempo": 132,
|
||||
"time_signature": {
|
||||
"numerator": 3,
|
||||
"denominator": 4
|
||||
},
|
||||
"measures": 64,
|
||||
"complexity": 0.8,
|
||||
"harmony_density": 0.9,
|
||||
"rhythmic_density": 0.6
|
||||
},
|
||||
"tracks": [
|
||||
{
|
||||
"name": "piano_melody",
|
||||
"instrument": "piano",
|
||||
"volume": 0.8,
|
||||
"pattern": {
|
||||
"type": "custom",
|
||||
"loop_length": 96.0,
|
||||
"steps": [
|
||||
{
|
||||
"time": 0.0,
|
||||
"note": "D5",
|
||||
"duration": 1.5,
|
||||
"velocity": 0.6
|
||||
},
|
||||
{
|
||||
"time": 1.5,
|
||||
"note": "Eb5",
|
||||
"duration": 1.0,
|
||||
"velocity": 0.5
|
||||
},
|
||||
{
|
||||
"time": 2.5,
|
||||
"note": "F5",
|
||||
"duration": 0.5,
|
||||
"velocity": 0.6
|
||||
},
|
||||
{
|
||||
"time": 3.0,
|
||||
"note": "G5",
|
||||
"duration": 2.0,
|
||||
"velocity": 0.7
|
||||
},
|
||||
{
|
||||
"time": 5.0,
|
||||
"note": "F5",
|
||||
"duration": 1.0,
|
||||
"velocity": 0.6
|
||||
},
|
||||
{
|
||||
"time": 6.0,
|
||||
"note": "Eb5",
|
||||
"duration": 1.5,
|
||||
"velocity": 0.5
|
||||
},
|
||||
{
|
||||
"time": 7.5,
|
||||
"note": "D5",
|
||||
"duration": 1.5,
|
||||
"velocity": 0.6
|
||||
},
|
||||
{
|
||||
"time": 9.0,
|
||||
"note": "C5",
|
||||
"duration": 2.0,
|
||||
"velocity": 0.6
|
||||
},
|
||||
{
|
||||
"time": 11.0,
|
||||
"note": "Bb4",
|
||||
"duration": 1.0,
|
||||
"velocity": 0.5
|
||||
},
|
||||
{
|
||||
"time": 12.0,
|
||||
"note": "C5",
|
||||
"duration": 1.5,
|
||||
"velocity": 0.6
|
||||
},
|
||||
{
|
||||
"time": 13.5,
|
||||
"note": "D5",
|
||||
"duration": 1.0,
|
||||
"velocity": 0.6
|
||||
},
|
||||
{
|
||||
"time": 14.5,
|
||||
"note": "Eb5",
|
||||
"duration": 0.5,
|
||||
"velocity": 0.5
|
||||
},
|
||||
{
|
||||
"time": 15.0,
|
||||
"note": "F5",
|
||||
"duration": 2.0,
|
||||
"velocity": 0.7
|
||||
},
|
||||
{
|
||||
"time": 17.0,
|
||||
"note": "G5",
|
||||
"duration": 1.0,
|
||||
"velocity": 0.6
|
||||
},
|
||||
{
|
||||
"time": 18.0,
|
||||
"note": "A5",
|
||||
"duration": 1.5,
|
||||
"velocity": 0.7
|
||||
},
|
||||
{
|
||||
"time": 19.5,
|
||||
"note": "Bb5",
|
||||
"duration": 1.5,
|
||||
"velocity": 0.8
|
||||
},
|
||||
{
|
||||
"time": 21.0,
|
||||
"note": "A5",
|
||||
"duration": 1.0,
|
||||
"velocity": 0.7
|
||||
},
|
||||
{
|
||||
"time": 22.0,
|
||||
"note": "G5",
|
||||
"duration": 1.0,
|
||||
"velocity": 0.6
|
||||
},
|
||||
{
|
||||
"time": 23.0,
|
||||
"note": "F5",
|
||||
"duration": 1.0,
|
||||
"velocity": 0.6
|
||||
},
|
||||
{
|
||||
"time": 24.0,
|
||||
"note": "Eb5",
|
||||
"duration": 2.0,
|
||||
"velocity": 0.6
|
||||
},
|
||||
{
|
||||
"time": 26.0,
|
||||
"note": "D5",
|
||||
"duration": 1.0,
|
||||
"velocity": 0.5
|
||||
},
|
||||
{
|
||||
"time": 27.0,
|
||||
"note": "C5",
|
||||
"duration": 1.5,
|
||||
"velocity": 0.6
|
||||
},
|
||||
{
|
||||
"time": 28.5,
|
||||
"note": "Bb4",
|
||||
"duration": 1.5,
|
||||
"velocity": 0.5
|
||||
},
|
||||
{
|
||||
"time": 30.0,
|
||||
"note": "C5",
|
||||
"duration": 1.0,
|
||||
"velocity": 0.6
|
||||
},
|
||||
{
|
||||
"time": 31.0,
|
||||
"note": "D5",
|
||||
"duration": 2.0,
|
||||
"velocity": 0.6
|
||||
},
|
||||
{
|
||||
"time": 36.0,
|
||||
"note": "G5",
|
||||
"duration": 1.5,
|
||||
"velocity": 0.7
|
||||
},
|
||||
{
|
||||
"time": 37.5,
|
||||
"note": "A5",
|
||||
"duration": 1.0,
|
||||
"velocity": 0.6
|
||||
},
|
||||
{
|
||||
"time": 38.5,
|
||||
"note": "Bb5",
|
||||
"duration": 0.5,
|
||||
"velocity": 0.7
|
||||
},
|
||||
{
|
||||
"time": 39.0,
|
||||
"note": "C6",
|
||||
"duration": 2.0,
|
||||
"velocity": 0.8
|
||||
},
|
||||
{
|
||||
"time": 41.0,
|
||||
"note": "Bb5",
|
||||
"duration": 1.0,
|
||||
"velocity": 0.7
|
||||
},
|
||||
{
|
||||
"time": 42.0,
|
||||
"note": "A5",
|
||||
"duration": 1.5,
|
||||
"velocity": 0.6
|
||||
},
|
||||
{
|
||||
"time": 43.5,
|
||||
"note": "G5",
|
||||
"duration": 1.5,
|
||||
"velocity": 0.6
|
||||
},
|
||||
{
|
||||
"time": 45.0,
|
||||
"note": "F5",
|
||||
"duration": 2.0,
|
||||
"velocity": 0.7
|
||||
},
|
||||
{
|
||||
"time": 47.0,
|
||||
"note": "Eb5",
|
||||
"duration": 1.0,
|
||||
"velocity": 0.6
|
||||
},
|
||||
{
|
||||
"time": 48.0,
|
||||
"note": "F5",
|
||||
"duration": 1.5,
|
||||
"velocity": 0.6
|
||||
},
|
||||
{
|
||||
"time": 49.5,
|
||||
"note": "G5",
|
||||
"duration": 1.0,
|
||||
"velocity": 0.7
|
||||
},
|
||||
{
|
||||
"time": 50.5,
|
||||
"note": "A5",
|
||||
"duration": 0.5,
|
||||
"velocity": 0.6
|
||||
},
|
||||
{
|
||||
"time": 51.0,
|
||||
"note": "Bb5",
|
||||
"duration": 2.0,
|
||||
"velocity": 0.8
|
||||
},
|
||||
{
|
||||
"time": 53.0,
|
||||
"note": "C6",
|
||||
"duration": 1.0,
|
||||
"velocity": 0.7
|
||||
},
|
||||
{
|
||||
"time": 54.0,
|
||||
"note": "D6",
|
||||
"duration": 1.5,
|
||||
"velocity": 0.8
|
||||
},
|
||||
{
|
||||
"time": 55.5,
|
||||
"note": "C6",
|
||||
"duration": 1.5,
|
||||
"velocity": 0.7
|
||||
},
|
||||
{
|
||||
"time": 57.0,
|
||||
"note": "Bb5",
|
||||
"duration": 1.0,
|
||||
"velocity": 0.7
|
||||
},
|
||||
{
|
||||
"time": 58.0,
|
||||
"note": "A5",
|
||||
"duration": 1.0,
|
||||
"velocity": 0.6
|
||||
},
|
||||
{
|
||||
"time": 59.0,
|
||||
"note": "G5",
|
||||
"duration": 1.0,
|
||||
"velocity": 0.6
|
||||
},
|
||||
{
|
||||
"time": 60.0,
|
||||
"note": "F5",
|
||||
"duration": 2.0,
|
||||
"velocity": 0.6
|
||||
},
|
||||
{
|
||||
"time": 62.0,
|
||||
"note": "Eb5",
|
||||
"duration": 1.0,
|
||||
"velocity": 0.5
|
||||
},
|
||||
{
|
||||
"time": 63.0,
|
||||
"note": "D5",
|
||||
"duration": 1.5,
|
||||
"velocity": 0.6
|
||||
},
|
||||
{
|
||||
"time": 64.5,
|
||||
"note": "C5",
|
||||
"duration": 1.5,
|
||||
"velocity": 0.5
|
||||
},
|
||||
{
|
||||
"time": 66.0,
|
||||
"note": "Bb4",
|
||||
"duration": 1.0,
|
||||
"velocity": 0.5
|
||||
},
|
||||
{
|
||||
"time": 67.0,
|
||||
"note": "C5",
|
||||
"duration": 2.0,
|
||||
"velocity": 0.6
|
||||
},
|
||||
{
|
||||
"time": 72.0,
|
||||
"note": "F5",
|
||||
"duration": 1.5,
|
||||
"velocity": 0.6
|
||||
},
|
||||
{
|
||||
"time": 73.5,
|
||||
"note": "G5",
|
||||
"duration": 1.0,
|
||||
"velocity": 0.6
|
||||
},
|
||||
{
|
||||
"time": 74.5,
|
||||
"note": "A5",
|
||||
"duration": 0.5,
|
||||
"velocity": 0.7
|
||||
},
|
||||
{
|
||||
"time": 75.0,
|
||||
"note": "Bb5",
|
||||
"duration": 2.0,
|
||||
"velocity": 0.7
|
||||
},
|
||||
{
|
||||
"time": 77.0,
|
||||
"note": "A5",
|
||||
"duration": 1.0,
|
||||
"velocity": 0.6
|
||||
},
|
||||
{
|
||||
"time": 78.0,
|
||||
"note": "G5",
|
||||
"duration": 1.5,
|
||||
"velocity": 0.6
|
||||
},
|
||||
{
|
||||
"time": 79.5,
|
||||
"note": "F5",
|
||||
"duration": 1.5,
|
||||
"velocity": 0.6
|
||||
},
|
||||
{
|
||||
"time": 81.0,
|
||||
"note": "Eb5",
|
||||
"duration": 2.0,
|
||||
"velocity": 0.6
|
||||
},
|
||||
{
|
||||
"time": 83.0,
|
||||
"note": "D5",
|
||||
"duration": 1.0,
|
||||
"velocity": 0.5
|
||||
},
|
||||
{
|
||||
"time": 84.0,
|
||||
"note": "Eb5",
|
||||
"duration": 1.5,
|
||||
"velocity": 0.6
|
||||
},
|
||||
{
|
||||
"time": 85.5,
|
||||
"note": "F5",
|
||||
"duration": 1.0,
|
||||
"velocity": 0.6
|
||||
},
|
||||
{
|
||||
"time": 86.5,
|
||||
"note": "G5",
|
||||
"duration": 0.5,
|
||||
"velocity": 0.7
|
||||
},
|
||||
{
|
||||
"time": 87.0,
|
||||
"note": "A5",
|
||||
"duration": 2.0,
|
||||
"velocity": 0.7
|
||||
},
|
||||
{
|
||||
"time": 89.0,
|
||||
"note": "Bb5",
|
||||
"duration": 1.0,
|
||||
"velocity": 0.7
|
||||
},
|
||||
{
|
||||
"time": 90.0,
|
||||
"note": "G5",
|
||||
"duration": 1.5,
|
||||
"velocity": 0.6
|
||||
},
|
||||
{
|
||||
"time": 91.5,
|
||||
"note": "F5",
|
||||
"duration": 1.5,
|
||||
"velocity": 0.6
|
||||
},
|
||||
{
|
||||
"time": 93.0,
|
||||
"note": "Eb5",
|
||||
"duration": 1.0,
|
||||
"velocity": 0.5
|
||||
},
|
||||
{
|
||||
"time": 94.0,
|
||||
"note": "D5",
|
||||
"duration": 2.0,
|
||||
"velocity": 0.6
|
||||
}
|
||||
]
|
||||
},
|
||||
"effects": [
|
||||
{
|
||||
"type": "reverb",
|
||||
"room_size": 0.8,
|
||||
"damping": 0.7,
|
||||
"mix": 0.4
|
||||
},
|
||||
{
|
||||
"type": "delay",
|
||||
"time": 0.25,
|
||||
"feedback": 0.15,
|
||||
"mix": 0.2
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "string_harmony",
|
||||
"instrument": "sawtooth",
|
||||
"volume": 0.4,
|
||||
"pattern": {
|
||||
"type": "chord",
|
||||
"loop_length": 48.0,
|
||||
"chord_progression": [
|
||||
{
|
||||
"time": 0.0,
|
||||
"chord": "Bb",
|
||||
"duration": 6.0
|
||||
},
|
||||
{
|
||||
"time": 6.0,
|
||||
"chord": "F",
|
||||
"duration": 6.0
|
||||
},
|
||||
{
|
||||
"time": 12.0,
|
||||
"chord": "Gm",
|
||||
"duration": 6.0
|
||||
},
|
||||
{
|
||||
"time": 18.0,
|
||||
"chord": "Eb",
|
||||
"duration": 6.0
|
||||
},
|
||||
{
|
||||
"time": 24.0,
|
||||
"chord": "Bb",
|
||||
"duration": 6.0
|
||||
},
|
||||
{
|
||||
"time": 30.0,
|
||||
"chord": "F",
|
||||
"duration": 6.0
|
||||
},
|
||||
{
|
||||
"time": 36.0,
|
||||
"chord": "Gm",
|
||||
"duration": 6.0
|
||||
},
|
||||
{
|
||||
"time": 42.0,
|
||||
"chord": "Bb",
|
||||
"duration": 6.0
|
||||
}
|
||||
],
|
||||
"voicing": "spread",
|
||||
"octave": 3
|
||||
},
|
||||
"effects": [
|
||||
{
|
||||
"type": "lowpass",
|
||||
"cutoff": 4000,
|
||||
"resonance": 0.6
|
||||
},
|
||||
{
|
||||
"type": "reverb",
|
||||
"room_size": 0.9,
|
||||
"damping": 0.8,
|
||||
"mix": 0.6
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "waltz_bass",
|
||||
"instrument": "sine",
|
||||
"volume": 0.6,
|
||||
"pattern": {
|
||||
"type": "custom",
|
||||
"loop_length": 12.0,
|
||||
"steps": [
|
||||
{
|
||||
"time": 0.0,
|
||||
"note": "Bb2",
|
||||
"duration": 1.0,
|
||||
"velocity": 0.7
|
||||
},
|
||||
{
|
||||
"time": 1.0,
|
||||
"note": "F2",
|
||||
"duration": 1.0,
|
||||
"velocity": 0.5
|
||||
},
|
||||
{
|
||||
"time": 2.0,
|
||||
"note": "F2",
|
||||
"duration": 1.0,
|
||||
"velocity": 0.5
|
||||
},
|
||||
{
|
||||
"time": 3.0,
|
||||
"note": "F2",
|
||||
"duration": 1.0,
|
||||
"velocity": 0.7
|
||||
},
|
||||
{
|
||||
"time": 4.0,
|
||||
"note": "C3",
|
||||
"duration": 1.0,
|
||||
"velocity": 0.5
|
||||
},
|
||||
{
|
||||
"time": 5.0,
|
||||
"note": "C3",
|
||||
"duration": 1.0,
|
||||
"velocity": 0.5
|
||||
},
|
||||
{
|
||||
"time": 6.0,
|
||||
"note": "G2",
|
||||
"duration": 1.0,
|
||||
"velocity": 0.7
|
||||
},
|
||||
{
|
||||
"time": 7.0,
|
||||
"note": "D3",
|
||||
"duration": 1.0,
|
||||
"velocity": 0.5
|
||||
},
|
||||
{
|
||||
"time": 8.0,
|
||||
"note": "D3",
|
||||
"duration": 1.0,
|
||||
"velocity": 0.5
|
||||
},
|
||||
{
|
||||
"time": 9.0,
|
||||
"note": "Eb2",
|
||||
"duration": 1.0,
|
||||
"velocity": 0.7
|
||||
},
|
||||
{
|
||||
"time": 10.0,
|
||||
"note": "Bb2",
|
||||
"duration": 1.0,
|
||||
"velocity": 0.5
|
||||
},
|
||||
{
|
||||
"time": 11.0,
|
||||
"note": "Bb2",
|
||||
"duration": 1.0,
|
||||
"velocity": 0.5
|
||||
}
|
||||
]
|
||||
},
|
||||
"effects": [
|
||||
{
|
||||
"type": "lowpass",
|
||||
"cutoff": 2000,
|
||||
"resonance": 0.8
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "gentle_percussion",
|
||||
"instrument": "triangle",
|
||||
"volume": 0.25,
|
||||
"pattern": {
|
||||
"type": "custom",
|
||||
"loop_length": 3.0,
|
||||
"steps": [
|
||||
{
|
||||
"time": 0.0,
|
||||
"note": "C4",
|
||||
"duration": 0.1,
|
||||
"velocity": 0.4
|
||||
},
|
||||
{
|
||||
"time": 1.0,
|
||||
"note": "C4",
|
||||
"duration": 0.1,
|
||||
"velocity": 0.3
|
||||
},
|
||||
{
|
||||
"time": 2.0,
|
||||
"note": "C4",
|
||||
"duration": 0.1,
|
||||
"velocity": 0.3
|
||||
}
|
||||
]
|
||||
},
|
||||
"effects": [
|
||||
{
|
||||
"type": "highpass",
|
||||
"cutoff": 2000,
|
||||
"resonance": 0.5
|
||||
},
|
||||
{
|
||||
"type": "reverb",
|
||||
"room_size": 0.6,
|
||||
"damping": 0.9,
|
||||
"mix": 0.5
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "atmospheric_pad",
|
||||
"instrument": "sine",
|
||||
"volume": 0.15,
|
||||
"pattern": {
|
||||
"type": "chord",
|
||||
"loop_length": 24.0,
|
||||
"chord_progression": [
|
||||
{
|
||||
"time": 0.0,
|
||||
"chord": "Bbmaj7",
|
||||
"duration": 12.0
|
||||
},
|
||||
{
|
||||
"time": 12.0,
|
||||
"chord": "Gm7",
|
||||
"duration": 12.0
|
||||
}
|
||||
],
|
||||
"voicing": "spread",
|
||||
"octave": 2
|
||||
},
|
||||
"effects": [
|
||||
{
|
||||
"type": "lowpass",
|
||||
"cutoff": 1500,
|
||||
"resonance": 0.4
|
||||
},
|
||||
{
|
||||
"type": "reverb",
|
||||
"room_size": 1.0,
|
||||
"damping": 0.9,
|
||||
"mix": 0.8
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"export": {
|
||||
"filename": "enchanted",
|
||||
"format": "wav",
|
||||
"sample_rate": 44100,
|
||||
"bit_depth": 24,
|
||||
"stereo": true,
|
||||
"max_duration": 220.0
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user