Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using @hv_table descriptor in VST framework #255

Open
sergiogranadamoreno opened this issue Mar 7, 2018 · 2 comments
Open

using @hv_table descriptor in VST framework #255

sergiogranadamoreno opened this issue Mar 7, 2018 · 2 comments

Comments

@sergiogranadamoreno
Copy link

I'm trying to do a simple looping sampler (attached). I know from issue #131 that it is possible to use the @hv_table descriptor to load samples into tables. Although there is documentation on how to do this from Unity, I couldn't find information on how to modify the VST source code to get the same functionality in a VST plug-in.

Would it be possible to use this descriptor to allow the user to load an audio file from hardisk via the VST interface? If so, does anybody knows documentation to start learning how to do this?

Thanks!
table-test.pd.zip

@diplojocus
Copy link
Contributor

@sergiogranadamoreno unfortunately there's no in-built mechanism in heavy for file loading, mainly because of the cross-platform support needed.

It should be possible to modify the VST source code to create an file openpanel, though it would be different on each operating system. From there you'd be able to access the audio file data and load it into a table in the patch context.

@diplojocus
Copy link
Contributor

This library could be useful for handling the file open dialog part https://github.com/mlabbe/nativefiledialog

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants