diff --git a/docs/library/buffer/granulation/granulator/index.md b/docs/library/buffer/granulation/granulator/index.md index 86d129fa..e13538aa 100644 --- a/docs/library/buffer/granulation/granulator/index.md +++ b/docs/library/buffer/granulation/granulator/index.md @@ -6,7 +6,7 @@ description: Granulator: Granulator. Generates a grain from the given buffer eac # Granulator ```python -Granulator(buffer=None, clock=0, pos=0, duration=0.1, amplitude=0.0, pan=0.0, rate=1.0, max_grains=2048, wrap=false) +Granulator(buffer=None, clock=0, pos=0, duration=0.1, amplitude=1.0, pan=0.0, rate=1.0, max_grains=2048, wrap=false) ``` Granulator. Generates a grain from the given buffer each time a trigger is received on the `clock` input. Each new grain uses the given `duration`, `amplitude`, `pan` and `rate` values presented at each input at the moment the grain is created. The input buffer can be mono or stereo. If `wrap` is true, grain playback can wrap around the end/start of the buffer. diff --git a/source/include/signalflow/node/buffer/granulation/granulator.h b/source/include/signalflow/node/buffer/granulation/granulator.h index d55a3889..108c462f 100644 --- a/source/include/signalflow/node/buffer/granulation/granulator.h +++ b/source/include/signalflow/node/buffer/granulation/granulator.h @@ -23,7 +23,7 @@ class Granulator : public Node NodeRef clock = 0, NodeRef pos = 0, NodeRef duration = 0.1, - NodeRef amplitude = 0.0, + NodeRef amplitude = 1.0, NodeRef pan = 0.0, NodeRef rate = 1.0, NodeRef max_grains = 2048, diff --git a/source/src/python/nodes.cpp b/source/src/python/nodes.cpp index 78f74022..d0121bf6 100644 --- a/source/src/python/nodes.cpp +++ b/source/src/python/nodes.cpp @@ -58,7 +58,7 @@ void init_python_nodes(py::module &m) .def(py::init, std::vector, NodeRef, NodeRef, NodeRef, NodeRef>(), "buffer"_a = nullptr, "onset_times"_a = 0, "durations"_a = 0, "index"_a = 0.0, "rate"_a = 1.0, "clock"_a = 0, "max_grains"_a = 2048); py::class_>(m, "Granulator", "Granulator. Generates a grain from the given buffer each time a trigger is received on the `clock` input. Each new grain uses the given `duration`, `amplitude`, `pan` and `rate` values presented at each input at the moment the grain is created. The input buffer can be mono or stereo. If `wrap` is true, grain playback can wrap around the end/start of the buffer.") - .def(py::init(), "buffer"_a = nullptr, "clock"_a = 0, "pos"_a = 0, "duration"_a = 0.1, "amplitude"_a = 0.0, "pan"_a = 0.0, "rate"_a = 1.0, "max_grains"_a = 2048, "wrap"_a = false); + .def(py::init(), "buffer"_a = nullptr, "clock"_a = 0, "pos"_a = 0, "duration"_a = 0.1, "amplitude"_a = 1.0, "pan"_a = 0.0, "rate"_a = 1.0, "max_grains"_a = 2048, "wrap"_a = false); #ifdef __APPLE__