Plug-ins, Hosts, Apps,
Hardware, Soundware
Developers
(Brands)
Videos Groups
Whats's in?
Banks & Patches
Download & Upload
Music Search
KVR
   
KVR Forum » DSP and Plug-in Development
Thread Read
How do plugins handle imported audio files?
millenliam
KVRer
- profile
- pm
PostPosted: Tue Dec 18, 2012 6:50 am reply with quote
Hey all,
I'm about to start making an instrument plugin that allows the user to import audio files which can be triggered and manipulated using MIDI data.

I was wondering how plugins of this nature generally handle the location of the imported audio file. I like the idea that when the user adds the file to the plugin it creates a copy of it within a 'project' directory of some sort, similar to that of when you import audio files into a DAW project.
Is that a common way for plugins to behave?
^ Joined: 20 Jul 2011  Member: #261078  Location: Cardiff, UK
Robin from www.rs-met.com
KVRAF
- profile
- pm
- e-mail
- www
PostPosted: Tue Dec 18, 2012 7:03 am reply with quote
i use relative paths with respect to the plugin-dll. that's plain and simple and sufficient for those little single-cycles that i currently need to import. if you have a huge amount of samples, it is probably more user-friendly to let the user specify a library path. i don't currently do that, but if i would, i would maintain this library-path in a preferences file which itself should be in the same directory as the plugin dll (or some subfolder thereof). as for creating your own copies in a project folder: i don't think that there's a way to inquire the project folder from the DAW.
----
^ Joined: 08 Mar 2004  Member: #15959  Location: Berlin, Germany
millenliam
KVRer
- profile
- pm
PostPosted: Tue Dec 18, 2012 7:25 am reply with quote
Robin from www.rs-met.com wrote:
as for creating your own copies in a project folder: i don't think that there's a way to inquire the project folder from the DAW.

I thought as much. It would be nice, but I'd imagine it would complicate things when the DAW tries to do certain things, for example, removing unused audio files.
The idea of creating a global audio files directory for the plugin seems like a good way of doing it though.
^ Joined: 20 Jul 2011  Member: #261078  Location: Cardiff, UK
All times are GMT - 8 Hours

Printable version
Page 1 of 1
Display posts from previous:   
ReplyNew TopicPrevious TopicNext Topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Username: Password:  
KVR Developer Challenge 2012