Page 1 of 1

Opening any file as a .wav

Posted: Thu Feb 12, 2015 6:09 pm
by toni_aguirre
In audacity it is possible to load any file as raw data and play it. Is there a way to make a simple VST to load any file ,read it as a .wav and use it as in a simple sampler?

Re: Opening any file as a .wav

Posted: Thu Feb 12, 2015 6:37 pm
by KG_is_back
you may try to change the extension of the file to .wav and try to open it. It will most likely not work. Another way, that should work is to use dll component to load a file as a raw PCM data, put the data into a float array and use that. Or to convert the file into temporary wav file, load it with wave file prim and delete it afterwards.
Exo is working on loading wave files with pointer data and also mp3 converters using DLL compoment. Perhaps he can help you.

Re: Opening any file as a .wav

Posted: Mon Feb 16, 2015 12:07 pm
by toni_aguirre
KG_is_back wrote:you may try to change the extension of the file to .wav and try to open it. It will most likely not work. Another way, that should work is to use dll component to load a file as a raw PCM data, put the data into a float array and use that. Or to convert the file into temporary wav file, load it with wave file prim and delete it afterwards.
Exo is working on loading wave files with pointer data and also mp3 converters using DLL compoment. Perhaps he can help you.

How can I do so?

Re: Opening any file as a .wav

Posted: Mon Feb 16, 2015 2:54 pm
by Exo
What kind of results are you expecting? I cannot imagine it would be very pleasing to the ear and would likely just result in noise.

That is unless an algorithm is written to covert it to something more musical.

But yes using the dll component would be the only way. I currently don't have time or much interest in doing such a thing.