HISE Logo Forum
    • Categories
    • Register
    • Login

    Multichannel Routing issue

    Scheduled Pinned Locked Moved Bug Reports
    25 Posts 5 Posters 4.9k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Dan KorneffD
      Dan Korneff @staiff
      last edited by

      @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.

      Dan Korneff - Producer / Mixer / Audio Nerd

      1 Reply Last reply Reply Quote 0
      • Dan KorneffD
        Dan Korneff
        last edited by

        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

        Dan Korneff - Producer / Mixer / Audio Nerd

        1 Reply Last reply Reply Quote 0
        • Dan KorneffD
          Dan Korneff
          last edited by

          @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

          Dan Korneff - Producer / Mixer / Audio Nerd

          1 Reply Last reply Reply Quote 0
          • Christoph HartC
            Christoph Hart
            last edited by

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

            1 Reply Last reply Reply Quote 0
            • Dan KorneffD
              Dan Korneff
              last edited by

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

              Dan Korneff - Producer / Mixer / Audio Nerd

              1 Reply Last reply Reply Quote 0
              • staiffS
                staiff
                last edited by

                @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 ! :D
                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 ! :D

                alaways need a video tuto now ? ;)

                Excuse me i'm French.

                1 Reply Last reply Reply Quote 1
                • staiffS
                  staiff
                  last edited by

                  tuto here:
                  https://drive.google.com/open?id=1aRP3aDFHTEybOb_U20-QrkZnzw2kPU4X
                  ;)

                  Excuse me i'm French.

                  chrisC 1 Reply Last reply Reply Quote 3
                  • Dan KorneffD
                    Dan Korneff
                    last edited by Dan Korneff

                    @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.

                    Dan Korneff - Producer / Mixer / Audio Nerd

                    1 Reply Last reply Reply Quote 0
                    • Dan KorneffD
                      Dan Korneff
                      last edited by Dan Korneff

                      @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.

                      Dan Korneff - Producer / Mixer / Audio Nerd

                      1 Reply Last reply Reply Quote 0
                      • Dan KorneffD
                        Dan Korneff @Christoph Hart
                        last edited by Dan Korneff

                        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

                        Dan Korneff - Producer / Mixer / Audio Nerd

                        1 Reply Last reply Reply Quote 0
                        • chrisC
                          chris @staiff
                          last edited by

                          @staiff

                          thanks for they nice Video staiff.

                          1 Reply Last reply Reply Quote 0
                          • staiffS
                            staiff
                            last edited by

                            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.

                            Excuse me i'm French.

                            resonantR Dan KorneffD 2 Replies Last reply Reply Quote 1
                            • resonantR
                              resonant @staiff
                              last edited by

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

                              1 Reply Last reply Reply Quote 0
                              • Dan KorneffD
                                Dan Korneff @staiff
                                last edited by

                                @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.

                                Dan Korneff - Producer / Mixer / Audio Nerd

                                1 Reply Last reply Reply Quote 0
                                • First post
                                  Last post

                                17

                                Online

                                1.7k

                                Users

                                11.8k

                                Topics

                                102.4k

                                Posts