How do you mix on dawdreamer? #136
Answered
by
DBraun
samuelbraun04
asked this question in
Q&A
-
For example, how could I a mix a .wav file to -6 dB? |
Beta Was this translation helpful? Give feedback.
Answered by
DBraun
Dec 24, 2022
Replies: 1 comment
-
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_description()
[{'index': 0, 'name': '/dawdreamer/loudness', 'numSteps': 120000, 'isDiscrete': False, 'label': 'loudness', 'min': -100.0, 'max': 20.0, 'step': 0.0010000000474974513, 'value': -6.0}]
>>> Then you would connect your audio to that Faust Processor. You can also set the loudness anytime: |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
samuelbraun04
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
python stuff: