I am working on a drum trigger effect plugin that I want to use in a live setting, to enhance the kick drum by layering a sample on top of it.
I found this thread which talks about a particular snippet that can cause a drum recording to trigger a sine wave:
HiseSnippet 2581.3oc6Z0saaibElz1iski2rIaSC5ckHs.UYgWAQIYIqFDDG+WpZisUsz5s4pfwjijHLIGsjT1waP.1K6qP6M6yQuyW1KK5qPeAB5CPaOmYHEIUnrkkcRSZW4efl4Lyb9Nm472LjM83FLeetmh5RsOqOSQcYRqybC5sYOpkqRisTTWjzzi4yBT13r9Teelohp5rOCoplaNEwm29jMn1TWCVbWJJGxsLXO2xwJHt2lq+6rrs2gZxZa4jXzUVugA2cStMe.fjYIEU5SMNl1ksGEG1LDkeC0umh5WRnkKa1oZ00paZTYU85cn0LMNpb8UYlkpTlUmYZVqr4Qc5nnN+1lVAbuVAz.luh5bavMOqUO9otRFbnku0Q1LrgtRKfyxt2gaahhH1qxl8rrMaFoh7UfEsYrBaVoB6djcsLsF1erh6NBBZwyHoBTclzva1TvSOI7Jl.dY.I0DPZNIjtKokgmU+fXJHdtEoga.yqCE1mRBE4XUTOmrIGFfaPAG5wrc7fFCmP9pEKthF7uG9nNCbMBr3tZb283Ar8cy+vkd8R4V5MKoMJoNcxjFxFOtsMyKSxnog2EMw7tCbNh4sh1IT6ArgCDD+z5Tx30oI2xMjRchAxca3ZEreel63LDTBUUf9elPTAFGABs+OMT6+zAlV7ugdBqC2yQwxDsHR0mthP.R5zXRCnJp+Bxqadv9+1s2r8K2Y+mu01G7l86GvelGmeB6qJtZgSomn3Qc6x.I0C14Hp3bE8rsqI19G1aFIFE.aVIvtcHvZYaYx7DHZYvln+f.Mg+7Hn4Emq70M1BADXkDJufNnOyKvBUupawNAbwklb4Haw7ONf2WnPb5ycQsi5BWYUxqhAvub8yR13TKyfdnv0CD2dLqt8Dh9eEH1OZqogIBEwR1XOTCLDIKOY5fX1u92kf8e+ue8T7.VFKm91LwjzgnUdPfJvWAoMOQrRNbyP8hg0QLaEmjQLew4NzWkbi2Of0uk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lcgsLPGWvGhFzli6Y6OH.35+291wbsqW6izmAaJW2bQXTVB41Pod1fPNr1EQs2Q8lNF+tbWdzCwJN.3ALzCrKK8gfyRfBuRtg8bu0itBrntNmt9yA2.p2tx2GkoQWnekCik490OK7FD0Pa3OcJN5BeN5yNQOG8ab7N8OS8erPsj7vgZ3weogLxIZKunnGPtcEmYOGYWrsVFupdNPz8WZXjdodmIVZZmX4ochUl1It5zNwpS6DqMsSbsKehXx2vq0AcYUT1s41xmas51tXNe4Cg8+.ckhDLC
I want to change 2 things:
- Instead of detecting audio from an audio loop player, I want to be able to detect incoming audio from the DAW (so that the plugin will be able to hear audio from the bass drum microphone).
- Instead of triggering a sine wave, I want to trigger a kick drum one-shot. For now, I do not care about velocity settings or anything special like that.
I have been trying to tweak this snippet for hours, but I just don't have enough knowledge yet of the innerworkings of HISE to wrap my head around it. If anyone could point me in the right direction, I'd very much appreciate it!