How to use multiple loop player independently?



  • What I want to do is pretty simple (in theory):
    Press button1 - play audio loop player1
    Press button2 - play audio loop player2
    ...

    But I have no idea how do to make a loop player only use a given midi channel.

    I am curious if this has any function: AudioLoopPlayer1.asSampler()

    Here is a little snippet which does nothing yet.
    Just for you as a start point if you decide to try yourself:

    HiseSnippet 1748.3oc6Y0saSiDE1NoFHAVDvxJs2rRVn8hToRIw.kJsBQ9srg17iRRYgaVzf8jjQ3Lik8jRyh3cXeT1Gg8x8x8Qg2.1yL1I1N0MMMTnqflJU4yYNmYNmuYlyO1scYlXOOlqhZldSbvJpWSq6DJeXkgHBUodUE0qq0.4wwt59rJOwA44gsTTUS+TAC0LqoH+8gmTFYinl3PVJJOmQLw6QFQ3gbaWbWhs8NHKbOxnHR+fh0MYzJLa1XvdRqkWwAY9Fz.bSjPrTZJpWplEgyb6xQbrmh5ZkYVS5Nj8Vpu7Om3QdsMVPTPoKLQ9r2gYaIrXwyJUFRrsZO0u8TTTub6PTHsOJbasFDKxL9gnwMjCnGpQT7PM0hLuBqn4oFw7Vy27toVWSWhCObDgscUs5TXipOB1BhZV9xpjp5ZZUXfDT9liPuAuiKPLSibakO+F5v+V+WxlE1F735Gfb0KM1hv1iwbZailfcKn+Xc44iMGf4RSURk6NR4zEBpGH4cfI5XmGikddLDyS14MiMQdcQibrwt4fgmexiOZDqnLm1FYIbho.gX4YibXTfH2cBFOto6yz3DTx2NyRn1DJVu+XpImvn5LZvbJz0kYmybpha.St8X75YeW1LyfBom3a6y1aONvMyQ.kXXY4I0oV3CyUPH58tWRncg02DYY0jwwsn4JrwC2ZisyugTd++lpUnPDJW2bHhRw1anKHn.+liG8ZrqO8AXalIgOwmhC2ugKCib7cIu0y9d.jNAreSOAeIZUAYa+ZHFPt4gQIVerfswBA6HXwRB2x81DPCi.HyPBYmjqYrXWyHlqEwmBVLosm88Y0men98SbrfoSdIHggEgdcWjh4nAaqgHmPPHFT7fbWc4BxY5iLQDjQqSI7VN3.5vvfhw785oilWYly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f6HmKunC0dr6.7IleD1aitqJ1n12SjckSLmd.HTZ4pjuGRdlJklOcg4nMli99yQ+f4ne3bzaMG8iBo8AzFHGwICw2Ybt2w8kWtvbvDzFAtbDIKSFLax84brobmg4R6JxW0LgnmW5hbwmW4hu+E4huHW7WSu3xEAcWOHKoteuG++de9ZZx355hzvmWl5WhZbLmNUfuE7r76SolFOsUW0T1PRY6nGo8fJLDlDjd6KhUNBY5xdko+2+SXqWQxArRpru4LZMDz5y9pmZZ42LOz9qE4UllhKB2sfhRx5XrB5b+UPmGrB57vUPmsVAcdzJny1KTGQYBkFyYi7CRBLZWy+fk5r2ghZZk+CT0c7X.
    

    Any help is highly appreciated! 🙂



  • @UD-AUDIO

    AudioPlayer1
    Midi Processor
    Script Prozessor1

    function onNoteOn()
    {
    		if (Message.getNoteNumber() != 60)
    	    Message.ignoreEvent(true);	    
    }
    
    

    AudioPlayer2
    Midi Processor
    Script Prozessor2

    function onNoteOn()
    {
    		if (Message.getNoteNumber() != 62)
    	    Message.ignoreEvent(true);	    
    }
    
    

    AudioPlayer3
    Midi Processor
    Script Prozessor3

    function onNoteOn()
    {
    		if (Message.getNoteNumber() != 63)
    	    Message.ignoreEvent(true);	    
    }
    
    

    and so on



  • @MikeB Just wow! Thanks a lot 🙂
    So easy but it seems to be perfect.


Log in to reply
 

6
Online

1.6k
Users

4.6k
Topics

42.7k
Posts