Multichannel Routing issue



  • @staiff Thanks for checking it out. AFAIK the HISE plugin is the only multichannel version available. I can't create VSTi's that have multiple outputs on the standalone version.

    what daw do you use ?
    i use a lot of daws (reaper, bitwig, sonar, live and studio one)
    but i prfer studio one (for multichannels) it's easy to know if it works or not.
    

    I'm using Cubase and Reaper over here.

    try standalone HISE instead of VST; because first you don't have to open DAW or something else to work. Just HISE.
    

    I'd love to! @Christoph-Hart Hurry up and get multichannel in standalone HISE 😉



  • the pics i put above is made with standalone. so it's possible via standalone. Think it's possible to test it in reaper, but honesty i just use reaper to test the plugin because if reaper reject it, your plugin never works ! Reaper is powerful for that: a best tester for plugin stability. but for puting FX in bus, testing multichannel i really don't know how ... for me studio One is easier .... but because i use a lot S1 for composing.

    maybe have no time tomorrow ( but will have the time). in the worse case i'll make it Monday morning. As you live in NY, i will make tuto when you sleep and will be available at your wake up, for coffee + tuto 😉

    For info i actually working on a drum rompler (Simmons) with multi sampler (as seen on pics) separates kick, snare, hat, etc. ... and multi-out for each samplers.

    all in HISE SA. speedy compiled in VST 64 windows tonight and it works.



  • @staiff said in Multichannel Routing issue:

    the pics i put above is made with standalone. so it's possible via standalone.

    I think maybe there's miscommunication on the term "multichannel"? The standalone version doesn't allow more than 2 physical outputs from HISE in your main container.
    Am I not understanding that correctly?
    And HISE multichannel (only available in plugin format) allows up to 16 physical output in the main container.

    I can't wait to check out the VST you're designing! Sounds awesome



  • @staiff said in Multichannel Routing issue:

    separates kick, snare, hat, etc. ... and multi-out for each samplers.

    I think that's the difference. I'm not using multiple outputs from each sampler, I'm using physical outputs from HISE.



  • I'm circling the wagons around the issue causing my plugin to fail. It has something to do with:

    • amount of samplers in a container
    • multiple samples with different velocity ranges in a single sampler

    Almost figured it out



  • @Christoph-Hart I think I got it. I can't have more than 1 midi note occupied with RR samples in a single sampler. The second that I have 2 RR instruments in the same sampler, I get a crash.

    alt text


  • administrators

    That is weird. Can you send me the patch and the samples so I can try to reproduce it?



  • unfortunately, It's not the only cure... still having issues which might be container related.
    Sending you the patch now



  • @dustbro said in Multichannel Routing issue:

    I think maybe there's miscommunication on the term "multichannel"? The standalone version doesn't allow more than 2 physical outputs from HISE in your main container.
    Am I not understanding that correctly?
    And HISE multichannel (only available in plugin format) allows up to 16 physical output in the main container.
    I can't wait to check out the VST you're designing! Sounds awesome

    oooooooooooooookaaaaaaaaaaaaaaaayyyyyyyyyyyyyyyyyyy ! 😄
    miscommunication for sure !

    as Christoph already said =
    HISE Standalone (and maybe VST, i don't know, i'm not using it) has only 2 ouputs (1+2) !

    So when i create multi out project in Hise, of course i only have a single stereo output !
    i must compile it (as VST or Standalone or else) for testing the multi-out.

    during the Hise process you can't really test it. But as i know the Christoph's code/example works well i create without doubt in HISE.
    after that when compiling it and test it as WIN VSTi 64bits and put it in Studio One plugin = i have multi output !

    That's why Christoph put in the example the "ok, error" part of code = just to show you that when you don't have multi outputs (like in HISE) = it says "error" and put all multi out in the single 1+2 (stereo main) outputs ! 😄

    alaways need a video tuto now ? 😉





  • @Christoph-Hart After testing, it appears random what compiles properly and what doesn't. The only consistent thing is compiling any project containing more than one sampler is like rolling the dice.
    Could this be an issue with Visual Studio 2017?? or something else...
    I should also add that this is for compiling VST. Sandalone works properly.



  • @Christoph-Hart I've been tinkering with this all morning. I can isolate the problem 100% to the audio files. I compiled a VST of my project, moved it to another computer (without the samples) and it loaded fine! The second that I locate the sample folder in the plug, it crashes all hosts. if I remove the sample folder, it opens fine again. I've gone thru each of the sample audio files, and I can't find anything wrong with them.



  • Debugging in Visual Studio. I'm getting somewhere I think.
    PluginHost throws an exception on jassertfalse;

    #ifndef MODULATORSAMPLER_H_INCLUDED
    #define MODULATORSAMPLER_H_INCLUDED
    
    namespace hise { using namespace juce;
    
    class SampleEditHandler;
    
    /** The main sampler class.
    *	@ingroup sampler
    *
    *	A ModulatorSampler is a synthesiser which allows playback of samples.
    *
    *	Features:
    *
    *	- Disk Streaming with fast MemoryMappedFile reading
    *	- Looping with crossfades & sample start modulation
    *	- Round-Robin groups
    *	- Resampling (using linear interpolation for now, but can be extended to a complexer algorithm)
    *	- Application-wide sample pool with reference counting to ensure minimal memory usage.
    *	- Different playback modes (pitch tracking / one shot, etc.)
    *
    *	Current limitations:
    *
    *	- supported file format is stereo wave.
    */
    class ModulatorSampler: public ModulatorSynth,
    						public ExternalFileProcessor,
    						public LookupTableProcessor
    {
    public:
    
    	/** A small helper tool that iterates over the sound array in a thread-safe way.
    	*
    	*/
    	class SoundIterator
    	{
    	public:
    
    		using SharedPointer = ReferenceCountedObjectPtr<ModulatorSamplerSound>;
    
    		/** This iterates over all sounds and locks the sound lock if desired. */
    		SoundIterator(ModulatorSampler* s_, bool lock_=true):
    			s(s_),
    			lock(lock_)
    		{
    			if (s->getNumSounds() == 0)
    			{
    				lock = false;
    			}
    			else
    			{
    				if (lock)
    				{
    					lock = s->getMainController()->getSampleManager().getSamplerSoundLock().tryEnter();
    
    					if (!lock)
    						jassertfalse;
    
    					//s->getMainController()->getSampleManager().getSamplerSoundLock().enter();
    				}
    					
    			}
    		}
    

    Once I skip past that breakpoint, the debug version of the plugin loads



  • @staiff

    thanks for they nice Video staiff.



  • thanks.

    if you encounter an error (or crash) of the plugin =
    in PC : erase/delete the: user/appdata/roaming/you/Pluginfolder and reload it.
    it will ask again the sample location and all will goes ok again 😉

    yes, i know ... boring ... but it works !

    For MAC i don't know but the same thing as appdata/roaming for PC.



  • @staiff thank you so much, this tutorial is very helpful.



  • @staiff That's what I've been doing to get things rolling, but it always crashes the host on restart.
    Do you have any experience debugging? I'm getting a break at jassertfalse; and once I continue, the debug version of the plug loads.


Log in to reply
 

0
Online

283
Users

773
Topics

5.0k
Posts

Looks like your connection to Forum was lost, please wait while we try to reconnect.