diff --git a/docs/sounds/000-mini-lead.mp3 b/docs/sounds/000-mini-lead.mp3 index 0579fe9..4e938a6 100644 Binary files a/docs/sounds/000-mini-lead.mp3 and b/docs/sounds/000-mini-lead.mp3 differ diff --git a/docs/sounds/001-moog-bass.mp3 b/docs/sounds/001-moog-bass.mp3 index a4d7e5d..3e2c10e 100644 Binary files a/docs/sounds/001-moog-bass.mp3 and b/docs/sounds/001-moog-bass.mp3 differ diff --git a/docs/sounds/002-pluck-arp.mp3 b/docs/sounds/002-pluck-arp.mp3 index 42560f1..40b6014 100644 Binary files a/docs/sounds/002-pluck-arp.mp3 and b/docs/sounds/002-pluck-arp.mp3 differ diff --git a/docs/sounds/003-pad-swell.mp3 b/docs/sounds/003-pad-swell.mp3 index 546a395..91ccf60 100644 Binary files a/docs/sounds/003-pad-swell.mp3 and b/docs/sounds/003-pad-swell.mp3 differ diff --git a/docs/sounds/004-sine-solo.mp3 b/docs/sounds/004-sine-solo.mp3 index ee0c92b..c0be1d8 100644 Binary files a/docs/sounds/004-sine-solo.mp3 and b/docs/sounds/004-sine-solo.mp3 differ diff --git a/docs/sounds/005-space-drone.mp3 b/docs/sounds/005-space-drone.mp3 index de9adbf..75ec392 100644 Binary files a/docs/sounds/005-space-drone.mp3 and b/docs/sounds/005-space-drone.mp3 differ diff --git a/docs/sounds/006-cs80-brass.mp3 b/docs/sounds/006-cs80-brass.mp3 index 18a67d4..f951e3c 100644 Binary files a/docs/sounds/006-cs80-brass.mp3 and b/docs/sounds/006-cs80-brass.mp3 differ diff --git a/docs/sounds/007-lush-strings.mp3 b/docs/sounds/007-lush-strings.mp3 index 9e97e27..0cedd66 100644 Binary files a/docs/sounds/007-lush-strings.mp3 and b/docs/sounds/007-lush-strings.mp3 differ diff --git a/docs/sounds/008-aura-atmos.mp3 b/docs/sounds/008-aura-atmos.mp3 index 4778fbc..ef9e879 100644 Binary files a/docs/sounds/008-aura-atmos.mp3 and b/docs/sounds/008-aura-atmos.mp3 differ diff --git a/docs/sounds/009-ufo.mp3 b/docs/sounds/009-ufo.mp3 index a79e8d5..8ced3f6 100644 Binary files a/docs/sounds/009-ufo.mp3 and b/docs/sounds/009-ufo.mp3 differ diff --git a/docs/sounds/samples.json b/docs/sounds/samples.json index 8a6cce0..ff18a0a 100644 --- a/docs/sounds/samples.json +++ b/docs/sounds/samples.json @@ -1 +1 @@ -{"samples":[{"id":"000","preset":0,"name":"MINI LEAD","file":"sounds/000-mini-lead.mp3","seconds":10.0,"peaks":[0.0,0.0,0.0,0.815,0.771,0.785,0.756,0.78,0.833,0.774,0.773,0.777,0.765,0.782,0.772,0.782,0.766,0.767,0.771,0.791,0.8,0.741,0.774,0.786,0.785,0.73,0.742,0.764,0.788,0.773,0.737,0.767,0.787,0.762,0.793,0.734,0.733,0.796,0.751,0.723,0.727,0.681,0.653,0.743,0.717,0.779,0.761,0.769,0.773,0.789,0.794,0.743,0.809,0.802,0.805,0.793,0.783,0.788,0.753,0.742,0.712,0.725,0.782,0.759,0.755,0.768,0.813,0.807,0.779,0.777,0.775,0.761,0.789,0.778,0.793,0.778,0.786,0.802,0.787,0.845,0.81,0.808,0.739,0.737,0.743,0.764,0.796,0.803,0.788,0.814,0.753,0.78,0.776,0.675,0.68,0.713,0.714,0.765,0.754,0.776,0.775,0.766,0.75,0.688,0.376,0.281,0.211,0.188,0.804,0.793,0.775,0.792,0.801,0.746,0.761,0.771,0.735,0.585,0.319,0.207]},{"id":"001","preset":1,"name":"MOOG BASS","file":"sounds/001-moog-bass.mp3","seconds":10.0,"peaks":[0.0,0.0,0.818,0.796,0.771,0.776,0.779,0.757,0.475,0.827,0.811,0.772,0.763,0.772,0.773,0.546,0.863,0.81,0.787,0.786,0.801,0.791,0.707,0.314,0.864,0.77,0.748,0.752,0.76,0.759,0.313,0.86,0.808,0.795,0.791,0.793,0.782,0.561,0.878,0.746,0.759,0.782,0.768,0.776,0.579,0.854,0.824,0.795,0.789,0.787,0.795,0.633,0.778,0.84,0.788,0.792,0.776,0.765,0.757,0.339,0.821,0.773,0.762,0.769,0.759,0.731,0.391,0.858,0.776,0.758,0.742,0.757,0.763,0.482,0.846,0.792,0.734,0.762,0.769,0.778,0.529,0.868,0.804,0.756,0.759,0.751,0.762,0.502,0.226,0.866,0.794,0.797,0.785,0.784,0.671,0.337,0.856,0.771,0.754,0.759,0.768,0.748,0.387,0.868,0.806,0.786,0.795,0.794,0.783,0.544,0.859,0.798,0.774,0.766,0.759,0.764,0.569,0.29,0.086,0.026]},{"id":"002","preset":2,"name":"PLUCK ARP","file":"sounds/002-pluck-arp.mp3","seconds":10.0,"peaks":[0.0,0.825,0.837,0.67,0.768,0.81,0.654,0.887,0.736,0.693,0.773,0.733,0.699,0.833,0.801,0.721,0.819,0.777,0.721,0.758,0.741,0.714,0.759,0.706,0.713,0.786,0.793,0.663,0.703,0.75,0.674,0.726,0.76,0.718,0.762,0.681,0.65,0.736,0.701,0.724,0.781,0.725,0.726,0.727,0.753,0.706,0.76,0.702,0.735,0.7,0.773,0.754,0.719,0.787,0.7,0.778,0.754,0.765,0.801,0.712,0.7,0.731,0.69,0.701,0.732,0.721,0.785,0.75,0.698,0.754,0.766,0.704,0.736,0.738,0.769,0.738,0.732,0.713,0.71,0.645,0.744,0.732,0.718,0.719,0.749,0.644,0.698,0.692,0.657,0.724,0.684,0.761,0.702,0.702,0.737,0.7,0.789,0.694,0.724,0.764,0.727,0.702,0.717,0.706,0.727,0.672,0.678,0.789,0.723,0.694,0.744,0.711,0.658,0.775,0.718,0.742,0.664,0.578,0.574,0.284]},{"id":"003","preset":3,"name":"PAD SWELL","file":"sounds/003-pad-swell.mp3","seconds":10.0,"peaks":[0.0,0.0,0.078,0.228,0.389,0.522,0.547,0.668,0.743,0.706,0.729,0.774,0.81,0.791,0.812,0.684,0.748,0.662,0.664,0.689,0.591,0.698,0.795,0.756,0.688,0.704,0.727,0.759,0.719,0.742,0.623,0.736,0.698,0.708,0.619,0.622,0.514,0.584,0.74,0.742,0.573,0.574,0.809,0.707,0.771,0.702,0.664,0.719,0.752,0.68,0.75,0.656,0.642,0.678,0.78,0.751,0.683,0.761,0.778,0.723,0.761,0.793,0.695,0.747,0.725,0.775,0.675,0.682,0.696,0.652,0.639,0.644,0.645,0.721,0.588,0.633,0.743,0.715,0.786,0.746,0.697,0.698,0.729,0.642,0.704,0.67,0.674,0.704,0.709,0.769,0.638,0.67,0.681,0.658,0.651,0.665,0.661,0.732,0.643,0.64,0.77,0.622,0.664,0.767,0.724,0.669,0.683,0.721,0.676,0.601,0.734,0.72,0.726,0.67,0.742,0.664,0.742,0.72,0.678,0.371]},{"id":"004","preset":4,"name":"SINE SOLO","file":"sounds/004-sine-solo.mp3","seconds":10.0,"peaks":[0.0,0.0,0.0,0.871,0.862,0.738,0.831,0.849,0.857,0.818,0.696,0.853,0.775,0.783,0.816,0.836,0.843,0.719,0.694,0.834,0.832,0.8,0.787,0.838,0.855,0.651,0.662,0.728,0.842,0.848,0.817,0.776,0.758,0.845,0.734,0.587,0.651,0.831,0.838,0.718,0.839,0.829,0.835,0.78,0.787,0.748,0.738,0.804,0.83,0.802,0.832,0.809,0.793,0.807,0.837,0.836,0.726,0.787,0.749,0.757,0.72,0.704,0.746,0.82,0.847,0.62,0.615,0.715,0.633,0.564,0.476,0.748,0.842,0.714,0.79,0.741,0.735,0.758,0.839,0.798,0.733,0.769,0.853,0.642,0.675,0.692,0.767,0.711,0.657,0.835,0.788,0.787,0.695,0.781,0.844,0.843,0.871,0.813,0.684,0.864,0.854,0.702,0.78,0.761,0.825,0.843,0.692,0.82,0.853,0.823,0.734,0.493,0.103,0.121,0.115,0.092,0.069,0.028,0.036,0.023]},{"id":"005","preset":5,"name":"SPACE DRONE","file":"sounds/005-space-drone.mp3","seconds":10.0,"peaks":[0.0,0.234,0.268,0.399,0.571,0.621,0.679,0.663,0.717,0.744,0.757,0.748,0.723,0.74,0.59,0.626,0.634,0.639,0.69,0.737,0.759,0.735,0.698,0.739,0.713,0.682,0.677,0.6,0.683,0.697,0.615,0.69,0.721,0.717,0.715,0.723,0.738,0.704,0.599,0.634,0.608,0.671,0.717,0.594,0.631,0.669,0.566,0.592,0.628,0.72,0.701,0.733,0.765,0.688,0.69,0.608,0.606,0.706,0.698,0.623,0.621,0.67,0.585,0.598,0.643,0.731,0.595,0.742,0.628,0.636,0.611,0.579,0.666,0.642,0.604,0.717,0.584,0.723,0.656,0.745,0.723,0.725,0.635,0.729,0.684,0.718,0.711,0.778,0.666,0.744,0.774,0.736,0.796,0.77,0.752,0.731,0.658,0.672,0.673,0.682,0.736,0.763,0.756,0.669,0.732,0.698,0.685,0.733,0.684,0.717,0.754,0.757,0.816,0.699,0.759,0.704,0.621,0.667,0.699,0.387]},{"id":"006","preset":6,"name":"CS-80 BRASS","file":"sounds/006-cs80-brass.mp3","seconds":10.0,"peaks":[0.0,0.0,0.793,0.785,0.753,0.73,0.762,0.76,0.663,0.692,0.709,0.791,0.811,0.723,0.645,0.652,0.726,0.79,0.777,0.786,0.837,0.805,0.809,0.802,0.797,0.753,0.804,0.754,0.674,0.634,0.487,0.793,0.758,0.744,0.728,0.722,0.748,0.728,0.742,0.776,0.771,0.803,0.783,0.726,0.699,0.792,0.81,0.766,0.772,0.768,0.779,0.786,0.732,0.723,0.772,0.779,0.773,0.764,0.722,0.71,0.776,0.813,0.769,0.699,0.701,0.76,0.766,0.763,0.776,0.769,0.816,0.742,0.735,0.654,0.75,0.736,0.758,0.808,0.784,0.809,0.783,0.793,0.78,0.806,0.78,0.775,0.688,0.7,0.668,0.819,0.678,0.736,0.784,0.789,0.772,0.77,0.757,0.722,0.788,0.769,0.7,0.682,0.564,0.791,0.782,0.791,0.806,0.777,0.741,0.756,0.821,0.776,0.788,0.761,0.698,0.724,0.71,0.75,0.572,0.298]},{"id":"007","preset":7,"name":"LUSH STRINGS","file":"sounds/007-lush-strings.mp3","seconds":10.0,"peaks":[0.0,0.0,0.368,0.742,0.704,0.773,0.764,0.736,0.711,0.686,0.724,0.626,0.728,0.655,0.761,0.734,0.672,0.757,0.719,0.729,0.711,0.724,0.75,0.67,0.73,0.764,0.813,0.776,0.674,0.578,0.756,0.634,0.727,0.792,0.776,0.695,0.816,0.739,0.79,0.757,0.69,0.65,0.625,0.61,0.648,0.553,0.505,0.51,0.556,0.737,0.829,0.73,0.711,0.579,0.564,0.593,0.701,0.638,0.68,0.775,0.71,0.821,0.753,0.822,0.768,0.783,0.803,0.772,0.68,0.615,0.792,0.789,0.652,0.748,0.729,0.611,0.7,0.782,0.788,0.766,0.68,0.698,0.757,0.777,0.684,0.78,0.804,0.798,0.801,0.781,0.687,0.752,0.774,0.719,0.74,0.701,0.733,0.758,0.766,0.749,0.765,0.709,0.721,0.793,0.668,0.756,0.726,0.618,0.764,0.79,0.758,0.806,0.725,0.77,0.711,0.716,0.712,0.75,0.756,0.332]},{"id":"008","preset":8,"name":"AURA ATMOS","file":"sounds/008-aura-atmos.mp3","seconds":10.0,"peaks":[0.0,0.0,0.063,0.148,0.258,0.432,0.512,0.674,0.66,0.716,0.803,0.73,0.751,0.723,0.731,0.792,0.692,0.738,0.757,0.782,0.772,0.781,0.755,0.806,0.76,0.684,0.735,0.758,0.762,0.587,0.785,0.654,0.617,0.697,0.745,0.608,0.639,0.762,0.673,0.708,0.77,0.682,0.689,0.724,0.772,0.736,0.809,0.674,0.659,0.7,0.687,0.683,0.69,0.737,0.742,0.742,0.691,0.69,0.752,0.621,0.822,0.548,0.696,0.801,0.61,0.636,0.58,0.529,0.588,0.73,0.736,0.601,0.595,0.699,0.737,0.737,0.7,0.734,0.656,0.733,0.647,0.741,0.695,0.716,0.71,0.673,0.748,0.717,0.786,0.691,0.747,0.672,0.605,0.614,0.609,0.641,0.62,0.735,0.645,0.729,0.636,0.683,0.65,0.633,0.631,0.617,0.617,0.585,0.641,0.564,0.716,0.736,0.674,0.68,0.69,0.623,0.623,0.708,0.556,0.39]},{"id":"009","preset":9,"name":"UFO","file":"sounds/009-ufo.mp3","seconds":10.0,"peaks":[0.0,0.0,0.293,0.696,0.748,0.78,0.789,0.802,0.806,0.796,0.768,0.722,0.65,0.755,0.651,0.633,0.57,0.639,0.701,0.582,0.528,0.758,0.587,0.632,0.71,0.692,0.708,0.695,0.815,0.726,0.715,0.735,0.668,0.691,0.725,0.632,0.699,0.726,0.746,0.604,0.558,0.753,0.69,0.694,0.74,0.615,0.685,0.741,0.696,0.679,0.691,0.619,0.688,0.685,0.673,0.551,0.711,0.676,0.711,0.667,0.597,0.765,0.669,0.632,0.731,0.736,0.6,0.685,0.621,0.607,0.693,0.666,0.688,0.697,0.729,0.66,0.758,0.694,0.665,0.728,0.59,0.759,0.609,0.678,0.647,0.62,0.596,0.574,0.656,0.571,0.69,0.614,0.647,0.682,0.664,0.743,0.582,0.636,0.726,0.64,0.679,0.631,0.724,0.665,0.654,0.699,0.63,0.686,0.663,0.656,0.633,0.594,0.677,0.545,0.764,0.639,0.635,0.57,0.675,0.217]}]} \ No newline at end of file +{"samples":[{"id":"000","preset":0,"name":"MINI LEAD","file":"sounds/000-mini-lead.mp3","seconds":10.0,"peaks":[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.81,0.78,0.753,0.791,0.762,0.821,0.777,0.772,0.83,0.809,0.845,0.795,0.827,0.785,0.796,0.747,0.775,0.773,0.824,0.817,0.794,0.8,0.782,0.769,0.754,0.765,0.753,0.793,0.685,0.718,0.813,0.833,0.785,0.789,0.738,0.779,0.771,0.779,0.793,0.807,0.792,0.802,0.792,0.743,0.802,0.827,0.815,0.777,0.774,0.748,0.803,0.709,0.805,0.806,0.795,0.818,0.764,0.815,0.817,0.785,0.786,0.78,0.808,0.702,0.763,0.778,0.686,0.464,0.385,0.837,0.826,0.788,0.808,0.739,0.832,0.789,0.786,0.792,0.823,0.777,0.791,0.763,0.83,0.779,0.818,0.807,0.795,0.792,0.775,0.751,0.772,0.797,0.782,0.686,0.694,0.636,0.831,0.761,0.748,0.755,0.743,0.778,0.773,0.787,0.769,0.741,0.784,0.748,0.718,0.725,0.721,0.678,0.431]},{"id":"001","preset":1,"name":"MOOG BASS","file":"sounds/001-moog-bass.mp3","seconds":10.0,"peaks":[0.0,0.0,0.0,0.0,0.827,0.782,0.749,0.738,0.715,0.864,0.774,0.775,0.765,0.753,0.864,0.786,0.75,0.769,0.756,0.761,0.733,0.786,0.76,0.767,0.781,0.732,0.685,0.825,0.782,0.733,0.716,0.835,0.771,0.755,0.783,0.762,0.759,0.805,0.761,0.791,0.781,0.762,0.783,0.76,0.8,0.714,0.731,0.81,0.775,0.756,0.777,0.787,0.769,0.805,0.732,0.806,0.774,0.78,0.746,0.754,0.717,0.492,0.846,0.809,0.771,0.698,0.502,0.825,0.777,0.773,0.759,0.767,0.767,0.772,0.74,0.773,0.78,0.759,0.743,0.537,0.825,0.759,0.73,0.847,0.736,0.811,0.78,0.748,0.744,0.808,0.76,0.775,0.763,0.764,0.785,0.759,0.805,0.732,0.738,0.837,0.765,0.788,0.726,0.816,0.791,0.771,0.767,0.767,0.756,0.727,0.739,0.734,0.733,0.742,0.671,0.257,0.078,0.032,0.014,0.003]},{"id":"002","preset":2,"name":"PLUCK ARP","file":"sounds/002-pluck-arp.mp3","seconds":10.0,"peaks":[0.0,0.0,0.0,0.0,0.828,0.705,0.8,0.753,0.691,0.867,0.809,0.716,0.783,0.626,0.695,0.613,0.828,0.665,0.82,0.803,0.638,0.774,0.816,0.629,0.785,0.756,0.65,0.694,0.641,0.738,0.746,0.758,0.737,0.699,0.724,0.767,0.732,0.669,0.674,0.735,0.714,0.704,0.613,0.809,0.717,0.719,0.781,0.727,0.691,0.807,0.802,0.763,0.703,0.797,0.665,0.732,0.752,0.69,0.874,0.705,0.631,0.766,0.737,0.635,0.792,0.754,0.68,0.786,0.586,0.739,0.737,0.763,0.739,0.679,0.769,0.742,0.682,0.662,0.697,0.69,0.735,0.644,0.571,0.801,0.713,0.669,0.803,0.774,0.712,0.729,0.707,0.761,0.753,0.707,0.703,0.585,0.729,0.712,0.726,0.798,0.687,0.744,0.751,0.605,0.751,0.817,0.627,0.741,0.657,0.706,0.801,0.75,0.725,0.425,0.554,0.538,0.624,0.272,0.172,0.151]},{"id":"003","preset":3,"name":"PAD SWELL","file":"sounds/003-pad-swell.mp3","seconds":10.0,"peaks":[0.0,0.0,0.0,0.0,0.014,0.171,0.299,0.345,0.505,0.688,0.691,0.727,0.721,0.748,0.757,0.643,0.689,0.787,0.728,0.793,0.666,0.757,0.62,0.724,0.716,0.709,0.668,0.747,0.803,0.764,0.78,0.787,0.775,0.842,0.583,0.725,0.623,0.68,0.656,0.664,0.625,0.652,0.749,0.719,0.724,0.72,0.658,0.666,0.693,0.667,0.617,0.642,0.731,0.705,0.595,0.625,0.645,0.647,0.683,0.543,0.675,0.727,0.775,0.656,0.717,0.755,0.653,0.529,0.679,0.671,0.773,0.573,0.739,0.771,0.751,0.813,0.75,0.623,0.699,0.735,0.715,0.699,0.664,0.722,0.772,0.713,0.765,0.738,0.797,0.724,0.776,0.703,0.784,0.824,0.788,0.636,0.663,0.582,0.719,0.696,0.605,0.637,0.708,0.803,0.776,0.702,0.658,0.568,0.698,0.605,0.541,0.484,0.537,0.46,0.675,0.619,0.46,0.491,0.42,0.227]},{"id":"004","preset":4,"name":"SINE SOLO","file":"sounds/004-sine-solo.mp3","seconds":10.0,"peaks":[0.0,0.0,0.0,0.0,0.598,0.811,0.738,0.627,0.774,0.73,0.698,0.791,0.62,0.605,0.682,0.513,0.504,0.55,0.719,0.656,0.757,0.748,0.783,0.78,0.812,0.757,0.688,0.794,0.625,0.736,0.75,0.744,0.763,0.825,0.772,0.778,0.669,0.636,0.776,0.748,0.793,0.622,0.746,0.801,0.764,0.549,0.669,0.761,0.8,0.784,0.827,0.806,0.737,0.784,0.816,0.713,0.598,0.785,0.737,0.651,0.714,0.675,0.733,0.828,0.716,0.824,0.743,0.817,0.77,0.759,0.765,0.818,0.601,0.81,0.72,0.798,0.634,0.711,0.78,0.73,0.738,0.738,0.828,0.714,0.684,0.788,0.83,0.692,0.653,0.817,0.725,0.672,0.772,0.776,0.826,0.778,0.686,0.672,0.67,0.76,0.751,0.74,0.583,0.838,0.825,0.633,0.727,0.558,0.217,0.24,0.257,0.203,0.186,0.146,0.045,0.046,0.042,0.033,0.017,0.009]},{"id":"005","preset":5,"name":"SPACE DRONE","file":"sounds/005-space-drone.mp3","seconds":10.0,"peaks":[0.0,0.0,0.0,0.0,0.044,0.209,0.305,0.458,0.624,0.661,0.714,0.728,0.721,0.635,0.652,0.563,0.702,0.69,0.715,0.695,0.648,0.692,0.697,0.79,0.698,0.708,0.654,0.638,0.729,0.708,0.75,0.648,0.76,0.736,0.672,0.678,0.665,0.736,0.656,0.617,0.582,0.656,0.64,0.63,0.67,0.589,0.601,0.639,0.661,0.666,0.682,0.7,0.641,0.649,0.697,0.731,0.725,0.709,0.588,0.674,0.785,0.71,0.691,0.655,0.735,0.655,0.654,0.675,0.548,0.64,0.619,0.647,0.623,0.657,0.657,0.602,0.694,0.668,0.626,0.597,0.614,0.656,0.674,0.656,0.657,0.639,0.581,0.622,0.674,0.605,0.664,0.661,0.629,0.589,0.578,0.519,0.655,0.595,0.623,0.577,0.55,0.547,0.541,0.646,0.633,0.662,0.591,0.571,0.58,0.583,0.61,0.605,0.736,0.645,0.589,0.704,0.685,0.577,0.533,0.318]},{"id":"006","preset":6,"name":"CS-80 BRASS","file":"sounds/006-cs80-brass.mp3","seconds":10.0,"peaks":[0.0,0.0,0.0,0.0,0.735,0.781,0.78,0.733,0.624,0.594,0.56,0.598,0.392,0.578,0.779,0.772,0.705,0.823,0.801,0.745,0.604,0.626,0.556,0.528,0.353,0.555,0.737,0.777,0.764,0.815,0.687,0.748,0.68,0.574,0.673,0.627,0.306,0.722,0.787,0.761,0.772,0.759,0.757,0.672,0.686,0.52,0.561,0.471,0.317,0.758,0.77,0.788,0.644,0.769,0.838,0.789,0.741,0.668,0.634,0.577,0.623,0.498,0.845,0.769,0.598,0.743,0.744,0.681,0.703,0.644,0.491,0.5,0.508,0.586,0.801,0.808,0.772,0.771,0.784,0.848,0.746,0.728,0.637,0.533,0.455,0.617,0.8,0.74,0.714,0.753,0.87,0.698,0.698,0.68,0.635,0.583,0.501,0.656,0.798,0.75,0.733,0.781,0.792,0.763,0.72,0.721,0.749,0.753,0.739,0.699,0.715,0.597,0.455,0.35,0.374,0.352,0.315,0.185,0.138,0.054]},{"id":"007","preset":7,"name":"LUSH STRINGS","file":"sounds/007-lush-strings.mp3","seconds":10.0,"peaks":[0.0,0.0,0.0,0.0,0.14,0.669,0.77,0.747,0.719,0.689,0.776,0.739,0.77,0.802,0.716,0.698,0.67,0.632,0.694,0.786,0.701,0.686,0.722,0.649,0.706,0.694,0.723,0.719,0.784,0.686,0.764,0.673,0.742,0.712,0.737,0.737,0.673,0.723,0.795,0.728,0.727,0.681,0.72,0.759,0.694,0.762,0.759,0.722,0.706,0.562,0.727,0.759,0.737,0.709,0.723,0.714,0.76,0.623,0.694,0.719,0.749,0.601,0.759,0.744,0.554,0.711,0.717,0.727,0.764,0.792,0.642,0.728,0.674,0.666,0.707,0.751,0.738,0.804,0.656,0.643,0.63,0.709,0.714,0.652,0.722,0.702,0.678,0.663,0.772,0.733,0.731,0.673,0.665,0.734,0.713,0.73,0.74,0.779,0.637,0.77,0.71,0.748,0.745,0.715,0.611,0.743,0.761,0.733,0.669,0.714,0.667,0.68,0.633,0.494,0.506,0.397,0.32,0.214,0.207,0.099]},{"id":"008","preset":8,"name":"AURA ATMOS","file":"sounds/008-aura-atmos.mp3","seconds":10.0,"peaks":[0.0,0.0,0.0,0.0,0.021,0.148,0.235,0.358,0.523,0.583,0.684,0.748,0.735,0.696,0.755,0.625,0.729,0.771,0.652,0.691,0.691,0.746,0.717,0.722,0.737,0.737,0.721,0.666,0.645,0.772,0.667,0.684,0.631,0.65,0.626,0.479,0.539,0.581,0.638,0.624,0.584,0.551,0.569,0.607,0.659,0.615,0.707,0.715,0.694,0.689,0.66,0.708,0.772,0.616,0.708,0.604,0.655,0.666,0.609,0.608,0.748,0.627,0.748,0.7,0.665,0.681,0.675,0.668,0.659,0.747,0.668,0.61,0.606,0.699,0.702,0.675,0.661,0.584,0.654,0.673,0.717,0.739,0.667,0.711,0.653,0.595,0.74,0.667,0.647,0.603,0.591,0.586,0.577,0.608,0.703,0.667,0.648,0.609,0.618,0.55,0.607,0.563,0.568,0.638,0.637,0.577,0.696,0.597,0.553,0.574,0.588,0.553,0.572,0.513,0.581,0.573,0.597,0.507,0.51,0.225]},{"id":"009","preset":9,"name":"UFO","file":"sounds/009-ufo.mp3","seconds":10.0,"peaks":[0.0,0.0,0.0,0.0,0.105,0.449,0.665,0.774,0.753,0.727,0.654,0.713,0.718,0.671,0.699,0.684,0.669,0.735,0.733,0.68,0.708,0.713,0.715,0.754,0.676,0.753,0.617,0.759,0.75,0.713,0.693,0.686,0.64,0.649,0.663,0.71,0.656,0.593,0.666,0.621,0.68,0.745,0.682,0.734,0.698,0.675,0.74,0.709,0.685,0.668,0.73,0.769,0.734,0.727,0.694,0.719,0.771,0.754,0.746,0.691,0.74,0.697,0.778,0.632,0.796,0.632,0.697,0.645,0.656,0.729,0.715,0.726,0.734,0.667,0.705,0.752,0.625,0.669,0.773,0.666,0.751,0.736,0.749,0.655,0.686,0.672,0.676,0.687,0.649,0.727,0.619,0.702,0.759,0.615,0.68,0.831,0.73,0.67,0.726,0.703,0.642,0.577,0.674,0.612,0.552,0.688,0.657,0.614,0.534,0.605,0.591,0.524,0.473,0.541,0.604,0.569,0.617,0.68,0.48,0.326]}]} \ No newline at end of file diff --git a/tools/fmini_samples.py b/tools/fmini_samples.py index 630e4d2..9cc8e79 100644 --- a/tools/fmini_samples.py +++ b/tools/fmini_samples.py @@ -19,130 +19,144 @@ FS = 44100 BARS = 120 -def mono(notes, start, step, length=None, legato=True): - """a mono line: each note starts at start + i*step; legato: the note ends when the next one starts (after it)""" +# The pitch each patch sounds for a key: a test note sent at MIDI 60 is heard at this many semitones away (measured on +# the emulator with a single held note). The patch's own footages (a 16' oscillator sounds an octave low) decide it, +# not the OCTAVE field alone, so a line is sent at (wanted - offset) and comes out where it is written. +HEARD_OFFSET = {0: -12, 1: -24, 2: 0, 3: -12, 4: 0, 5: -12, 6: -12, 7: 0, 8: -12, 9: 0} + + +def score(bpm, items, offset, legato=0.92): + """items: (beat, dur, sounding midi note, velocity) in beats; offset: the patch's HEARD_OFFSET""" + shift = -offset + s = 60.0 / bpm ev = [] - for i, n in enumerate(notes): - t = start + i * step - ev.append([t, "on", n, 100]) - if legato and i + 1 < len(notes): - ev.append([t + step, "off", n]) - else: - ev.append([t + (length or step * 0.7), "off", n]) + for b, d, n, v in items: + t0 = START + b * s + t1 = t0 + d * s * legato + ev.append([round(t0, 4), "on", n + shift, v]) + ev.append([round(min(t1, DUR - 0.25), 4), "off", n + shift]) return ev -def chords(seq, start, hold, gap=0.0, vel=100): - """poly chords, one after another; each held `hold` seconds""" - ev, t = [], start - for ch in seq: - for n in ch: - ev.append([t, "on", n, vel]) - for n in ch: - ev.append([t + hold, "off", n]) - t += hold + gap - return ev +def N(b, d, n, v=100): + return (b, d, n, v) -def overlap(seq, start, step, hold, vel=100): - """poly chords, each new one before the last is let go (a pad's breath)""" - ev = [] - for k, ch in enumerate(seq): - t = start + k * step - for n in ch: - ev.append([t, "on", n, vel]) - end = t + step + 0.2 if k + 1 < len(seq) else start + len(seq) * step + hold - for n in ch: - ev.append([min(end, DUR - 0.2), "off", n]) - return ev +def C(b, d, ns, v=100): + return [(b, d, n, v) for n in ns] -def melody_lead(): - # MINI LEAD: a mono phrase in A minor, legato, so the glide slides between the notes - notes = [69, 72, 74, 76, 74, 72, 69, 67, 65, 67, 69, 72] - return mono(notes, 0.3, 0.7) + [[9.0, "on", 69, 100], [9.6, "off", 69]] +START = 0.4 -def bass_line(): - # MOOG BASS: a short bass pattern, notes apart, A1 and its fifth, fourth and octave - notes = [33, 33, 40, 33, 36, 33, 38, 40] * 2 - return mono(notes, 0.2, 0.6, length=0.42, legato=False) +# ---- the ten arrangements: a keyboardist's line for each patch, in the register it sounds in ---- + +def mini_lead(off): + # 000 MINI LEAD: a mono line in A minor, syncopated, with a sixteenth run and a long landing + it = [N(0.5, .5, 69), N(1, .5, 72), N(1.5, 1, 76), N(2.5, .5, 74), N(3, .5, 72), N(3.5, .5, 71), N(4, 1, 69), + N(5.5, .5, 67), N(6, .5, 69), N(6.5, 1.5, 72), N(8, .5, 74), N(8.5, .25, 76), N(8.75, .25, 74), + N(9, .5, 72), N(9.5, .5, 71), N(10, 1.5, 69), + N(12, .25, 67), N(12.25, .25, 69), N(12.5, .25, 71), N(12.75, .25, 72), N(13, 1, 76), N(14, .5, 74), + N(14.5, .5, 71), N(15, 1, 69), N(16.5, 2.5, 69, 110)] + return score(120, it, off, legato=0.95) -def arp_chords(): - # PLUCK ARP: two held chords, the arpeggiator (on in this preset) plays them in order - ev = [] - for n in (60, 63, 67, 70): - ev.append([0.1, "on", n, 100]) - ev.append([4.8, "off", n]) - for n in (53, 56, 60, 63): - ev.append([4.9, "on", n, 100]) - ev.append([9.6, "off", n]) - return ev +def moog_bass(off): + # 001 MOOG BASS: a sixteenth-note bass riff in E minor, octave jumps, two cycles and a held octave + c1 = [N(0, .5, 40), N(.75, .25, 52), N(1, .25, 40), N(1.5, .25, 43), N(1.75, .25, 40), N(2, .5, 45), + N(2.5, .25, 47), N(2.75, .25, 45), N(3, .25, 43), N(3.5, .5, 40), N(4, .25, 40), N(4.25, .25, 40), + N(4.5, .5, 52), N(5, .25, 50), N(5.25, .25, 47), N(5.5, .25, 43), N(5.75, .25, 45), N(6, .5, 47), + N(6.5, .25, 40), N(6.75, .25, 52), N(7, .25, 43), N(7.25, .25, 45), N(7.5, .25, 47), N(7.75, .25, 50)] + c2 = [(b + 8, d, n, v + (10 if i % 4 == 0 else 0)) for i, (b, d, n, v) in enumerate(c1)] + c2 += [N(15.5, .25, 52, 120), N(15.75, 1.0, 52, 110)] + return score(110, c1 + c2, off, legato=0.85) -def pad_swell(): - # PAD SWELL: four overlapping chords, slow in and out - return overlap([(48, 55, 64), (45, 52, 60), (41, 48, 57), (43, 50, 59)], 0.2, 2.4, 2.4) +def pluck_arp(off): + # 002 PLUCK ARP: an Am9 - Fmaj7 - C6 - G7sus4 loop, struck twice per chord; the arpeggiator fills the gaps + prog = [(57, 60, 64, 67, 71), (53, 57, 60, 64), (60, 64, 67, 69), (55, 60, 62, 65)] + it = [] + for k in range(4): + for rep in range(2): + b = k * 2 + rep * 8 + it += C(b, 1.5, prog[k], 100) + it += C(b + 1.75, .5, prog[k], 90) + return score(108, it, off, legato=0.9) -def sine_solo(): - # SINE SOLO: a sung melody, long notes - seq = [(67, 2.0), (69, 1.0), (72, 2.0), (71, 1.0), (69, 1.5), (67, 1.5)] - ev, t = [], 0.3 - for n, d in seq: - ev += [[t, "on", n, 100], [t + d - 0.08, "off", n]] - t += d - return ev +def pad_swell(off): + # 003 PAD SWELL: Dm9 - Bbmaj7 - Gm7 - A7sus4, voices moving together, each chord breathing into the next + prog = [(50, 57, 60, 64), (46, 53, 57, 62), (55, 58, 62, 65), (57, 62, 64, 67)] + it = [] + for k, ch in enumerate(prog): + it += C(k * 3, 3.6, ch, 92) + return score(96, it, off, legato=1.0) -def space_drone(): - # SPACE DRONE: two low chords that move slowly - ev = [] - for n in (36, 43, 48): - ev += [[0.1, "on", n, 90], [5.0, "off", n]] - for n in (34, 41, 46): - ev += [[5.1, "on", n, 90], [9.6, "off", n]] - return ev +def sine_solo(off): + # 004 SINE SOLO: a sung melody in D major, with grace notes, a rubato held note and a turn at the end + it = [N(0, 1.5, 74, 100), N(1.5, .5, 76), N(2, 1.0, 78), N(3, .5, 76), N(3.5, .5, 74), N(4, 1.0, 71), + N(5, .125, 73), N(5.125, .125, 74), N(5.25, .25, 71), N(5.5, 1.5, 74, 110), + N(7, .5, 78), N(7.5, .5, 76), N(8, .5, 74), N(8.5, .5, 71), N(9, 1.0, 69), + N(10, .25, 71), N(10.25, .25, 73), N(10.5, .25, 74), N(10.75, .25, 73), N(11, 1.0, 74, 110)] + return score(84, it, off, legato=0.96) -def cs80_brass(): - # CS-80 BRASS: punchy chords, eight stabs - stabs = [(48, 55, 60), (44, 51, 56), (46, 53, 58), (43, 50, 55)] * 2 - ev = [] - for k, ch in enumerate(stabs): - t = 0.2 + k * 1.2 - for n in ch: - ev += [[t, "on", n, 115], [t + 0.9, "off", n]] - return ev +def space_drone(off): + # 005 SPACE DRONE: a C pedal under Cm - Ab - Bb - Cm add9, a bell melody on top every few beats + it = [] + for b, ch in ((0, (48, 55, 63)), (3, (44, 51, 60)), (6, (46, 53, 62)), (9, (48, 55, 62, 74))): + it += C(b, 3.6, ch, 90) + it += C(0, 12, (36,), 80) # the pedal tone, an octave below (C2) + for b, n in ((1.5, 79), (4.5, 75), (7.5, 72), (10.5, 67)): + it += [N(b, 2.5, n, 96)] + return score(80, it, off, legato=1.0) -def lush_strings(): - # LUSH STRINGS: a slow progression, the voices kept together - return overlap([(50, 57, 60, 65), (46, 53, 57, 65), (43, 50, 58, 62), (45, 52, 55, 61)], 0.2, 2.4, 2.4, vel=90) +def cs80_brass(off): + # 006 CS-80 BRASS: a syncopated horn riff over Bb - Gm - Eb - F7, short stabs with an offbeat, a held Bb at the end + prog = [(58, 62, 65), (55, 58, 62), (51, 55, 58), (53, 57, 60, 63)] + it = [] + for k, ch in enumerate(prog): + b = k * 4 + it += C(b, .4, ch, 115) + it += C(b + 1.5, .3, ch, 100) + it += C(b + 2.0, .3, ch, 105) + it += C(b + 3.5, .4, ch, 115) + it += C(16, 1.5, (58, 62, 65), 110) + return score(120, it, off, legato=0.9) -def aura_atmos(): - # AURA ATMOS: one cluster that turns into another - ev = [] - for n in (57, 60, 64, 67, 71, 74): - ev += [[0.2, "on", n, 90], [5.2, "off", n]] - for n in (55, 60, 62, 66, 69, 72): - ev += [[5.0, "on", n, 90], [9.6, "off", n]] - return ev +def lush_strings(off): + # 007 LUSH STRINGS: Dm7 - Gm7 - C - A7 with a violin line on top, the voices kept together + prog = [(50, 57, 60, 65), (55, 58, 62, 65), (48, 55, 60, 64), (57, 61, 64, 67)] + it = [] + for k, ch in enumerate(prog): + it += C(k * 3, 3.0, ch, 92) + top = [N(0, 1.5, 74), N(1.5, 1.5, 77), N(3, 1, 79), N(4, .5, 77), N(4.5, 1.5, 74), N(6, 1.5, 72), + N(7.5, 1.5, 76), N(9, 1.5, 79), N(10.5, 1.5, 81)] + return score(84, it + top, off, legato=1.0) -def ufo_sweep(): - # UFO: mono sweeps up and down, legato, with the preset's delay and reverb - up = list(range(36, 85, 4)) - line = (up + up[-2::-1]) * 2 - return mono(line, 0.2, 0.14) + [[7.6, "on", 60, 100], [9.6, "off", 60]] +def aura_atmos(off): + # 008 AURA ATMOS: a cluster that turns into another, a glassy motif on top, the bell figure on the offbeats + it = C(0, 5.0, (60, 64, 67, 71, 74, 77), 88) + C(5, 5.0, (62, 67, 69, 71, 74, 79), 88) + it += [N(1.5, .25, 84, 96), N(3.0, .25, 88, 96), N(4.25, .5, 86, 96), N(6.5, .25, 79, 96), + N(7.5, .25, 83, 96), N(8.75, .5, 86, 96)] + return score(72, it, off, legato=1.0) + + +def ufo_sweep(off): + # 009 UFO: a mono theremin-like line, long glides up and down, legato joins where the next note starts first + it = [N(0, 1.6, 76), N(1.4, 1.2, 71), N(2.5, 1.0, 79), N(3.4, 1.2, 74), N(4.5, 2.0, 83), + N(6.5, .5, 81), N(7.0, .5, 76), N(7.5, 1.6, 64), N(9.0, .5, 69)] + return score(72, it, off, legato=1.06) SAMPLES = [ - ("000", "mini-lead", melody_lead), - ("001", "moog-bass", bass_line), - ("002", "pluck-arp", arp_chords), + ("000", "mini-lead", mini_lead), + ("001", "moog-bass", moog_bass), + ("002", "pluck-arp", pluck_arp), ("003", "pad-swell", pad_swell), ("004", "sine-solo", sine_solo), ("005", "space-drone", space_drone), @@ -168,7 +182,7 @@ def main(): tmp = pathlib.Path(tempfile.mkdtemp(prefix="fmini_samples_")) scen = [] for i, (num, slug, fn) in enumerate(SAMPLES): - scen.append(dict(id=num, preset=i, dur=DUR, events=fn())) + scen.append(dict(id=num, preset=i, dur=DUR, events=fn(HEARD_OFFSET[i]))) assert bank.p[i]["name"] is not None (tmp / "scen.json").write_text(json.dumps(scen)) subprocess.run(["node", str(HERE / "preset_lab.mjs"), a.wasm, str(tmp / "scen.json"), str(tmp / "wav")], check=True)