Custom Notenumber Modulator (table)



  • HI guys! Let's say I want to modulate a custom parameter (phase shift) with notenumber. How can I link a table to a custom parameter?? Any help will be appreciated 🙂

    HiseSnippet 1103.3oc4W0siZaDEdLfqJzlnl1npdoUTufsaJ0r+jMqVUkcWVXWZBKHfjl6hlLd.lM1y3XOlTTUeC5084pOJ4Mn8LiswlFKDEolT0BBIe9a72424vf.AgFFJBPFUGuvmhL9TyQK3xYslgYbT2KPF21rGNTRCrhYc9BebXH0AYXT9RECipUP5Ou8QmicwbBMiEB8LAiPeByiIy3N3zGybc6fcniYd4z9fS6RD7VBWQDfmxl1HeL4U3ozqwJ0JYhL9n1NLoHXjDKogHiJmKbVLZl3M7X8eFKj8RWphnIZDbPwr6HbcTHV8Lp0LlqyfT+NDgLLGjEEJGGEtqYOlCaI+rnwmoEXkYQ93gQo0Aul4gmcgvqYAvCkCcUhQG.BgSjKVtJxToiDALwpYptbIkGxjKxmt9fB26XNfIIyJFukJ.uPh5eZ7lj7ukY6ISnDYFXqX144ueyz2NFJeh4HFmp6H0.4K0zV+HdN05RJmFnBpMWSS4uuoMk9abSYehDd8iCv7PeQ3JG7HpGarfqhHYLeZHsS.80CUY477aIvAEJ5sOpC3jEZyHrLJPWtblmHhKWo7n7FmSxObX0tlb5WvjhJe.lT72XPlw616cGyQj.luLShBaeQB2LzsZMTrTToeyvrkP0JJaDRkWQYSmIqums8NmbqZoBvNNiw.VqeORTnT3oIt28sZZq9ozDpeBkVywAV4zv56sROgoTYKgmOT2vkqdJJqUeslDwIpzikfesPR6yquSsetlqffcgC1Mh9b375AdBbag57TJccj2KoA0UmQrhhIS.u.TLwhuyZ+GXa8MV6YevCOoVp0fJPVIP1WqcceUQJLNpdr06ryI09k2EOSlnAT0+hLkGFHbcUvn.wpNsf0YXct1GteLhWpHjcWs7o1lU9PhC34TTv6xYx99zjKPSCuobZhV5f4UJyuxyU6NEnVFqBl4kTDnpdSTG7NYxb335Pcs.h4n3jq5.oCJ4m.3fkXjA07n8Zn+LX3vgG0BdXde32qOdRzrnCSoab3wWc7Ob7R47GuK+latYo78e5tCHCHKk2XxtWM9xwIzvXstWndcI3FbAvs7oARlJgXbAcNLiMtGrp4EzvWIE9ZcSJzgcY1Lu7mfETLpAd2hzGdCyAtN.HPkPnY5lRE0uh9WxxBa4Dqpo3cDyy2k1lOm5BQTMd+7DlVobWcdUOAW3OSvYj7kCCox.1zozf79QgN2YRIroYFm6d5PpKEm+xsu9zm.WJgCfXFccwkxaVbYyldWXt6qLigqkpey5+FK7U9+mK7MTDIY7o8vPgppOGtxZDrmEgBHgyotgp95Rpojwz15td8hVbGMwe.eRD1TQajHrYpv2KuCOLIP7BR77aUs7Gq4.9MW+W2pB+GRf1pY5LaSS6F1HOXAoWPHpv82BwmhsYusvl82BaNXKr4vsvlGrE1bzVXyCWqMpcSOKBtjItUDXLns99LCi1b08N5pdzeBr0TM8K
    


  • I don't see phase shift in your snippet.

    Anyway this is how to connect your script table to a modulator's table. In this case I use the velocity mod on the ADSR envelope.

    HiseSnippet 1189.3oc4W0saaaCElJNZn1aoXcqaXWJTrKbV5bkSxZRPvPchcRZvRhMrcx5cELTz1DUlTShxcFCCnOh6p8bz2fsCIkrjWEx7LRRuXBv.97G024WdTmPAgFEIBQVk6OMfhr9L6dS4xQMGgYbzosPVOz9bbjjF5XXc3z.bTD0CYYU5DECqxqhzOu+EGh8wbBMiEBckfQnmwFyjYb6z3mX99Gi8n8Yiyo81MNkH3ME9hX.OkrcQAXxavCoWfUpshMx5SNxiIEg8jXIMBYs5gBuo8FIdK2n+UrH109TEQcTO3fLrOV36oPrhKp4HluWmT+NBgrr6jEEJYhBO19blGaF+rnwmqE3jYQ93g0J2D7pmGdtKL7P4P2pFzAfP3E6ikyiLU5HQ.SLel5TtjxiXxo4SWeTg6ir6vjjQEi2UJ.uPh5tFuII+0rOZv.JQlA1UsO9U2uY5GZfxmZ2iwo5NRMP9ZMsyOimPcNgxogpfZ8ano7OVzlxfEtorMQBu99gXdTfHZtCtGcLquf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ks David! this is the part of the code that does the phase shifting thing. (Made by Christoph) It just delays the beginning as many samples as needed. valueX should be phase in degrees.

    local offset = valueX / 360 * 2048;
    Message.setStartOffset(parseInt(offset));
    


  • Wouldn't this work?

    local valueX = Message.getNoteNumber();
    local offset = valueX / 360 * 2048;
    
    offset = offset * customTable.getTableValue(valueX);
    
    Message.setStartOffset(parseInt(offset));
    


  • @d-healey YEahh! I think this is it. Do you know if this kind of modulation is polyphonic as any other modulation? (i.e. if I play 2 notes, both will have different start offset?? or will be fixed to first note)



  • @hisefilo This will be monophonic, if you want polyphonic use a MIDI list to store your offsets.



  • @d-healey cool. will learn how to do it!!!! thanks for your help mate.


Log in to reply
 

10
Online

887
Users

3.2k
Topics

26.8k
Posts