dB meter
-
if (dB > -100) g.drawAlignedText(Engine.doubleToString(dB, 1) + "dB", a, "centred");
-
@d-healey I'm just learning. )
-
@udalilprofile Cool, start here - https://docs.hise.dev/scripting/scripting-in-hise/javascript.html
-
@d-healey Thank you. I'm only 11 years old. I want to create music software.
-
@udalilprofile I think you must be the youngest member here :) you should pick it up pretty quickly I think.
-
@d-healey I'm trying. Thanks for your help
-
@d-healey Can I ask you again? I already used const laf = Content.createLocalLookAndFeel(); to configure combobox. Can I use two functions? Or how is this problem solved?
-
@udalilprofile You give each variable a different name. Something like
const comboBoxLaf
,const peakMeterLaf
-
@d-healey I couldn't get a numeric indicator. I now have a vertical indicator.
-
@udalilprofile Post a snippet
-
This post is deleted! -
This post is deleted! -
This post is deleted! -
You can edit your posts instead of deleting them or crossing them out.
Use this button to add code tags
-
HiseSnippet 6781.3oc68z0babccKjzJQBYaI6HmzY5C4ZNsMfNfj6B.R.HWaA9oER3GvDjxVUQkdI1K.VyE6Bu6BRhjQyvljNSdK8wjY5CY5uflGyadRm9PeqSyLcZeyY5e.+ReN8bt2cwd2E.D.TeXIWhYnDtetm646y4d2Kp3XWi55Z6HkX5851lJk30jq10xq4pM0LrjJulThuqbk6ub00IUJu8OjTcuGt45juOoBU6HRaaCKOoU51Vy0kpKkHwU+PbPIl9ZRrOe08VQyTypFMrJIoGXaTitoQKCuvZqT5GZXZtglNcOiVB8NWox0rsV01ztC.fWUVQpsVsizZP2VC61UjkRb800M7rcp5o4QckRbsUr06Vso8IV79+.CWiCMoXAUopvDwqdCaScDhwZkVsogodk.DgqjThopDhVtJGsbG4sLzM5UeH541rFHgiPDej3JQAuqFA7TEAOEAva.fTBAP5ZbP5MkqVywnsWXKH7bS4xVdTm5Z.ZWDT38U5J2+6HupMzCKu4aocDcCGnPuQjJmhRZRdEkYeujIStvBKPNtCoEEZEJZAHcWf.PIOnyVr59IISNsgkogEkTuiUMOCaKRMGJrV86QJbLoImllzc1jS+SRN8zl10zLImXn2f5QdeR.nnoqWQ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GAL9lYzwzkxzLnJtIKgUmQr56q4nGe6ShyscswiaaD+zDc8W59oI5UfCASj8ea5.Xj6rv5fQcSHBrdVrXuO7A0FUbZKaK6fbyDRn2kBZAZzfFg+YfKnk87hrun2oztTS7x2U7zatogEUyYK9675EAW7LZGS+yj4fKA0APd08vKc0uQe3kFeoOPE3K2TwuiLnJNCgQJIe8PKeAaW+MBrqi2CSg10+1rxDzP2PLrekWzF1irg9zVF6YaQib+7suKE2b3cQRVjMx2Fub5GPSe081.VjCbLU0753vn8AI794sU0qcoU0WjVUyboU0Ksp9RsU0udxn0Mj211vMPng88ww.v+369O8r2.vkJZ+Ffh1rWpn8UcEsW4REsOCUz9sBVhr6mY7fr5mfw6vqgfUQvC+B8EsG2X9ihK1v3K.mvqcD6RuI7QMvifKhMs8vCSq3Os1UYGhmp3OPJ3g1Lhj+wTG2nyvF8tH3+sxK.N063t.83FTqtK3uYzK.Nja3g+14UGU06Pxr.DsRCa72XHG2CpZp09f6i2bSGrEsg1AU.X+fT+MkqbvV3OyljT0Jjsl1gJGdXw7KN6BUqtUkCd.9KAxAUssZb.ttb40plYQXLlT+lW9f8ZRO3iscL0O3iM7ZB7MG7P6NGnj4f0b5N+IZGyuEw3bG92as3WMgojs5EqXcK8fhWZn6a.F5xcogtKin3+2an6EwynkVMG6CpwOImHe5TrZf0sk+QzaKrLQs+eRTZAZ4NnVsnSUeCLyEcfYunCL2EcfKdQG3RWzAl+hNvBidfnQnv6iObSyprN+EtIQOWMRbUo+O.T0RZFC
-
@udalilprofile Your problem is here
-
-
@d-healey I was able to solve the problem. I found it in another line g.drawALignedtext(engine.doubletostring(dB, 1) + "₫B", a, "centred");