I’m trying to implement the Synthesizer class and giving it some sounds like below (This is straight out of the juce demo)
= wavFormat.createReaderFor (new MemoryInputStream (ResourceSynth::tek3,ResourceSynth::tek3_size,
synth.addSound (new SamplerSound (T("demo sound"), *audioReader, samplerNotes, 74, // root midi note 0.1, // attack time 0.1, // release time 16.0 // maximum sample length ));[/code]
This works good, however how can set this sound to loop mode when a key is pressed? with the above implementation when you press a key it only triggers it once and fades out based on the release time.I have a beat sample that I want it to loop when a key is held down…Cheers!