HISE Logo Forum
    • Categories
    • Register
    • Login

    Enabling FM problems

    Scheduled Pinned Locked Moved General Questions
    5 Posts 2 Posters 238 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.
    • ulrikU
      ulrik
      last edited by ulrik

      In one of my projects I use the FM Synthesis
      The GUI has a button to "Enable FM", and in it's callback I use

      Engine.allNotesOff();
      

      however, if the played sound has a long release and I switch to FM, Hise will crash, also the compiled plugin will crash.

      How can I "silent" all voices so it will be no active sound when switching FM on/off?

      When I switch between FM presets and non FM presets with the built in preset browser, it works, Hise will not crash

      Hise Develop branch
      MacOs 15.3.1, Xcode 16.2
      http://musikboden.se

      ulrikU ustkU 2 Replies Last reply Reply Quote 0
      • ulrikU
        ulrik @ulrik
        last edited by

        @ulrik actually it is when switching "Enable FM" off when it crash

        Hise Develop branch
        MacOs 15.3.1, Xcode 16.2
        http://musikboden.se

        1 Reply Last reply Reply Quote 0
        • ustkU
          ustk @ulrik
          last edited by

          @ulrik said in [Enabling FM problems]

          When I switch between FM presets and non FM presets with the built in preset browser, it works, Hise will not crash

          Because I reckon that when you change the preset a allNoteOff is priorly triggered in the background.

          Are you sure you call allNoteOff as the first thing ?
          Have you tried to use a short timer in between ?
          Can you reproduce the issue in a little snippet ?

          Can't help pressing F5 in the forum...

          ulrikU 2 Replies Last reply Reply Quote 1
          • ulrikU
            ulrik @ustk
            last edited by

            @ustk said in Enabling FM problems:

            Are you sure you call allNoteOff as the first thing ?
            Have you tried to use a short timer in between ?
            Can you reproduce the issue in a little snippet ?

            Yes I'm sure

            Yes I've tried with a timer

            I'll make a snippet

            Hise Develop branch
            MacOs 15.3.1, Xcode 16.2
            http://musikboden.se

            1 Reply Last reply Reply Quote 0
            • ulrikU
              ulrik @ustk
              last edited by

              @ustk thank you for asking me for a snippet :)
              I noticed that it was not the actual "Enable FM" that made it crash, I also changed the Carrier and Modulator indexes in the same callback and that made it crash.

              Thank you @ustk !

              Hise Develop branch
              MacOs 15.3.1, Xcode 16.2
              http://musikboden.se

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

              32

              Online

              1.8k

              Users

              12.0k

              Topics

              104.1k

              Posts