Skip to content

Commit

Permalink
Fix bug in the vst example in README.md (#229)
Browse files Browse the repository at this point in the history
* Fix bug in the vst example

* Update README.md

[ci skip]

---------

Co-authored-by: Peter Sobot <psobot@spotify.com>
  • Loading branch information
DavidDiazGuerra and psobot authored Jul 11, 2023
1 parent e275780 commit 63d69c9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,20 +169,20 @@ print(effect.parameters.keys())
effect.ratio = 15

# Render some audio by passing MIDI to an instrument:
samplerate = 44100
sample_rate = 44100
audio = instrument(
[Message("note_on", note=60), Message("note_off", note=60, time=5)],
samplerate,
duration=5, # seconds
sample_rate=sample_rate,
)

# Apply effects to this audio:
effected = effect(audio, samplerate)
effected = effect(audio, sample_rate)

# ...or put the effect into a chain with other plugins:
board = Pedalboard([effect, Reverb()])
# ...and run that pedalboard with the same VST instance!
effected = board(audio, samplerate)
effected = board(audio, sample_rate)
```

### Creating parallel effects chains
Expand Down

0 comments on commit 63d69c9

Please sign in to comment.