Drum machine Structure.
-
-
@d-healey I meant when it is set to One shot and using this method it will not play the whole sample.
And if I remove the else , it just plays the note forever.//kick Trigger inline function onkickBtnControl(component, value) { if (value) Synth.playNote(36, 100); else Engine.allNotesOff(); };
-
Found this that solves the one Shot issue , although I am not entirely sure how .
Just putting it here if anyone needs it.HiseSnippet 1672.3oc4X0uaaaCDWJIZq1qoXcn+w9mAPTLf4.jl5ORZKZ2PcyWEFqt0HNsX.EEsLRT1bQhTPjJodCEXuE60XOB6QpuAaGIkrncbbRyV+.aFH.gG4w6286Nx6n5kx8IBAO0wsx9iRHNtW1q+Hlb3VCwTlSmsA4damlEe.+0NaNJAKDj.GW2EenZZ2JK4n+816uINBy7IkhbbdFm5SdDMlJKk9p1+HMJZWb.YeZr0pWucGeNaKdDOCfxhd0cRv9GhGPdLVsrE7bb+rcBnRdZeIVRDNtKsIOXT+g7iYl0+LpfdPDQMngSeXiLh2kGEnPrRpyVCoQA8JbYgiiqWuRBXQCAbMutz.5X4kDwWpm.UpgMe3tv7fWCa3U+7COWK3sjAdW0queJMQVNiBaegWGljjFhgPfMrLq0Yge+RdawgUvjqEiOjraJLXrF0tU85qh1nd8Ut2xUWt5MuIpO3IDjbHAQNBzAQCP7P83ADFIEbw.DiKInPdpVrd.ms1xUgvnPhNBmZTsSf.8CnmeiFqhL+8hBa7TAAgQgznXgD.IRxQhCoLX6nBzAYRImYuaapkz.1rBGY.QtEONgyfA0td97WW4Cvt2E7RDUhh4wvz3zQHAG1ZL3KgnQ7LTJIhfEFmLlmIHqpV9wP1IRPXA.zL9TXHJF3YHUb4p41XMAALHUzsXuu9pHYZFYJSy3rajPRETgBtk1GrBm8cRfJAg3i.pD75jTBrqBDFLsONJBjxYvDTIEGQEXIUQGS..ktcX8zJBHHDGIHlH3EmeadF7aSM+l++yiGlXImNRm19sNC62xx9sNa62Zd1OLi4qnUfneLDpeBq1JU+0kqhfe.8suhlTmUD5TDCggFvQAvY5hjnjH7Hfj61Y6N5zEi1hioR+g05Z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37ntqjWVDAVOU9Idb9xd5axQpBuerf5d7LITPsnnlGT4qOTs2mXW+aAUMUy35EMk1mvBzC9K3W9jMJJVplrQwjN9EaE3a4+u9ELtKRXpJG598hfxvQ1ozBnmBEjfBZePPYL1Ok+ReyW1Pg0Kok.njo+L9U75pFiZ3ne.JnmW80p6DCkpdouu5fvM.Fd15z7BnSqKfNqeAzYiKfN25Bnysu.5bm4pipKgGjI4wlKIAA81wjX4ty3DqEc9a.NAoDv.
-
@lalalandsynth said in Drum machine Structure.:
@d-healey I meant when it is set to One shot and using this method it will not play the whole sample.
And if I remove the else , it just plays the note forever.//kick Trigger inline function onkickBtnControl(component, value) { if (value) Synth.playNote(36, 100); else Engine.allNotesOff(); };
you dont need the else...
-
@Lindon If I dont use the else it just holds the note forever.
-
-
@d-healey I mean if I replace it with a sine , it will hold the sine forever.
If I play the keyboard in one shot mode , it just plays the sample to its end.
If I play with the button it holds the note forever, not the same thing? -
I mean if I replace it with a sine , it will hold the sine forever.
Replace what with a sine?
-
If i place a sine generator and bypass the sampler the note is held forever using the button without the else.
So therefore I assume that the voice is being held in the sampler as well , maybe not ?
-
@lalalandsynth A sine wave generator never has an end, a sample does. So you will get different results, unless the sample loops.