Online Sequencer Make music online
  • Sequences
  • Members
  • Chat
  • Forum
  • Wiki

Existing user? Sign In Create account
Login at Online Sequencer Forums

Online Sequencer Forums › Online Sequencer › Suggestions
« Previous 1 … 26 27 28 29 30 … 48 Next »

Crowd Sourced Distortion Curves

Thread tools
Crowd Sourced Distortion Curves
Liam Offline
Code Monkey
246 Posts:
 
#1
06-19-2021, 05:28 PM
Hi all. I'm working on adding a distortion filter to OS, but I'm having some trouble getting distortion curves that sound cool. So I need your help.

Distortion curves take sound input in the range -1 to 1, and map it to some output based on the curve:
[Image: unknown.png]

Some other examples of distortion curves I'm playing with:
[Image: unknown.png]



These curves are described by a list of numbers, eg [-1, 0.5, 0, 0.5, 1] would be a straight line (and so wouldn't do anything Tounge). The first number in the list controls where -1 is mapped to, the last number says where 1 is mapped to, and the middle number is where 0 is mapped to.

If you want to help invent some wave shaping curves, open a new OS tab, and before you do anything, run this code in the JS console (ctrl+shift+J to open the console). This code replaces the reverb effect, so you can test it by enabling reverb on an instrument. If you want to change the curve, don't rerun the whole chunk of JS, just the last line where the curve is defined. You can have an many or as few numbers in the list as you want. A good way of generating numbers for the curve is to use a Google Sheets.

Code:
audioSystem.convolver = audioSystem.audioContext.createWaveShaper();
audioSystem.convolver.oversample = '4x';
audioSystem.convolver.connect(audioSystem.destination);
audioSystem.convolver.curve = Float32Array.of(-1, -1, -1, 0, 1, 1, 1);

If you invent anything cool, post the list of numbers here, and tell me what it sounds like. Your curve might end up in OS Wink


https://tiusic.com

https://www.youtube.com/playlist?list=PL...v872SZVXzI
  • x1
  • x2
    • x1
    • Lopyt
    • x2
    • fox
    • Jacob_
Reply

Messages In This Thread
Crowd Sourced Distortion Curves - by Liam - 06-19-2021, 05:28 PM
RE: Crowd Sourced Distortion Curves - by pseudoname - 06-19-2021, 07:51 PM
RE: Crowd Sourced Distortion Curves - by Liam - 06-19-2021, 09:49 PM
RE: Crowd Sourced Distortion Curves - by Firebolt391d - 06-19-2021, 09:19 PM
RE: Crowd Sourced Distortion Curves - by Liam - 06-19-2021, 09:30 PM
RE: Crowd Sourced Distortion Curves - by Lopyt - 06-19-2021, 09:28 PM
RE: Crowd Sourced Distortion Curves - by Benvisions - 06-20-2021, 03:31 AM
RE: Crowd Sourced Distortion Curves - by The Institute - 06-20-2021, 05:31 AM
RE: Crowd Sourced Distortion Curves - by Lopyt - 06-20-2021, 07:44 AM
RE: Crowd Sourced Distortion Curves - by Liam - 06-20-2021, 08:43 AM
RE: Crowd Sourced Distortion Curves - by Lopyt - 06-20-2021, 07:46 AM



Users browsing this thread:   1 Guest(s)


  •  Return to Top
  •  Contact Us
  •   Home
  •  Lite mode
© Rush Crafted with ❤ by iAndrew
Powered By MyBB, © 2002-2025 MyBB Group.
Linear Mode
Threaded Mode
View a Printable Version
Subscribe to this thread
Add Poll to this thread
Send thread to a friend