HISE Logo Forum
    • Categories
    • Register
    • Login

    Synth.playNote()

    Scheduled Pinned Locked Moved Scripting
    2 Posts 2 Posters 189 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.
    • ?
      A Former User
      last edited by

      Plays a note and returns the event id. Be careful or you get stuck notes!

      Is this something I need to be concerned about? Specifically for a release trigger script:

      function onNoteOff()
      {
      	roll = Math.random();
      	
      	if (roll < chance)
      	{
      		note = Math.randInt(1, 15);
      		v = Math.randInt(1, 127);
      		Synth.playNote(note, v);
      	}	
      }
       
      

      Do I need to manually kill the voice or something? The triggered samples are very short

      d.healeyD 1 Reply Last reply Reply Quote 0
      • d.healeyD
        d.healey @A Former User
        last edited by

        @iamlamprey I think with release triggers it will just work like a one shot sample.

        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

        20

        Online

        1.8k

        Users

        12.1k

        Topics

        105.0k

        Posts