Pulse Width Modulation
-
I need the ability to modulate Pulse Width in a current project. Found some threads about this. Since others have also asked how it is possible, I post here my solution as HISE Snipped. If someone has suggestions for improvement, I would be happy about it! :-)
All the best from Germany
OliHiseSnippet 1687.3oc6Y0saaTDEd23rQ0tTfVZEUHPZTDW3PCN1IQEUppha9qXQRiUsaJHtnLd2w1ixtyrL6rI0fpDuA7JzGkdAO.7H.Htg63FtFNyNqsmM1N3V0llBXEEk4bNy2bNm4723TWvcIQQbgkc9l8BIV1ugSidLY2M5hoLqZaZYeUm5w9QDzCndxtnc4dw9XIkyrVuWHNJh3YYam6NJosyOqUxm+Xs0w9XlKYHIKq84TWxNz.pbH05U+bpu+1XORSZfgzqVslKmsA2mGCZVNmxVgX2CvcH2EqDaFGK641xiJ4hFRrjDYYO65budM5xOhokeeZDskOQsnhUC.HM4s49dJMVQ0ZitTeu588.QV.n0G5Oxo8GW1YWpGc.8g9k2NgAZ3NL8G1yjU8xkQ8pXpdkMTuwnR1FpzrZU5hNMbEzP4PNJ847N0XRhnMFb6lphVVqYdxrNavAIXxRA3CHaKfEC1QwUJWdQzxkKuvMKTXokZ1kf..ncXAf7HdajDnDL3tGgYdGmjO4PhOhFg73LBfAkglmyT2qh4KAq05ApUOztkP64SOjHP222O.yX.2iN5nRQxXOJukfWhQjEJ.Q.QRzgXAZms2KMtiKpftEJIBsTGhb.0hymQl4AyX31e.9PRatH3NDFQLBFIt7jUEmeTIyhTKIaKFFt3fiBvnu+TgBOHDralr37lBkc6GvZAzTNcVzD2toPir8jTQcl3Ir+gRo.nf1TijXgL45nX4RkqnXzNl4lb2wY2kKI6wJtPguqP9BOt.53rZ2dr7Tpff66CfNN15iKgyRKUqcV+GDpPRV3sHDKAqNBpEjR5XAWkT6WETRZ2l.fe33i7bw9tJhDOUXlrqfP.GmeLI5SU.j0+suhwhYuSRnMH31MVHTg+Z74sUXnnCgZkPf0.aMi03QiFXNDjYUSZjZut8cVdHxib8ii.6vumRUynYkPMUdC3mHhDAoQ.Z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