Skip to content

Instantly share code, notes, and snippets.

@beefchimi
Last active October 22, 2017 23:45
Show Gist options
  • Save beefchimi/058cfb1a2d3c23e005d11ee5462bb59a to your computer and use it in GitHub Desktop.
Save beefchimi/058cfb1a2d3c23e005d11ee5462bb59a to your computer and use it in GitHub Desktop.
Oscillator presets
const up = {
wave: 'sine',
freq: {
start: 392,
end: 493.88,
},
volume: 1,
duration: 0.2,
};
const downGood = {
wave: 'sine',
freq: {
start: 493.88,
end: 698.46,
},
volume: 1,
duration: 0.1,
};
const downBad = {
wave: 'sine',
freq: {
start: 587.33,
end: 392,
},
volume: 1,
duration: 0.1,
};
const swap = {
wave: 'sine',
freq: {
start: 880,
end: 1760,
},
volume: 0.2,
duration: 0.06,
};
const synthPresets = {
up,
downBad,
downGood,
swap,
};
export default synthPresets;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment