Hey,
I am trying to sort the scripting to move between different samplers to enable a user to switch between Sustain, Sustain with pedal and staccato samples. I want to do this with a mixture of CC11 data and the sustain pedal. The samplers I currently have are:
-
Sustain
-
Sustain RTs
-
Sustain Pedal
-
Sustain Pedal Sounds
-
Staccato
(Treating 1 & 2 together, 3 & 4 together and 5 separately)
A snippet of my WIP is below and while I have some of the features working I am struggling to make everything run smoothly.
-
How do I get HISE to work out the value of CC11 on loading the instrument so it knows to start with the Sustain samples or staccato samples?
-
When moving off the staccato samples (with CC11) back to sustain the 'Sustain Pedal' samples are triggered even if the pedal isn't down
HiseSnippet 2035.3oc6b91aaabF.mzxLnTsIoIMnXuY.2JJFrAbbDUrc5PPVssrRgwhrELcB56JtPczlHTjBjGypWg+FrWtOH6iv19D0uAqO2cjhGoojokjcpMNYDSe+84O2yc2yOS3zOJzgDGGFooad7YiHZ5egg8YAzS6bJ1KPa+8zzefQObLkDgDUs6YivwwjAZ55M9AVE5lKqw+7qe+tXebfCIuJMs2E54Pdi2POZds829u446+Z7.xwdCk58FauuSXPmP+vDPeZXzRaD14C3SHGfYcaICM860cfGMLxlhojXM8k2MbvY1mF92CD8+cdwdu2mvJXoYCSjn5WG5OfowrZ05bpm+f9Y1crFH+94dgFBuvSL54Mvab84diuj2.JeDx9C8kJpdMJndVxpWKI0qBURWRkVVnROxv1IxaDMuEl974F6G.KNtXvsKqJh9po+eM5DBcHft9P7GHuNBJLd.qrUqVqgfus5Ka5lD3P8BCPgAGDRIGFrxpM+kllMOuIpbSttU1FSNQg99jnJalsTGMsAtRPxv2ShVC8QreBYbGA6unS0XxNU40bGgYK0wvf8C7nGNhDLoHAsTeE7Suc+8vTLakHsNneiHQTOlJnuG4iPXsXcwzXOR7Gngif.6KrnAgKgCR7wzhwPrMNoM.9fBKbrUmfXO5YxarJGXsb8BrldbecU2GYz2i5bZ056RUnufW65VeS2ldeitttDGZtxtrwq+wotmbgqJ+Qgp7XCaZDAOzK3Da7vQv1.t9XZX+V6i2Y+CVDGb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ObIwgK6xuyRVRex3JmC+1jnKyrq4mvblc0Sgyrn1w86Jby6N3lsU3lJbSEtoB271Bt4CGmVL+J8aVfy1uv5u3rkB3TAbdGD37IE2YoPNqF47qjQNEdpJwN+eUfcx6dMAOyWDt8idhfO+R5yxthJoUxastuaSFpBmgIULR7nboatHD+zeomWP9yLkZl2stLpxj8yqkIgoNI6iaXWIP0B+FAlyk9wjpUu3m96GPAod2AR84JHUEjpBRUAodaAR8qKkJs8gu8f8rUrpJVUEq5hhUUdmkhUsZV0GyYUm3YPYnp+yBnp7tK58kgpdg0fqET04jUME9j8n1DqrNalNHyxdjRXKkacBXKnhHqqC7JH6fAox3bwSAwpP5lKBwOIh0pEe5iYlY8RfBWU7xJ4sOxGeFKFXEq1qgrX+EdUj8j0dLJ.5AR.mgrZihg6XFfvT1.PvE0lrXCNv2Xo+mthhu0ZbgadIBu0EjsfxrIB9pIh60Pp+bxtCActgB5TAcpfNUPm2VfNaZ.Hmc5rywGdyBZ5NnUKWWEnoBz7NHn4CGuo51BiY5zciwXdeNiYUm7jgW9mKfWl1yKCsT1qCTknELUICXXNfJS4C4OpKTIuyYCxT1OThnStkIQykQS1MCnCxWyAtVMc1OW7jiSlJWy4Qv4TrbLxdBF1JkY5ilSk2dRXjE8Q0+ULJ5etQNmVY4WwXQCMyDSeddS3iB76NC32lJvOE3mB7SA98IF76lPKGhchB+IGw8RLc8y30.ZY.++QyLM5wJirxRPzvn05szFBIq8SNNrf7mBWuT8XZOCi44yvX1XFFylyvX1ZFFyKlgw7cScLr7j2IgFNTbnGTAj4DOvRu63.qFZ+FFsnc2A
Would be really grateful for any help as I am really close to finishing the project!