isuttell / sine-waves

Generate multiple configurable sine waves
Other
415 stars 67 forks source link

Variable wavelength and amplitude #15

Open coreyworrell opened 5 years ago

coreyworrell commented 5 years ago

Hello,

Is it possible to make it so the wavelength and amplitude vary randomly or by a function? Probably wouldn't be called a sine wave anymore, but the library is so close to doing what we want that it may be able to work.

Something like:

waves: [
  {
    amplitude: function(some_useful_variable_maybe) {
      return some_variable * another_idk
    },
    wavelength: function(same_thing_here) {
      return something
    }
  }
]

Example: 190411_LANDING pdf