Unsolved Spectrum ballistic (display buffer)
-
@Christoph-Hart Is there a way to modify the ballistic of the FFT like the buffer size (important) and window type (if possible)?
The actual window seems to be Blackmann-Harris but it would be nice to get all available windowsAs for the speed, I'd like not to resort on averaging the display buffer from a getReadBuffer every 30ms or so... Even if it is quicker than 4096 samples (the actual fastest buffer size), that would be dirty as hell :)
-
@ustk Yes I've added this recently. if you click on the edit button (where you can assign an external slot), you can see a new entry called "Edit properties". This opens a JSON editor that lets you change the properties:
Be aware that these properties are not stored in the network, but you can set them programmatically using the scripting API:
// only works with ring buffers that you have registered as external. const var dp = Engine.createAndRegisterRingBuffer(0); const var mySpecialProperties = { "BufferLength": 4096, "WindowType": "Triangle", "DecibelRange": [ -90.0, 0.0 ], "UsePeakDecay": false, "UseDecibelScale": true, "YGamma": 1.8, "Decay": 0.2, "UseLogarithmicFreqAxis": true }; dp.setRingBufferProperties(mySpecialProperties);
-
@Christoph-Hart Wow great! I didn't see this one coming! :)
-
@Christoph-Hart Hmmm... What did I miss?
The properties are not applied:
HiseSnippet 1920.3ocuX0raaijDtorolwZRVLAHO.D9DMFGEQGGG6MHH9WkUXicHjbxjAAAAsIaI0PM6lKYqwVyfbeONWydZdAl2gbbmmf85tu.KVf8AX2p6lTjTQN1QXlvC1p65uup5pqpH8SDAjzTQBxZkSmDSPV2vt2Dtb3ACwTNpygHqaa2t8oN6OteeRhygI3yo7An8mDiSSIgHKqkdhhSqUVFoe9OOdeLCyCHEagPuPPCHOkFQkE65u6elxXswgjSoQk3dyc6DH3GHXhw.pVxtEJFGLBOfbBVwVMajU8iBoRQROIVRRQVKuuHbRughy4F9eAMkdFinV3g5AJxrcaAKTgX0tnCFRYg94deJBzheQrXISr311GSCoS2uHl70ZBNERTNdXUqJ7VpB77JCuVkf2bfjUIHYafzsr6EjPikETT34qr6vkjj9XHrWFJmLN5PZZLCOwb9Anw1pFDjMJAU6Wpaef.DkKaFgGQZm.KlpJ2sZ0ZcG3Oq8vF.WoBFoY.ifSbgMZ.G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zGOlIeQ4ntlMZXHi3KRopzxBJm79HQXVnV2HBlhsXBskMmCvrghvwLrr5.ipojyHnzY4ozTCbwAaMo7Tz+lME40Eh2x1mJCFNeLVaNXTcy32ALlM68MsOBJeEHK.3x1se4mgAsqareir7MvlJieC6hYQmcD6SwfUziVaoRRl2L2KULys0e0tnhWrpnbB4TgOvuaJNJlQ5Bdy5NmwDAi5Q+AxGVlL1.18Ub3FLDygqwoKR0z5W63m2G+3yzNevwXYBUUNAhAlQ3OHCc4u2Q15Vp0pLndDdndw+CdxH5kGIUD8xIVTOFcBQdtHYj9fK62P1g4TJUGjeS+K7PvXDhyUERnY4yvokdOeAaR7PAmFn1xvQNR2KRLlKygqUsSzW3saiCf.0DUSb0MEUCEHsT0beZ5YEaWjgnhXJkj+BsF+FLZjt5l50YWRQW4MKkYMi5DoAvvPpKonOv7IjlkH+oYMkCyHWj2WYlj0Y2AV2AFR7B08u6.MJ8wIv6gKMrVe5JvTGS4YURssg25.cL9hoq2DV2SRhUIzp0vjL5fVcUkHBZlJve8tnRJtdghqauQUMuBrA7TQ62FrtWKyi2l6zxyaKH8cD4bSTzvvFaryNs179aswF2aysev12O60nUu9xXBOXRYH8MO3d28mp.oJ9pWEDU21aqKwYugV8NcUYinJhittwQuKMN9D3N7kqzkuJkpTxWX6ODmVRKsVDsTW2paVnTL0BBUJKutc+9xMpleeSaLGyljRZBz9LkaqqqUN0ddHttIHo+DHUg7Mrif+a93Hyf3xe0oq.80pb2x5S+3yr0LGek8iK0C0c.Uqf960L4pcReghZ.lkqQnj39BwnHrt16BMZ5mkNEQ3fDwaBLM+TN2Wp2ANC35Og3J1GqV63kOusITAS8QeSPPdgt4KyFKfL2aAjYyEPl6u.xr0BHyCV.Y19iJi5qot2XXTdSiZXC+izIWVVGwUSWoG0B8+wKXyED
-
@ustk have you set an external slot?
-
@Christoph-Hart Yes...
In fact I've just realised this has to be in the dsp script...
But since the scriptFX parameters are consumed by the dsp, how do I access these properties from main interface? because I can't use parameters in this script... -
@Christoph-Hart Here's a snippet where I want to connect the interface parameters to the dsp ringBuffer properties
HiseSnippet 1861.3ocuX0saaibEdjro10pIE6BjG.BekBpihnsiicKB7uRYEZrCgjR1cQvhfwjijFHxYXIGs1ZWj2g81ceH5yPtr6aQA5U8lh9FzdNyPJRpHG6Hzt7BaNmybNmu4Lm+nbikdrjDYLoxFClEwHUtmU+YB03SGS4BR2yHUdfUmNCrOY5vgrX6yhoWwEiHmLKhljv7IUpr1ywcVYi0I5m+8gmPCnBOVNIB40RtG6E7PtJmp6Q+YdPPGpOa.Orvt28ntdRwox.4T.UqY0hDQ8lPGwtfhaqpEoRs19bkLtuhpXIjJqehzeV+wxqDl8+ZdB+x.FtvgzGTjgbGYfOhXjJ4zw7.e2rSeBAzhatuXMiu3AVmy84yom6S9BMC6bIJ5OpTsL7VqD7bJBuVEf2RfTkBPxx.ouzpuWLORkyAwyuypqPwhGRA2dQnbwzvy3IQAzYl6O.MVUpBNYiRHU+g0rNUBhJTMCoSXchgEyUUi8Z0ZKa3OO7OUG1UhLf0zKfQia.DpCWRIJ6umFa6REr.G6mYmopQL0oxvHo.VzXSC6MAYxEIAtb8XfH5fMTfR3rulciMMvzty2nEutQSM8oJZyKMAjOKUUefJZfntd8G+X6mcaO1meb2Kr6619zA8d04299yvQBS4BQDpdxoJtf0X3TgmhKEMF8v5+X8MF0bHDfebPPCSvbB.73IihYy.jAbSPuDxXN+qFyULCSeHQykpF2PMlmXNwQvxsreCbk3rkslLbl+ZtOroGlS3qX7QiUMd32AaqI5Cdm1OjCYLaK9TZPvkPZUNl0Ptrw.maNAi+toWLChp0HCQRq6FRdyi.rnAjVjG4LGcELY7kKyffh5wn9oWpykHlEgt9FoGvrimhFaNfM1wb+WO6.ZKEWHUrWldRq+t51KxZ3vkxCipikAAn4WBai49HB1PLM7RV7VPfevT17MBUbJWmv5lqSTrLlmIIqvFkhtBt5kQLwMUbijlYB0TplhJXqJcEkeeZEk9AbeVLgCEN9LKelGcFQC3zJy1+0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GldOkI7lUDR+gmtyi+oRPpzY0oDhpY4r2MbXumV818vnQRIwI2U+nyM5GeNjCeyJc8aSonR9LK2wzjBZo0pnkZ5QTVDJ4SaRHEhxsrFNTUN799VTAMXVBqIxpTKxaIvtjQ9TixqlFkaTbanfouOyWKdVEnhg9oGhZF+l9SyKeLtmUH7eyGsuPBZweMja4LUsT5VkO8aTCoEtQK5mJcnJxQOLCtZF5bzgucSdMxE5gloQnJ4IR4jPptb7J8UF+lz7Hj5EKeqmoeHd39bME3NPn+os1v5bbssS1mNYbUv.77254kU6a4xr8JHyNqfL6tBx7jUPl8VAYd5JHy9eTYvekuimBeUlo2MPvssIarRaANnrtj.4+BB8N13.
-
@ustk Never mind, I found it, I had to manually register a network and disable setForwardControlsToParameters
-
This post is deleted! -
@Christoph-Hart The analyser buffer path produces plenty of artefacts:
Although the code is as simple as it can be
This happens 50% of the time after hitting compile, so try to compile several times if you don't see the issue
It seems to happen more with highest buffer size (like 16384 or 32768)HiseSnippet 2149.3ocwY0saajaElisobrVmfDffhd4Ti8BY.GgYjkUraw1H4ejsPrcDr75cMBBBnmgRhvyecFpUVcQ.ReE5c6c8In226xqSup6aP6gjynYFYoXas6lJH3Qj7bN7iGd324vwsC8snQQ9gHsUNeT.EosJtyHOd+85SXdnV6iz9c3lMOWe2Ac6RC02OjLj40SeSztiBHQQTajl1hGJjUakkPxO+7q1k3P7rnocgPW3yrnGybY7zdaW+0LGmlDa54L2LRWsdKKeu87c7G.3ZQrAJfXcMoG8ThPrEvHsBGXy39gc3DNMBoszt91i5z2enmR9KXQrqbnhFlnNfgTc2z2wVfXQun85ybramr9iPfUZm5MVT4MdN9DlMab+odkmJGPOUir9CsExCuEyAOyrvyHC7lBjzx.IrBROC2wJjEvSGQfmuB2xiSC6R.2dVnb5.28YQANjQpcP.MXsE.mrxHnEnKh2yGT0iW1kbMsYHzXroJYVwvXC8ZFFq+mJVD1Th35+.ITuMwi5Xp+M5Ip1ix2y2Mv2CZTZM0vqA5jpRDr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qlBtjUTqv+x38OXuFW9k45UtDqP+2aE+pB.lxGI6AHg8j+yHVAehnstYR8+pTWfGj8dKqjZOmtNUlCc1bNzo5bnyVygN0lCcd4bny1eVcD+eYZLf66pReCcz9.YVNMsC7DupI46cB8+..XsOx.
I thought it would be better once compiled but the same thing happens in the binary
I don't always get it as bad as it is in this example but in every attempt I still have some artefacts here and there wich is unfortunately not usable in a commercial project as it is... -
@Christoph-Hart Some more debug info:
Strangely this only happens to the first external buffer when you create two of them
HiseSnippet 2187.3ocyY8zaajaEmx1TNVqSPBPPQON0XOn.jHLirrhcKZirrsrEhsifkWuqQPP.8LTRDdlgZmgZsUWDfzuB81dqeB58dKm6GjBzSc+Fz9H4LZlQVxVV6lfZj.YR99yO93iueOJ2JfaSCC4Anbqb5v9TTtUwsG5K5sSOByG0bWTteCtQiSMpOnSGZfwtAjqX9cMpfpOrOILj5fxkaw8kxlakkPpe94WUm3R7soISgPmwY1zCYdLQxrsp8ZlqaChC8TlWJoqTqoM2eGtKe.fqEwln9D6KIcoGSjhs.FkK+dNLAOnsfHngnbKUm6LrcO9U9Z4OiExtvkJGXgZCFROcCtqiDwxYQ6zi45zJd+Gh.qzJIZrnNZ7T7QLG1n4ShJOVsfQhFoiG4VHK7VLC7rRCOyTvaBPJWJHg0P5I311Ar9hjUj34qvM8EzfNDHrmFJGOvaWVXeWxP8IHfFbtEffr1HnE9WKh2gCp5KJ4Qtj1H.FLxTEsJaZ9bipllO6OTn.bnDJL9ARfQKhO00x3OZDqZWpXGtWetOLn3Z5kWCzIQkP3vzlBpnRujJjAWsUKWbMMrLZ7cJ0KnsTIGhfT5BkflfIz15F1nnDk2TCqaQCKoSh0IjJZAmuhS3CDLeZwNC7sELtewtOqvOVXktRAzYkE0eDVhGP76RAi.q5.2MZQD8JJ5wB0.nOLDheuE9O7O07.D9VlCH0yRl3.JqaOQwm8NPrRaXpM2McF46GPtUWYockk48yYeXrff71XvNDW2KfqcIQAUPXr8FDZSlI5.pjc.Ex6U36dr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the scripting thread. I‘ll look into it. It‘s on macOS?
-
@Christoph-Hart Thanks, yep macos
-
@ustk I couldn't reproduce it consistently (I can imagine it depends on your hardware because the glitch only happens when both threads access the same data). I've pushed a fix, but I can't ensure it fixes your problem.
-
windows.add("Flat Top"); windows.add("Blackman Harris"); windows.add("Hann"); windows.add("Hamming"); windows.add("Kaiser"); windows.add("Gaussian"); windows.add("Triangle"); windows.add("Rectangle");
It's great to see to customize the spectrum analyzer, well done! In the source code there are various Window Types. While swapping them, I couldn't see any difference on the spectrum except Rectangle type. Is there anything we should know about these?
Except this cubic spectrum, can the spectrum type be changed (for example curvy spectrums like below)?
-
@Christoph-Hart Unfortunately that didn't fix the issue
-
@Christoph-Hart Check at this, it appears that the glitch isn't from createPath but within the buffer itself.
Here I use getReadBuffer/getResizedBuffer with a sinus and you can see the spectral trace of the first harmonic as we should, plus the oscillo trace of the sine as a glitch at the same time. This means the buffer sometimes contains both sets of data so it is probably not clean as it should.
Another issue -> the data are spread only on the first half of the buffer (for instance the full spectrum goes from 0 to 128 in a 256 length resized buffer (or full read buffer), the remaining are zeros)
When using createPath, it isn't the sine that we see as a glitch, but it might be the imaginary part
The problem might not be a thread access issue after all...HiseSnippet 2268.3ocyY0raajbDtojFJqYsMrALB1iSD1CzXkomg5GKua1Xp+nMgsjID0pcMLLLZMSSxFZloYlo4Jwrv.NuB41dKOAAHGyM+JjGibJ6aPRUcOCmYnHsnztqQDrAU+SU8WUc00WUTshDtr3XQDozRGMrOiT5lFsGFJ6sSOJOjzbWRoemQiFGYs8fNcXQV6FQOiG10Zcx1C6SiiYdjRkl+o3dKszBD0O+7S1l5SCcYYSQHGK3trWvC3xrYaU+4be+FTO1Q7fb6ds5McEg6H7EC.bMugMoO08TZW1ATbayYPJUdOOtTD0VRkrXRoE1V3MrcOwYg58eLOlehOCG3PZCJROcCguGhXbVxN839dsRs+XBnkVYdi40di6YrO2iOZ9LuxcTKXkIQd+Qo4JBu4K.Om7vyNG7l.jJkCRFZHcWi1t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Qr3iYBoiUI1zv4Ao3bwLbV23PnqTnBJel4XMnX9LnpHn3U3yvPymS4wrHyih35M2.BuNBbmWQy31yVof4LAddSnY8.tmmOqk.ZdWEcmdvG8g3QDKoUf8OeRP9uT8W8Ak8Ox27gX39UUVtgk21j.UPOFnn5j5xsrl0krykXu0Gt0AOcOqW7RhGqCcfu73ITI6HWvslsZYmlKfPlhKfT6RcAu+3ht.B4WYWvyZRxapKMSEcmCPCGyRyC15Im0RFux5oas+9aMEuMYZwHjeNmyP4axi0Euz56mFNaVOCmu+d+8+ySl.tT8Cnw+hF6t2Na8pOMMGFPciDu0M4qVAxTdC0LPR3P0eHnkL1GGa4j18hlFC7f7255lV47jko10PlUuFxr10Pl0uFxrw0PlGcMjYyOpL3eSrsFHEAZ5aXhV6oX4JUZuP7qlS88zQ9eP5i+5d
Below I generated two spikes (20Hz & 20kHz) + noise to demonstrate the buffer is going up to SR instead of 20kHz. Maybe a remaining of the real + imaginary part that necessitates doubling the Nyquist length? That isn't as bad as the glitch though because it is easy to limit the drawing to 20kHz...
SR = 48kHz
SR = 96kHz
@Christoph-Hart Any insight on this ? I really need the spectrum to work :)
-
-
@harris-rosendahl yep, curves would be nicer than the square edge current design...
-
@DanH you can implement it yourself with a read buffer and an interpolation of your choice. This way you can make the desired shape (cubic, line, bars, etc...)
-
@ustk said in Spectrum ballistic (display buffer):
@DanH you can implement it yourself with a read buffer and an interpolation of your choice. This way you can make the desired shape (cubic, line, bars, etc...)
Is it possible to give an example for this iteration & read buffer please?