Drawing Sine Waves



  • test2.gif
    Is it possible to replicate this effect in HISE by drawing paths?

    I imagine drawing a sine wave, gain ramping it and windowing it with half of another sine wave.

    That would be the graph function:
    https://www.desmos.com/calculator/xczldg6zit



  • @clumsybear I think it is possible, should be fun to try 🙂



  • HiseSnippet 1218.3ocsV0saiSDEdba7RS1MqXQ6CfUEWjra1fSosfTAsgl9CQKM0hz1EIDpZh8jjQ0dFy3IsMaUk3Bd.3Ig64JtjmCdC3M.NyL1wNzrkciDVQIYN+9c9wmy3I39jjDt.YU9jowDj0ir6OkIG2YLlxPc2CY8X6ivIRhvwPZ2ow3jDR.xxZ0CUDrJWBoe9qWtKNDy7I4jPny3Tex2PinxbpdseEML7.b.4DZTAo2rcWeNqCOjOAvyp1tnXr+E3QjdXkXqXirdv9ATIWzWhkjDPlc4AS6OleEyH+YzD5fPh5PKTevPFxnNiogAdYwZBBYUxKOxW0D4O09HZ.cF87LvGpY3jqQwbf0JyCoRyAoVuMHc.OLPYf2B7rJ.uRF38D699BZrLmiBaOztKCJNCwPZuHrLxhVYsR1c3fDLYyH7EjCDvgYZTaaW2FNa45VempUpVAR9IRmKwBmXmuzISMeAAhLOrbbMkX4B06ziN263t8NoOH8Fass1FBxHmgBxOBj1poqlTQc7vLRXqBVeDQ1gGEyYvgZqaXud8T8nrPJi3LbByWR4LGAYvDHScn.GCfoZkapVwAdha5GRvBM7LmSjXgrG4p9SFnAtaSHNguxjv7cH2GG5LBJy.fb0nMm4PtnFUQeGGpyWTHXgyO+40MBkB.0SpYNBbWyDJCz8SJlgdlgiW2LHj6ICjUQ5I7ZzFFK8r6wRazzM2dv+T46502QaraKFClzYSAIFLobV9oxsKN8xYuhwGzRUZD7vZ9Y0kFPoKbBwjvKmVcmwUUBOSwWa+xyWi.J2pKlKtdq8250alnnp8ZGbX3.3s9ZyClrNh6X8pURCRvDdpn7a4SjPTUKKppMpdkapTdjwGpQK0L+jz7pwTIQC5QMCD3qzsJwMb99MZ3.ejioIJ79ZZfp2+EalS5qIzQikJZ+PCU4PajJ2B0fBIydbI4XVMs6qbaEm+MqgCWHuzHNjHVHa0HSw8oXM1jnADQVQKSPXNx7Cpd361fJeSgqffbVWFUdbLI8b9nLEOSTmw0EMKXKRJOFKRUGZKPrbR2cRIJswRMyLUbPTodh4iSmX1OjFPDHJfwOvV2Ugz4l7MOebazoc2CKwYlArH3kXhPRU4Jq8HWB6wLChKauGI4BIOFVIMqWFVMYbZ0rwzp1RsOWy1zhhtdlC+o9smVbe3UpVLjks0uYgPi0MWpS+ARGfybwi9OiqbWzlUvE+xksSjSUE2GnEDEQCBBId7Dpp4ovN7eGV0G2m9Fcx4lm9qG9mu4meYTw07n1Q3qKl5RlLbH8Z894gzvnDIfstQvZaj0GYeZBwIfLDOIT5jbAXGXjyEjfS3Z4Q2cMGrrkGLIDKmeCr5pFoLT.t3pN05LFDHSKdUj2i0xtKbsbqE0r8NB2mX6Qk9iWLdWYA3EZ69+FuoWxop89CGR7k4fsj8Ae2xdil2CnXlKOB1ZITMK18lD0GlB6S.jvfWORTM7qn52MmcUmUYl9DVf9veCOoLaoNakxrUFSTD1WvO22LFPcMp0zT.Lwz2frLbUV3ryr2+ssg09pWFnm66qREu.v9h0YikPmOcIzYykPmsVBc1dIz4yVBc976UG0Eq+pIRdj40Dff2954vVV6yvPWltiD8OvjsTl6
    

    Feel free to adjust the window function or sine range...



  • @Christoph-Hart That was quick!



  • @clumsybear I've done it for a synth, but these animations from Sinevibes are neat!



  • @Christoph-Hart man, that's great 😄
    Just checked out the snippet. I'm struggling to understand where exactly you implemented the windowing function.

    Also how would I use another shape than the half sine, for example an ellipse or something else?



  • Yeah @ustk the sinevibes plugins have awesome visualisations. I'm still learning to draw by code, so the sinevibes are great examples. And the devs are real dsp wizards 😄



  • @clumsybear Ellipse? square root of the gain 😉

    HiseSnippet 1139.3ocsV0maiSDEebaMzXHqXEb.rp.IG1rAmtsKHsfVSS+fnklZQ5VPBspZh8jjQ0dFuimzR1U8+3.vQfS.mAtJbC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Evp4pe6x.Xsa1P5qJC9f+5U+5SSquxEEjhqTG0OHkFGmPB44TU0uhymFfdysHvtLd7rDr7lK3Ta0KXnrQ8MIpsELv1yqu0+NYq26JbuucHUFMc43cskfWnq4tFuEuCQS6CFOlDIq.6F1G9S28uv.xLqaBrIPPgtC6AyRGBS1hH.RXP2s5Vt0Zp6ily9pypLyPBKVe3efmBlcUmsJX1sjIJEGI3mGYtEqdKkM0T.LwzurVC3sFgytKt9ZaCaUQP+I87nHUp3g.1WtNauB57nUPmcVAc1cEz4wqfNe4JnyWcq5ndu0ucljmZtl.DBOPOF0x5.FF5xzcjn+EbE24X.
    


  • I see now @ustk cool! You guys are great, thanks



  • Hise Crashed 😞 With @Christoph-Hart Example
    After Playing A Little With The Knob.
    Macpro 2019

    Works Smoothly With @ustk One 👍


Log in to reply
 

13
Online

883
Users

3.2k
Topics

26.8k
Posts