Browse Source

make compressor attack/release logarithmic

master
Alexandros Theodotou 2 years ago
parent
commit
fe909a0b00
Signed by: alex
GPG Key ID: 022EAE42313D70F3
  1. 6
      README.md
  2. 2
      ext/README
  3. 21
      ext/meson.build
  4. 6
      plugins/compressor/ttl_gen.c
  5. 8
      plugins/meson.build

6
README.md

@ -9,9 +9,9 @@ Zrythm DAW. @@ -9,9 +9,9 @@ Zrythm DAW.
Plugins
-------
Chordz - plays chords using white keys
Compressor - compressor
Saw - a supersaw synth with 1 parameter
- **Chordz** - plays chords using white keys
- **Compressor** - compressor
- **Saw** - a supersaw synth with 1 parameter
Dependencies
------------

2
ext/README

@ -0,0 +1,2 @@ @@ -0,0 +1,2 @@
Modules in this directory are not part of ZPlugins,
but are used with ZPlugins.

21
ext/meson.build

@ -1,22 +1 @@ @@ -1,22 +1 @@
# Copyright (C) 2020 Alexandros Theodotou <alex at zrythm dot org>
#
# This file is part of ZPlugins
#
# ZPlugins is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# ZPlugins 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 Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with ZPlugins. If not, see <https://www.gnu.org/licenses/>.
subdir ('Soundpipe')
#soundpipe_lib = cc.find_library (
#'soundpipe',
#dirs: join_paths (
#meson.current_source_dir(), 'Soundpipe'))

6
plugins/compressor/ttl_gen.c

@ -107,6 +107,7 @@ int main ( @@ -107,6 +107,7 @@ int main (
lv2:default %f ;\n\
lv2:minimum %f ;\n\
lv2:maximum %f ;\n\
lv2:portProperty pprop:logarithmic; \n\
rdfs:comment \"Compressor attack\" ;\n\
] , [\n\
a lv2:InputPort ,\n\
@ -117,6 +118,7 @@ int main ( @@ -117,6 +118,7 @@ int main (
lv2:default %f ;\n\
lv2:minimum %f ;\n\
lv2:maximum %f ;\n\
lv2:portProperty pprop:logarithmic; \n\
rdfs:comment \"Compressor release\" ;\n\
] , [\n\
a lv2:InputPort ,\n\
@ -153,9 +155,9 @@ int main ( @@ -153,9 +155,9 @@ int main (
lv2:name \"Stereo Out R\" ;\n\
] .\n",
/* attack */
0.1, 0.0, 10.0,
0.1, 0.000001, 10.0,
/* release */
0.1, 0.0, 10.0,
0.1, 0.000001, 10.0,
/* ratio */
1.0, 1.0, 40.0,
/* threshold */

8
plugins/meson.build

@ -15,11 +15,11 @@ @@ -15,11 +15,11 @@
# You should have received a copy of the GNU Affero General Public License
# along with ZPlugins. If not, see <https://www.gnu.org/licenses/>.
# name, version
# name, type, version
plugins = [
['Chordz', 'MIDIPlugin', '0.2.0'],
['Compressor', 'CompressorPlugin', '0.0.1'],
['Saw', 'InstrumentPlugin', '0.0.1'],
['Chordz', 'MIDIPlugin', '1.0.0'],
['Compressor', 'CompressorPlugin', '1.0.0'],
['Saw', 'InstrumentPlugin', '1.0.0'],
]
foreach pl : plugins

Loading…
Cancel
Save