Horizontal Zoom for Waveform
-
@d-healey said in Horizontal Zoom for Waveform:
@d-healey Also can we get the spectrogram view in the waveform tile?
That would be neat indeed!
You got a way to do this with zoom?
Yeah I've did it for an analyser but vertically. I'll try to extract an example from it as soon as I get some time
Do you have a snippet with the buffer in question painted already? -
@ustk Wow that's awesome. I'm just using a waveform control with a sampler in my project.
-
-
I'd like this feature too! To be able to draw a certain number of samples from a buffer would be great.
Eg: draw the waveform path from sample 300 to 2500But to be honest there are a few paint routine options for waveforms that I would like. Like drawing the mid channel from a stereo file, so that you get one visual waveform from a stereo pair.
Perhaps looking at c++ graphics stuff would be the best way?
-
@d-healey @griffinboy Here you go, a zoomable waveform with start/end control, easily transformable to a pos/zoom behaviour
HiseSnippet 1945.3oc2XssaijaDsaa2YWojIHax7PdjvHOzZGYcYrmcbvtdiuH6IBquHXMWRxhAFTcSIQXJxNrYaOJACP9xx2P9G1WyC4OHoJxVRsrj85wIyBjUXv.Sx5xoJVUwp5NZUDKMUo87K+xwILO+eVP2wRyvCFR4Ru1s77+kA+IkZDsmf8F5UriT5Qd6ONgllxh878W8EHc9kVyy96e861mJnxH1rs77dshGwNlOhalsamc+FtPbDMl8R9nBTu0tsiTxCTBUFfoUCZ3kPitjNfcJEIak.ueOMcnm+mGrIK9oauM8Yas4lQa+a2N54QzsYQM687FOk1OdysYw8h25YaQ87+IGFyMJcWC0vR87WaeU73tCUWKcJ307TNXc3hldcAM619HkHFMQbWuCFxEwcl3rR877C5Ly0spy083fS3w7o6OyE9KrGPlwQQGn+JyCuUmCdMKBuFEf2RfjeAHslCReVP2HMOwL6DDO+zf1RCS2mB2SEghiVuU9tOM3.EPgzTaD8R1QZXwTNB+hFMpR1pQiJeYYfpTkfUKRvn5PXixvkWpgbEUSdyQIRAYGxDIMfYNPMJQIgEgqaOccfiYLborWJP+2tbFDpuQ1a8JUKSV32xYXH2xvamCT6kEyUGqTIcDzwLcSPe1vcjW6YcoiRDrotqv0s6RPVH47fntnLSJXjQZFbK1gZFZ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RpjIx0oMtw6cE6iebQkeMVnF7w9MVwyaHiOXnAW82cF0TMD785Sloh+FsnJL6BuQLm4tHvuCu0LV2MadwFy5Sgtcd8Mcm2g59j4U29YFiRZU2iBJz6RQ2krnRasqg8NC179wmsWKxdupU6yHG093C83omnFA5fpG6h0RgQxZK6.cjwLXG7dKNB.L7gJNSPMyOQBN2V9AP5xbiAfs5KgGxFWbttaNlxZ2uwTt6ontuv8yB5vMQCWNdWYI3Eyz9Hi27g9dTvgPE+HyLvtVvQ+g6bBu0teUZt+P4WMAJSaJj4Fz6wAKN9xcL89+39N8dx8d5cX5pH3ZiULTxdW9RM7pAzBPQUgv7PI9oFhKt84JkAegn3WOvMmVW7cXP7yQM6JlNcdIfYbtOfvWGT+Uov40GnYCp2REkg4So0uny4m8hy26jSZe5Kpeww6secmFRq2RmMJ8hm1n10zq7Fgtq.eTl1B.A9+yuKvCGjyBkImIrFR7jy8W8iP.f+Zer9BD+flZ+eekn+27ASJMAic4389gxqXBHOJ+Sf0x8JvjcmOI5DnAtjgJXVt4iCgdFGLfoKh8kZP6YLPtvrcd7tmyfIYRKDv+a18XnyNp9loRe.9hleve7nkde8qCbvkfY9jeb7Bxp+H5EjO.n39fHCfgbzbrV1oYi5BEtiX.RjPucXSw9qfcn4V2XR4stv751E+a3W9gMw094G1bxg+fniQzHs5hHWuwXr7mZ2AraosleofSv0jlK1Q8Hnp3EQQyKpEX7oOTF27gx3VOTFe1Ckwu3gx3yenLt82Oi3iV6kYTiborddmz4P6PL99S6S.Z58+.uiG8p.
-
@ustk Oh wow that's great! Thanks. I suppose this can be modified for vertical zoom as well?
-
@d-healey One moment....
-
HiseSnippet 2034.3oc2XszbijTDtaa2rHACACLG3XEN3Pq0x5gsmcLwtdwOj8fi0OTXMO.1XBSotKIUgKUUS2krGCwDA+n3L+F3+.W4.+CfLqpUqRxxdrMLaDr8AEpdjY9kYkYVYVsSUQrrLUpme4WccByy+GGz4ZodvdCnbo2gs77+YA+dkZHsqf8V5krCToC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t0sRHqdqzQCyNGp69J5kdCQyUfOxSSJk.++4+HvC660.kwqILJR7308W7SfCf+RepdqmuSCs+uOSz+adZpRiwXGNdtuu7Rl.hixerwV16UFO6zAQGCkZlLPAs9NseHTla+9rTWrOWEZGsFhElLyy19LFzWVliC+ub6ifRNooyFJ8.rEMevOS2bOu9EAV3RvHex2OtAYwuGcCxC.J12OpOzxTJGykcxngcfD2QL.IRnZQrZc+EvZ9riaLN8VGlL1L3eCe4K1DG6muXywK9chLFRiRUmGYq6F8k+glY.8VZx4WJ3XbLo4MKydHjU77nnoY0MHbsGKgq+XIbiGKgO+wR3W7XI7EOVB27iSHdo0Nizpg1PVOuiauuosHe+h5Dfxn+O.84uky
-
@ustk Really appreciate this! It should be in the snippet browser.
I noticed a couple of little glitches under certain circumstances.
-
@d-healey Small fix, the path was looking weird for high vertical zoom, now it's all working, except for a security when
start>end
but this I can leave it to the user...HiseSnippet 2597.3oc0YstaajaEdTrmcqTaVroM+n+jvnX2QwxxR4pW33TeKNwXscDrxk1tHHkZFJIBOhb.IG6nsH.suL84nOB8cn+s+nuAsmC4LiFIK60wH61VgEK7PxysuyMxS5njgLsVp7pT6kiSXdU9E9cGKLC2YHkK71eWuJ+R++fTNh1Kl8F5or8jpQdaONgp0rHuJUV3Y34pTcQO6u+0ucaZLUDxlrjm2qk7P1A7QbyjU6r42xii2iFwdIeToSe+M2OTJ1QFKSAcZA+VdIzvSnCXGQwicCeumS0C8pbG+6wht6ZqQev8u28BW6aVK7Qgz0Xgs68nV2k1O5dqwh5Ec+GbepWkO6oQbiT00PMLsWkE2VFMt6P4YBm.dMWyAqC+nsWWPxtk2SFGglHtp2NC4wQcxAKsmWE+NSftEbP2s8OjGwKVeBD9k1MHSnnL.V4FSqdKLk50tr50pj5MGUpRIUZQmJcK+tgJdhYxNn97y82WXXp9TvOUVUbm06F+0uveGIbBgo4H5Ir8TvGETD7vVsZPteqV0WuFbJsLl0LLlQUAvB0.mm1PNkpHuYuDQLYCRNmFvL6H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zvduActG7hs1kr0q1c+WP1a+CdpGWenbDHC3FytPWMbWk8Ecfm7xL4SJZhhr3GQbyEnLalto24GzzW5enLJMlZldtW3zAy1.xnmZXS3.kDP+6wkmd3rCCawq1vvt7Y0cUU2a42gaBGNe88FyQegLner02rQKdS+mB8nCMST1E8262coyQ7Stp7qxUkhwfvbiS719meRWWxLh+6W0YDmbkmQb2whPvswJGJY8kuTAM1fKsUVTnZ9TANP6nxKerTZvlXkmQsajdcw6J.repSiu9SOMGvrX2Xpeh+puRC6u5.Eavp6JCSwbT8puqywu3YGu0gGt+QOa02cvVaupSB5U2UkNR+N38lvaM7FgvkeEjm1hJ9U9m+CeOb5aVUIeuXqgDkuekEtxA.eDy4dw+maN2+zU84Syn3qlqic4nu9ohSYwPtS1+3J655lju5zINGB2YNYnDdd3zwdvM6GLfoJq6y0f1xXf3+Iqb6MOlAOHVWJH+2r4Av0nopYSe9Hvh1ez+yRLW+0u12otDLam7eE+1mjNEKbk5T7IQGu9cGt9h2Mg3Avq6Tbr1zQoi5BEhCY6jMwFrdzMva559tUd4ptvqsre7ugeYa1F+tR1lsy27mDYLhFpjuKzciZLN8mYWAragsFdU+CwuIsO+EnGAU4dWX3zr5bDd2qKg265R38utD9fqKgO75R3ittDt1OLgXSnsRMxQtTSOuC67T6CdpTonuekE79O.NFoKN
-
@ustk You're a wizard :mage:
-
@ustk
Very cool indeed thank you! -
@ustk beautiful done!!
-
@ustk great stuff, put it into the Snippet Waiting Room!
-
@ustk I'm pushing it now but is it possible to scroll along the waveform once zoomed in?
-
@d-healey Yeah so it would be more a version with a zoom+pos knob rather than a start+end. Well it would be possible to add but having 3 knobs just for the horizontal zoom is a bit overdone
I'll try to make another snippet
-
@d-healey Alright I added a second snippet in the Waiting Room with Zoom/Pos knobs
-
@ustk That was quick! Really nice work :mage: :mage: