Coder Social home page Coder Social logo

How would I make a synth? about dawdreamer HOT 5 CLOSED

Conundroy avatar Conundroy commented on June 26, 2024
How would I make a synth?

from dawdreamer.

Comments (5)

DBraun avatar DBraun commented on June 26, 2024

It sounds like polyphony is not enabled for the synthesizer. Is it a VST plugin? Which one? You might need to use synth.open_editor() to enable polyphony. Faust Processors have a num_voices integer parameter.

from dawdreamer.

Conundroy avatar Conundroy commented on June 26, 2024

It sounds like polyphony is not enabled for the synthesizer. Is it a VST plugin? Which one? You might need to use synth.open_editor() to enable polyphony. Faust Processors have a num_voices integer parameter.

Any VST, the test one I'm using is TAL-BassLine piped through a plugin processor. Does the editor have to stay on?

from dawdreamer.

DBraun avatar DBraun commented on June 26, 2024

Can you try code like this

import dawdreamer as daw
from scipy.io import wavfile

PLUGIN_PATH="plugins/TAL-NoiseMaker.vst"
OUTPUT_PATH="my_output.wav"
SAMPLE_RATE=44100
DURATION = 10.
BLOCK_SIZE=128

engine = daw.RenderEngine(SAMPLE_RATE, BLOCK_SIZE)

synth = engine.make_plugin_processor("synth", PLUGIN_PATH)
synth.open_editor()

# Test polyphony with 3 overlapping notes
# (MIDI note, velocity, start sec, duration sec)
synth.add_midi_note(72, 40, 0.1, 5)
synth.add_midi_note(76, 40, 1.1, 3)
synth.add_midi_note(79, 40, 2.1, 1)

graph = [(synth, [])]

engine.load_graph(graph)
engine.render(DURATION)
audio = engine.get_audio()

wavfile.write(OUTPUT_PATH, SAMPLE_RATE, audio.transpose())

When the synth UI opens you'd have to make sure polyphony is enabled. On macos, I'm using theTAL-NoiseMaker.vst in the plugins folder and if I enable polyphony it's working correctly.

from dawdreamer.

Conundroy avatar Conundroy commented on June 26, 2024

I managed to have polyphony now. But what I want is a synth with real time render essentially. From what I read, I don't think I can achieve this with the current version of Dawdreamer just yet. Or maybe there's something I'm missing?

from dawdreamer.

DBraun avatar DBraun commented on June 26, 2024

Right. It’s not a feature currently.

from dawdreamer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.