Open utterances-bot opened 5 years ago
Thanks for this tutorial, was really helpful. I don't have much experience programming vsts but do you know if there is a standard method to get the current sample rate from the client/daw using this crate? Thanks :)
@jamieb133: I've not tried it myself, but in the vst
crate (the more up to date fork of the one I used in this tutorial), there seems to be two ways to get it:
get_time_info
method on HostCallback
(an instance of which gets passed when the plugin is initialized).set_sample_rate
hook that gets called when the sample rate changes.I'm not sure which one of these is standard/better - asking on the RustAudio Discourse might be a good idea. There's also a Telegram chat for Rust VST development.
Hopefully that helps!
Extremely helpful to see the process from idea to execution for someone getting into both Rust and audio programming. Thank you!
@Spstolar: No problem, very glad people are still getting some use out of this old post :smile:
Thank you for the tutorial! I'm learning rust at high school, I'm a musician and I love music software I definitely will try your tut :)
@duartecancela: I'm glad people are still getting use out of this article 😄 Be sure to check out Doomy's guide too, it's a bit more up to date.
Writing an Audio Plugin in Rust - Joe Clay
Along the long and slightly convoluted path I took to finding my current career as a software developer, I ended up spending a year at college studying music. It didn't really amount to much in the way of gainful employment, but it's still something I'm r…
https://www.seventeencups.net/posts/writing-an-audio-plugin-in-rust/