More clean up
This commit is contained in:
parent
c94ffcc506
commit
f03da42b5e
43 changed files with 818 additions and 1076 deletions
|
|
@ -1,25 +1,15 @@
|
|||
import type { GardenAudioChord } from '../audio/garden-audio-config';
|
||||
import type { GardenAudioVibeSettings } from '../audio/garden-audio-config';
|
||||
import { colorInteractionSettings } from './color-interactions';
|
||||
import { VibeId, type VibePreset } from './types';
|
||||
|
||||
const majorProgression: Array<GardenAudioChord> = [
|
||||
{ rootOffset: 0, quality: 'major' },
|
||||
{ rootOffset: 9, quality: 'minor' },
|
||||
{ rootOffset: 5, quality: 'major' },
|
||||
{ rootOffset: 7, quality: 'major' },
|
||||
];
|
||||
|
||||
const minorProgression: Array<GardenAudioChord> = [
|
||||
{ rootOffset: 0, quality: 'minor' },
|
||||
{ rootOffset: 8, quality: 'major' },
|
||||
{ rootOffset: 3, quality: 'major' },
|
||||
{ rootOffset: 10, quality: 'major' },
|
||||
];
|
||||
|
||||
const majorPentatonic = [0, 2, 4, 7, 9];
|
||||
const suspendedPentatonic = [0, 2, 5, 7, 9];
|
||||
const mixolydianPentatonic = [0, 2, 4, 7, 10];
|
||||
const dorianHexatonic = [0, 2, 3, 5, 7, 10];
|
||||
const darkMinorPentatonic = [0, 2, 3, 7, 10];
|
||||
const defaultAudioSettings = {
|
||||
idleIntensity: 0.08,
|
||||
bpm: 74,
|
||||
rampUpIntensity: 0.85,
|
||||
rampUpTime: 0.08,
|
||||
noteLength: 0.42,
|
||||
notePitchOffset: 0,
|
||||
} satisfies Omit<GardenAudioVibeSettings, 'brightness'>;
|
||||
|
||||
export const defaultVibeId = VibeId.CandyRain;
|
||||
|
||||
|
|
@ -34,23 +24,22 @@ export const vibePresets: Array<VibePreset> = [
|
|||
],
|
||||
backgroundColor: [16, 21, 31],
|
||||
settings: {
|
||||
...colorInteractionSettings,
|
||||
backgroundGrainStrength: 0.018,
|
||||
brushSize: 14,
|
||||
brushSizeVariation: 0.5,
|
||||
clarity: 0.62,
|
||||
decayRateTrails: 965,
|
||||
diffusionRateTrails: 0.22,
|
||||
diffusionRateBrush: 0.35,
|
||||
individualTrailWeight: 0.07,
|
||||
moveSpeed: 82,
|
||||
sensorOffsetAngle: 34,
|
||||
sensorOffsetDistance: 38,
|
||||
spawnPerPixel: 0.22,
|
||||
turnSpeed: 58,
|
||||
},
|
||||
audio: {
|
||||
rootMidi: 57,
|
||||
scale: majorPentatonic,
|
||||
...defaultAudioSettings,
|
||||
brightness: 1.04,
|
||||
delayTimeMultiplier: 0.92,
|
||||
progression: majorProgression,
|
||||
},
|
||||
},
|
||||
{
|
||||
|
|
@ -63,28 +52,22 @@ export const vibePresets: Array<VibePreset> = [
|
|||
],
|
||||
backgroundColor: [23, 32, 22],
|
||||
settings: {
|
||||
...colorInteractionSettings,
|
||||
backgroundGrainStrength: 0.014,
|
||||
brushSize: 16,
|
||||
brushSizeVariation: 0.35,
|
||||
clarity: 0.68,
|
||||
decayRateTrails: 975,
|
||||
diffusionRateTrails: 0.18,
|
||||
diffusionRateBrush: 0.28,
|
||||
individualTrailWeight: 0.06,
|
||||
moveSpeed: 70,
|
||||
sensorOffsetAngle: 28,
|
||||
sensorOffsetDistance: 46,
|
||||
spawnPerPixel: 0.18,
|
||||
turnSpeed: 44,
|
||||
},
|
||||
audio: {
|
||||
rootMidi: 53,
|
||||
scale: mixolydianPentatonic,
|
||||
...defaultAudioSettings,
|
||||
brightness: 0.92,
|
||||
delayTimeMultiplier: 1.08,
|
||||
progression: [
|
||||
{ rootOffset: 0, quality: 'major' },
|
||||
{ rootOffset: 7, quality: 'major' },
|
||||
{ rootOffset: 9, quality: 'minor' },
|
||||
{ rootOffset: 5, quality: 'major' },
|
||||
],
|
||||
},
|
||||
},
|
||||
{
|
||||
|
|
@ -97,23 +80,22 @@ export const vibePresets: Array<VibePreset> = [
|
|||
],
|
||||
backgroundColor: [15, 24, 34],
|
||||
settings: {
|
||||
...colorInteractionSettings,
|
||||
backgroundGrainStrength: 0.022,
|
||||
brushSize: 13,
|
||||
brushSizeVariation: 0.58,
|
||||
clarity: 0.58,
|
||||
decayRateTrails: 955,
|
||||
diffusionRateTrails: 0.28,
|
||||
diffusionRateBrush: 0.42,
|
||||
individualTrailWeight: 0.055,
|
||||
moveSpeed: 90,
|
||||
sensorOffsetAngle: 36,
|
||||
sensorOffsetDistance: 35,
|
||||
spawnPerPixel: 0.25,
|
||||
turnSpeed: 62,
|
||||
},
|
||||
audio: {
|
||||
rootMidi: 50,
|
||||
scale: dorianHexatonic,
|
||||
...defaultAudioSettings,
|
||||
brightness: 1,
|
||||
delayTimeMultiplier: 1.12,
|
||||
progression: minorProgression,
|
||||
},
|
||||
},
|
||||
{
|
||||
|
|
@ -126,23 +108,22 @@ export const vibePresets: Array<VibePreset> = [
|
|||
],
|
||||
backgroundColor: [20, 18, 29],
|
||||
settings: {
|
||||
...colorInteractionSettings,
|
||||
backgroundGrainStrength: 0.018,
|
||||
brushSize: 12,
|
||||
brushSizeVariation: 0.45,
|
||||
clarity: 0.64,
|
||||
decayRateTrails: 968,
|
||||
diffusionRateTrails: 0.2,
|
||||
diffusionRateBrush: 0.32,
|
||||
individualTrailWeight: 0.065,
|
||||
moveSpeed: 76,
|
||||
sensorOffsetAngle: 32,
|
||||
sensorOffsetDistance: 42,
|
||||
spawnPerPixel: 0.2,
|
||||
turnSpeed: 52,
|
||||
},
|
||||
audio: {
|
||||
rootMidi: 49,
|
||||
scale: darkMinorPentatonic,
|
||||
...defaultAudioSettings,
|
||||
brightness: 0.9,
|
||||
delayTimeMultiplier: 1.24,
|
||||
progression: minorProgression,
|
||||
},
|
||||
},
|
||||
{
|
||||
|
|
@ -155,23 +136,22 @@ export const vibePresets: Array<VibePreset> = [
|
|||
],
|
||||
backgroundColor: [25, 23, 22],
|
||||
settings: {
|
||||
...colorInteractionSettings,
|
||||
backgroundGrainStrength: 0.024,
|
||||
brushSize: 15,
|
||||
brushSizeVariation: 0.62,
|
||||
clarity: 0.55,
|
||||
decayRateTrails: 948,
|
||||
diffusionRateTrails: 0.32,
|
||||
diffusionRateBrush: 0.48,
|
||||
individualTrailWeight: 0.05,
|
||||
moveSpeed: 96,
|
||||
sensorOffsetAngle: 40,
|
||||
sensorOffsetDistance: 32,
|
||||
spawnPerPixel: 0.24,
|
||||
turnSpeed: 70,
|
||||
},
|
||||
audio: {
|
||||
rootMidi: 56,
|
||||
scale: majorPentatonic,
|
||||
...defaultAudioSettings,
|
||||
brightness: 1.08,
|
||||
delayTimeMultiplier: 0.86,
|
||||
progression: majorProgression,
|
||||
},
|
||||
},
|
||||
{
|
||||
|
|
@ -184,28 +164,22 @@ export const vibePresets: Array<VibePreset> = [
|
|||
],
|
||||
backgroundColor: [16, 24, 32],
|
||||
settings: {
|
||||
...colorInteractionSettings,
|
||||
backgroundGrainStrength: 0.012,
|
||||
brushSize: 18,
|
||||
brushSizeVariation: 0.28,
|
||||
clarity: 0.7,
|
||||
decayRateTrails: 982,
|
||||
diffusionRateTrails: 0.14,
|
||||
diffusionRateBrush: 0.24,
|
||||
individualTrailWeight: 0.075,
|
||||
moveSpeed: 62,
|
||||
sensorOffsetAngle: 26,
|
||||
sensorOffsetDistance: 52,
|
||||
spawnPerPixel: 0.16,
|
||||
turnSpeed: 40,
|
||||
},
|
||||
audio: {
|
||||
rootMidi: 62,
|
||||
scale: suspendedPentatonic,
|
||||
...defaultAudioSettings,
|
||||
brightness: 0.88,
|
||||
delayTimeMultiplier: 1.32,
|
||||
progression: [
|
||||
{ rootOffset: 0, quality: 'major' },
|
||||
{ rootOffset: 5, quality: 'major' },
|
||||
{ rootOffset: 9, quality: 'minor' },
|
||||
{ rootOffset: 7, quality: 'major' },
|
||||
],
|
||||
},
|
||||
},
|
||||
];
|
||||
|
|
|
|||
Loading…
Reference in a new issue