Skip to content

Why my code is not working? #55

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

You must be logged in to vote

The main issue is that you need to create a playback processor with engine.make_playback_processor("playback", multi)
I also think that meu_plugin.set_parameter(0, 45) won't work well because VST parameters must be between 0 and 1. 45 is outside this range.

Full script:

import dawdreamer as daw
import numpy as np
from scipy.io import wavfile
import librosa

SAMPLE_RATE = 44100
BUFFER_SIZE = 512
DURATION = 15

def load_audio_file(file_path, duration=None):
  sig, rate = librosa.load(file_path, duration=duration, mono=False, sr=SAMPLE_RATE)
  assert(rate == SAMPLE_RATE)
  return sig

engine = daw.RenderEngine(SAMPLE_RATE, BUFFER_SIZE)
meu_plugin = engine.make_plugin_processor("plugin", "C:/…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@Felix-Eger
Comment options

@DBraun
Comment options

Answer selected by DBraun
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #54 on October 07, 2021 19:29.