A node-red node for generating simplex noise
npm install node-red-contrib-simplex-noiseThis package provides a Node-Red node for creating simplex noise.
The simplest way to use this is to wire up an inject-node to the input and a debug node to the output.
Configure inject-node to set the message payload to the current timestamp and send it every second. Now you get a random
number between -1 and +1 every second! You can import this example from examples/simple-example.json.
!Screenshot of 1d chart example
Wire up any node that generates a linearly increasing number as an input.
You will get a nice smooth curve if you increase the input value by 0.1 every time you send a message to the node.
The output will be a number between -1 and +1 representing the noise value for the given value.
Note that you will always get the same output for the same input. This will only change after your restart Node-Red.
You can map the output to another value range using the 'range' node. Check out examples/1d-chart-example.json
for a complete example. This example needs the dashboard package and generates a line chart from 1D simplex noise.