Sequencer starting too slowly...
-
Hey, still very new to both java and Hise but feel like i'm starting to get there...
I'm trying to build a sequencer but my problem is my sequencer is waiting to play the first note by the timer length if that makes sense?
So if im in 1/16th mode its waiting 1/16th note before playing the first note of the sequence.
Any advice?
Thanks in advance.
As with everything I do on hise i followed @d-healey's amazing youtube tutorial on building a simple sequencer/arpeggiator. This is for a percussion library so no need of the arpeggiator functionality only looking for a sequencer.
HiseSnippet 3101.3oc6b0saaajEdnsoSDaSpa2sKJvhcW1f1BYzDaQJYmDD3VZY6zJznXkHG2Vr.aBM4HYtghTkbjiUCBPVf8AXus2UrOA6d4dmeD1Gg9Hz2fsmYHozPJQYQonsotR.9m4myY9lu4bN7vgiXMOWCruuqGRH2AcaiQBuoX8tNji24XcKGTkcQBuk3AGbnhrZAUUE0BJnxcaq66iMQBBK9YzNIjaID6yO9ok0s0cLv8qBgNz0x.eOqVVj90VS6KrrsuqtI9.qVb8tjVECWmcbsc6..ZQwBn15FOUuI995ztsfHRX48LsHtd0I5DrORXoxtlcqer6ybB5+gV9VGYioETP0AEET8ccsMoHlVKZmisrMqEMw8QHAwZ8ogECngeqXUKSqd02mNVg0fbeI34CgEhCuEiAOEd3UfCdCARBbPRL.RusXcCOq1j9sPwyaHVwgf8ZnCzNOTtemV0ssLwd0.JDfhnvh.CGnAzB+2KKtiKHmCYsV5OEeWOnPO8jeyBEttL7qUuijjkigcGSb9qsg7Wp2UtpkA7yoXu09q9Wi195qKWG+MXXU2SlVhpVOWaeIXkzmHehtmrO9a12QdK4nQrIlriaq1tNPg7Wi0JUUwD3PrsqgEo6nDKpOwEtk9o0I319oJYTGhKliKAu+IXOa81oJIWeFT36gcZRNdjxFzEFsQopC08rzAyAeIObS5jthiI9TPCEtCql115cwl2GDrecPunUTwbK4ab6aeGldppepLaFAKV1VNX4FcbLHVtNxtNQS1vkk7FQH55.vs6fWU54R433x07wTxkY4rcK2NNjqE0y6H8h6HcdTJU9vwZGca6i.iu7CfhP6F1LiFAvShM2nTDsXv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e6ND2VAWvFpn1dANQB60yIZQzOA337Ss.```
-
@crubbish so - without looking at your snippet -take your step execution code and put it in a function, ...call it once before you start your timer...then call that function in your timer,
-
Brilliant thanks