Skip to content

How do you mix on dawdreamer? #136

Answered by DBraun
samuelbraun04 asked this question in Q&A
Discussion options

You must be logged in to vote

You could find the decibels of the input signal in advance. See https://stackoverflow.com/questions/63347977/what-is-the-conceptual-purpose-of-librosa-amplitude-to-db

Then suppose you want to apply an additional decibel reduction on it (-6dB). This is some Faust code for that

import("stdfaust.lib");
gain = hslider("loudness", -6., -100, 20., .001) : ba.db2linear;
process = par(i, 2, _*gain);

python stuff:

>>> import dawdreamer
>>> e = dawdreamer.RenderEngine(44100, 1)
>>> f = e.make_faust_processor("faust")
>>> c = """import("stdfaust.lib");gain = hslider("loudness", -6., -100, 20., .001) : ba.db2linear;process = par(i, 2, _*gain);"""
>>> assert f.set_dsp_string(c)
>>> f.get_parameters_de…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by samuelbraun04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants