diff --git a/music_composer/score.json b/music_composer/score.json new file mode 100644 index 0000000..afbf4dc --- /dev/null +++ b/music_composer/score.json @@ -0,0 +1,97 @@ +{ + "tempo": 80, + "timeSignature": [4, 4], + "tracks": [ + { + "name": "Eerie Lead", + "instrument": { + "type": "AMSynth", + "options": { + "harmonicity": 3.5, + "oscillator": { "type": "sine" }, + "envelope": { "attack": 0.1, "decay": 0.2, "sustain": 0.8, "release": 1.5 }, + "modulation": { "type": "square" }, + "modulationEnvelope": { "attack": 0.5, "decay": 0, "sustain": 1, "release": 0.5 } + } + }, + "effects": [ + { "type": "FeedbackDelay", "options": { "delayTime": "16n", "feedback": 0.2 } }, + { "type": "Freeverb", "options": { "roomSize": 0.8, "dampening": 3000 } } + ], + "volume": -15, + "notes": [ + { "pitch": "D#4", "duration": "2n", "time": 0 }, + { "pitch": "E4", "duration": "4n", "time": "0:2" }, + { "pitch": "F4", "duration": "2n", "time": "1:0" }, + { "pitch": "D4", "duration": "4n", "time": "1:2" }, + { "pitch": "C#4", "duration": "2n", "time": "2:0" }, + { "pitch": "C4", "duration": "4n", "time": "2:2" }, + { "pitch": "B3", "duration": "2n", "time": "3:0" } + ] + }, + { + "name": "Unsettling Bass", + "instrument": { + "type": "FMSynth", + "options": { + "modulationIndex": 10, + "oscillator": { "type": "triangle" }, + "envelope": { "attack": 0.01, "decay": 0.2, "sustain": 0.9, "release": 0.4 }, + "modulation": { "type": "sawtooth" }, + "modulationEnvelope": { "attack": 0.5, "decay": 0, "sustain": 1, "release": 0.5 } + } + }, + "effects": [ + { "type": "Distortion", "options": { "distortion": 0.3 } }, + { "type": "BitCrusher", "options": { "bits": 6 } } + ], + "volume": -20, + "notes": [ + { "pitch": "A1", "duration": "1m", "time": 0 }, + { "pitch": "G#1", "duration": "1m", "time": "1:0" }, + { "pitch": "G1", "duration": "1m", "time": "2:0" }, + { "pitch": "F#1", "duration": "1m", "time": "3:0" } + ] + }, + { + "name": "Creepy Atmosphere", + "instrument": { + "type": "NoiseSynth", + "options": { + "noise": { "type": "brown" }, + "envelope": { "attack": 0.5, "decay": 0.2, "sustain": 0.8, "release": 2 } + } + }, + "effects": [ + { "type": "AutoFilter", "options": { "frequency": "16n", "baseFrequency": 200, "octaves": 4 } }, + { "type": "PingPongDelay", "options": { "delayTime": "8n", "feedback": 0.3 } } + ], + "volume": -30, + "notes": [ + { "pitch": "C2", "duration": "4m", "time": 0 } + ] + }, + { + "name": "Sudden Stabs", + "instrument": { + "type": "MetalSynth", + "options": { + "frequency": 200, + "envelope": { "attack": 0.001, "decay": 0.1, "release": 0.2 }, + "harmonicity": 5.1, + "modulationIndex": 32, + "resonance": 4000, + "octaves": 1.5 + } + }, + "volume": -15, + "notes": [ + { "pitch": "C5", "duration": "32n", "time": "0:3.5" }, + { "pitch": "C5", "duration": "32n", "time": "1:3" }, + { "pitch": "C5", "duration": "32n", "time": "2:2.5" }, + { "pitch": "C5", "duration": "32n", "time": "3:1" }, + { "pitch": "C5", "duration": "32n", "time": "3:3.75" } + ] + } + ] +} \ No newline at end of file diff --git a/music_composer/tonejsmusic_player_robust.html b/music_composer/tonejsmusic_player_robust.html new file mode 100644 index 0000000..bba7762 --- /dev/null +++ b/music_composer/tonejsmusic_player_robust.html @@ -0,0 +1,136 @@ + + + + + + Advanced Tone.js JSON Score Player + + + + +

Advanced Tone.js JSON Score Player

+
+ + + +
+ + + + + \ No newline at end of file