HISE Logo Forum
    • Categories
    • Register
    • Login

    Making a chorder (play chord with a button)

    Scheduled Pinned Locked Moved Scripting
    10 Posts 6 Posters 639 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.
    • Rosace_PonyR
      Rosace_Pony
      last edited by

      Boop

      i'm trying to make a simple chorder, starting with a button playing a C major chord

      inline function onButtonCmajControl(component, value)
      {
          if (value)
      	    Synth.playNote(60, 64);	
          if (value)
      	    Synth.playNote(63, 64);	
      	if (value)
      	    Synth.playNote(67, 64);	
      	else
      	    Engine.allNotesOff();
      	    break;
      };
      

      This code work but the thing is it doesn't play the chord like if was playing with my keyboard (FloatingTileKeyboard) actually it just play the sound without displaying the notes on the keyboard

      d.healeyD LindonL 2 Replies Last reply Reply Quote 0
      • d.healeyD
        d.healey @Rosace_Pony
        last edited by

        @Lorrislehorse Why do you have if (value) several times?

        Libre Wave - Freedom respecting instruments and effects
        My Patreon - HISE tutorials
        YouTube Channel - Public HISE tutorials

        1 Reply Last reply Reply Quote 0
        • LindonL
          Lindon @Rosace_Pony
          last edited by

          @Lorrislehorse said in Making a chorder (play chord with a button):

          inline function onButtonCmajControl(component, value)
          {
          if (value)
          Synth.playNote(60, 64);
          if (value)
          Synth.playNote(63, 64);
          if (value)
          Synth.playNote(67, 64);
          else
          Engine.allNotesOff();
          break;
          };

          so as David is hinting...start with this:

          inline function onButtonCmajControl(component, value)
          {
              if (value)
              {
          	    Synth.playNote(60, 64);	
          	    Synth.playNote(63, 64);	
          	    Synth.playNote(67, 64);	
              }else{
          	    Engine.allNotesOff();
              };
          };
          

          HISE Development for hire.
          www.channelrobot.com

          1 Reply Last reply Reply Quote 0
          • Rosace_PonyR
            Rosace_Pony
            last edited by

            @Lindon @d-healey I used various if here because i'm getting an error, well it seems i've forgot the brackets so now it work , thanks you :)

            and about making the FloatingTile Keyboard display the notes this button play, any idea on how i can do that?

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

              @Lorrislehorse afaik the keyboard tile only displays the notes from the input, not the ones generated internally. This means you have to make your own, using a panel for instance

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

              Rosace_PonyR 1 Reply Last reply Reply Quote 0
              • Rosace_PonyR
                Rosace_Pony @ustk
                last edited by

                @ustk You know if there is some projects with keyboards made from buttons?

                also the script synth.playnote just generate a sound when pushing the button, is there a way to make it write Midi Notes too(in example when recording in your Daw it would write notes)

                d.healeyD 1 Reply Last reply Reply Quote 0
                • d.healeyD
                  d.healey @Rosace_Pony
                  last edited by

                  @Lorrislehorse I made a video tutorial about making a custom keyboard using a panel, should be on my YouTube channel but might still be restricted just to Patreon supporters,I can't remember.

                  HISE doesn't output MIDI notes to the DAW.

                  Libre Wave - Freedom respecting instruments and effects
                  My Patreon - HISE tutorials
                  YouTube Channel - Public HISE tutorials

                  ospfeigrpO 1 Reply Last reply Reply Quote 0
                  • ospfeigrpO
                    ospfeigrp @d.healey
                    last edited by

                    @d-healey if I sub as a 'Patreon supporter' does it require me to login to YouTube? sorry for the question I just can't login to you tube anymore.

                    NatanN 1 Reply Last reply Reply Quote 1
                    • NatanN
                      Natan @ospfeigrp
                      last edited by

                      @ospfeigrp said in Making a chorder (play chord with a button):

                      ub as a 'Patreon supporter' does it require me to login to YouTube? sorry for the question I just can't login to

                      No, You just Get Access to Videos And Can Watch Them on Patreon, It will Show The Youtube Video there
                      Also to Watch Youtube Videos You don't necessarily need an Account :)

                      1 Reply Last reply Reply Quote 0
                      • d.healeyD
                        d.healey
                        last edited by d.healey

                        My public videos are also mirrored to Odysee so you can watch them there if you prefer.
                        https://odysee.com/@DavidHealey:5

                        Libre Wave - Freedom respecting instruments and effects
                        My Patreon - HISE tutorials
                        YouTube Channel - Public HISE tutorials

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

                        19

                        Online

                        1.7k

                        Users

                        11.8k

                        Topics

                        102.5k

                        Posts