Add ADSR envelope.

main
Ben Niemann 1 year ago
parent 053670aaaf
commit 8a7d8afdfa

@ -0,0 +1,33 @@
/*
* @begin:license
*
* Copyright (c) 2015-2019, Benjamin Niemann <pink@odahoda.de>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* @end:license
*/
declare input0_name "gate";
en = library("envelopes.lib");
os = library("oscillators.lib");
at = hslider("attack", 0.05, 0.0, 10.0, 0.001);
dt = hslider("decay", 0.05, 0.0, 10.0, 0.001);
sl = hslider("sustain", 0.5, 0.0, 1.0, 0.001);
rt = hslider("release", 0.5, 0.0, 10.0, 0.001);
process = en.adsr(at, dt, sl, rt);

@ -0,0 +1,5 @@
uri: builtin://adsr
audio_class_uri: node://adsr
display_name: Envelope (ADSR)
ui:
body_qml: noisicaa/node_lib/adsr/ui.qml

@ -0,0 +1,22 @@
# @begin:license
#
# Copyright (c) 2015-2021, Ben Niemann <pink@odahoda.de>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# @end:license
def build(ctx):
ctx.noise_faust_node()
Loading…
Cancel
Save