Im working on a sampler Plug-in. I have already built a simple Plugin with Juce and have basic C++ knowledge, but still I would call myself a newbie… In this Thread I will post some questions which (maybe 8) 8) ) come up while writing my Sampler.
Thanks in anticipation for ur help!
Here is my first question:
All I want to do is to read a .wav File from a certain Directory (like ‘C:/…’), to put it into a SynthesiserVoice.
I tried to figure out how WavAudioFormat Class works, but I dont get the point what a stream is.
The Demo is loading a MemoryInputStream from a namespace called “BinaryData” - and in BinaryData.cpp there is a char array if the cello.wav . Whats going on there?
And what do I have to do? Do I need to use a ScopedPointer too, or is a normal c++ Pointer sufficient (deleted in the Destructor of the Audioprocessor)?
Due to the fact, that I will use the wav File for a sampler, It would be ok if I put the Sample(s) in some kind of “Binary Data” Folder, like it is done by the JUCE demo. But for the beginng an absolut path would be OK too - my goal for this week is to click on a MidiKeyboardComponent and hear a sound…