Changing the start point of the samples on reverse playback mode by code
-
@DabDab Check the posts above : you have to write it like this :
module.setAtrribute(module.parameter, value)
And don't use the magic numbers.
EDIT : Corrected.
-
@Matt_SF said in Changing the start point of the samples on reverse playback mode by code:
@DabDab Check the posts above : you have to write it like this :
module.setAtrribute(module.parameter(name, value)
And don't use the magic numbers.
I think it's this way
module.setAttribute(module.parameter, value))
-
-
@Matt_SF @ulrik Not very clear to me though...
To be precise here is my Snippet...
HiseSnippet 1343.3oc4X80aSbDDeu3bT7UREfPp8kJsJpOXjRC1g.TUTEN1IA4BIXEGn8Mzl6Fauh618zd6kfKhuS8iP+Hw2f1Yu+3aswI3FUnn16kjY1Yl82N+OouR5CIIREwo9wShAhy0bGLQnG2cLiKH81k3349yoI5igDMoyjXVRBDPbbp8Xy4N0Wkj88tG0gExD9PEKB4ERtO7TdDWWwse6mvCC2mE.Gyirjd6187khtxPYJhkZtMIwL+WwFAGxLhshKw4J6Ev0R0.MSCIDmU6HClLXr7LQt7ufmvOIDLDsHCPCkydeYXfAwFtjti4gA8KeyIDhia+JOPsbOvsbOfGvmxuxSb8rCnUZX6ObV4hfWKa30b4gmiE7VMGd2vcfuhGqqNwfsuzsmPCpgLLDXCqbYIq7nZtcknDB8lQrWA6qPhoZz3dMatAc6lMu8CWyCCCIZ5oLEcG5OQyRF1bDnyvVFUi0GvhhCAUq0mU9N1xWHy4JbWYzIxNxW2BUpDYlqQFEKEHQi0mJQllq4cm6P6QOiIzTsjZdDzA7nXftqRFGf9YpdLSSOCSunImw09io4WM8.Y.jXT5YB.iHZ5FzCkpHV3FTlHfdDbJnR.yUvEgbAPGlJ70bofZxHK.gAiJYXC+R.tA9LBSgaul2aVyqdwM1njGE+dS9Ox+7YI.s0OZyh1YyDPuiVq3mjpgFqWfu0KM8CeOCr0EZfBW8l4uN9uAAmukt6RYoBeSkcn4Z8Vzf0Wy6sYAlOX3yX6B+WWVX3IXkci220Z.okm+PoFdlnws8diWcu25Qm+ngCW3YEFyj5sniMccTWjhMDoQm.pxGbofX42r02tme8sc6G+beikfRQOAW+rXPbdU8jBGpo9u.Unn5rp+qWT8W57H7.Sw+TeIIC11MlIOu2tLMqzXncw6JFTZt4Y3rKbJ1kNu0Rc2cgjWokwYxVDIINewRd0ut5ZOt8jJhmzNhgm45TCIhKen8BLyVJ6NP3ZHBwyW6hEAmwl3Uj44kmKiCNduFgX6XYPZHSOaOZyfohCv.6LMCMM7DIb8Da+yGkF2KKbugaeSeiEi2UV.dwv3Ga7VLFbM28FND70UfcU28+0O9y7rgx2lCka5NPq.VDWLpHeoXyjoYO+CrYR7RuYReEDJYACvFrUh8Gs6jh9K0rb+81YW0NQxTwL2UAxOBhAl1Lfp5vq19nidrRlFOuVu6QYIKGqv9mnqv9fhIG1r5pjIICwmSlsRre98SUiL9pJNk84s4cXZDF6EBHzztywAY87DvDq49GvvIEu1V5rao4wrr3MttVFcq4n2ZN56NG81yQeu4nu+bzOnhN2gd.K1jYXVWbt90dKW+Zz.8Y3S1RxN7QSMdNmpD3ljot4LnXsO5uvNEFhMurrz.Pqw.WhEq40ZA6.dkOqWQ8SWi4ZKGb+.aQWuDilkGCg8DmhEyHGCFuIN+aHKMTWxc1FKGHEx3wRA2e1RGrTXzHPYi8E9fv0qvJ2JN2p8QPHfKiUw56Z+TbATlZ1NB+s7EsVdewEEu9F2b3RMcCo+2XfZs+2OP8hbceUw3TJd6J8m4w4q4lM.fZlW+uETORlZZmWNKzEGXN.WRvGrGathYe9b5lFZCfF.hfLh+D+JNrU4LVygsJOj3WZJ7sU76Yay6TCDlQGY6IFhSuCsSoSvUQLPBmC9IAkQLek7k94+sJFrd0LNHJEY+6ap6dfglN8OOw0s4lMIQ3rpW56aJD9dzCuXc15RnycuD5r8kPm6cIz49WBcdvkPme3B0wrlvNoZYTdSRjQ+8xSrb1aZhUMxeUebkAH
Can you correct me?
-
You have this
B.setAttribute("OneShot", value);
, which is not in the format Ulrik showedmodule.setAttribute(module.parameter, value))
But in your case you don't want to pass
value
because that will be the value of the combobox, you need to pass either true or false.You should also use breaks after each case.
You might find this document useful too - https://github.com/christophhart/hise_documentation/blob/master/scripting/scripting-in-hise/hise-script-coding-standards.md
-
@d-healey I didn't find any help to switch between parameters like Normal and Oneshot. How to declare or write it?
Where is oneshot or Normal parameter? Very confusing stuff. Either you guys are super genius or very bad teachers. One simple thing I am asking everybody is giving High voltage current .
Think and Answer in my Level.Need to switch between this
-
@DabDab see that thing in your png that says Sampler.LoopEnabled ......see if you can work out what that does...
-
@DabDab
You have to set Reversed true or false
and Oneshot true or false, this will give you 4 different combinationsHiseSnippet 1383.3oc4X01SabDDdOLWJ1MtJIJeneoRqP8CFIJXyKIUAUE+BPjaBfElDkuEsb2Z6Ub2tW2aO.2H9O0eB8mT9GzN68hu0FiiAURiZuubLyNyNO6ry8LioiT3PCCERjUwSFFPQVOzt6PtZPqADFG0dWjUI6eMJTcBMTgZNLfDFRcQVVEdkdcqhKhhe9zKaR7HbGZtJD5cBlC8MLelJWam5ul44sOwkdBy2v5sp21QvaI7DQ.VJXWEEPbNizmdHQa1B1HqGrmKSIjcUDEMDYsXSg6vtCDWvSr+crP1odTsPMTWXiRTuuvyUiXsVTqALO2NYm4PDxxtSdFnPRF3o1GvbYizmmIdT7B3bOLyGVKLK3UyDdUme3YY.uESf2is65HYAp7UzX6asayUTYOBbEXBqDaQK7aKZ2R.VvUq4SNituDDF4QksqVcU7VUqtxNkKAWCgJ74DItA9WvwECq0mphwVrTkk6R7C7nxZKOt8MMsO0lwLtjo0sD9mJZJtrF3UFzzwQ3GH3fPkkGYQbbJWZ80wswWP3JrRf0mBbWle.EuqTD3BIZrZ.Qgu.puvgWvTNCvIwFefvkFpc5HNEtRT3UwGJj9DuUwDtK9X54TYHUGBF2iwo3dQbGESvw5RxTPnwnT3UwICfqBGCuH5JkK8wRESCXkLUX34iIuRdbHgTbsWXpBWrwZgTUCkRxNMRQqzXsT.tJVIgsYmYabJtcWE2i3ENo4mJojy14ZPXiWT5V.fxyKBlBduA.r4X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5uAb6GKn
-
@ulrik Thank you so much...
Working perfectly.
I am digging around your code.. What a lovely and clever approach.
Now my brain is saying "It was my Out of Syllabus thing" :face_with_tongue: ...
Thank you for giving time and solution. -