HISE Logo Forum
    • Categories
    • Register
    • Login

    Play held notes on Modwheel/CC like Omnichord

    Scheduled Pinned Locked Moved Scripting
    4 Posts 3 Posters 36 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.
    • S
      StephanS
      last edited by

      Hi Community,

      What would be your approach to achieve an effect like the omnichord.
      For anyone who doesn't know this:
      I want to hold several notes and slide the modwheel up and down through all held notes and the same transposed/inversion notes.

      Is it possible to generate or trigger notes via the modwheel?
      I found a midi cc to note generator module, but I don't know how to use it and the doc doesn't have anything about it.

      Thank you already and I am looking forward to helpful posts

      Translated with DeepL.com (free version)

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

        @StephanS use the onController callback, look for CC1 (the mod wheel) and use its value to decide which note to play in the held chord set...

        HISE Development for hire.
        www.channelrobot.com

        S ChazroxC 2 Replies Last reply Reply Quote 2
        • S
          StephanS @Lindon
          last edited by

          @Lindon

          Hi Lindon,
          thank you for your idea. Do you have a snipped of it to help me with that.
          it doesn't play any notes when I scroll through the modwheel.

          Thank you very much for your help

          On Init
          
          var notes = [];
          var heldNotes = [];
          var modwheel = [];
          	
          //Console.print(trace(modwheel));
          	
          inline function Omnichord() 
          {
           	for (i = 0; i < heldNotes.length; i++) 
           	{		
           	Synth.playNote(modwheel[i], 60);
           	        
           	}  
          } 
          
          function onNoteOn()
          {
          	var note = Message.getNoteNumber();
          	
          	heldNotes.push(note);
          	
          	//Console.print(trace(heldNotes));
          	
          }
          
          function onController()
          {
          	if(Message.getControllerNumber() == 1) // Modwheel
          		{
          			
          			Console.print(Message.getControllerValue() / 127.0);
          			modwheel.push(Message.getControllerValue() / 127.0);
          		}	
          }
          
          1 Reply Last reply Reply Quote 0
          • ChazroxC
            Chazrox @Lindon
            last edited by Chazrox

            @StephanS

            @Lindon said in Play held notes on Modwheel/CC like Omnichord:

            use the onController callback

            I think in that case you can also do without the 'inline function' and just write the for loop.

            Lindon will verify that if its wrong.

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

            29

            Online

            1.8k

            Users

            12.0k

            Topics

            104.4k

            Posts