Release Candidate
One thing I really don't like is when there's a software update and there are no new features. So this little update... it got more features!
The issue with textually representing data is that, well, it's not enough for some data. Let's say you hear a pop when you play an audio clip on repeat, is it a bug in your audio mixer or is the audio clip just not designed to loop? It would be easy to see if you could plot the audio wave!
With 0.2.3 version you can plot 2D data. The command line version exports each plot as a custom (offline) HTML file that you can inspect. GUI version will have its own in-built visualization (once I start porting the update).
Plotting is fairly straight forward, here's an example you can find in the wav.bet (included in package):
... struct WavFile { ... var plotBaseId = create_plot(); if (fmt.audioFormat == WaveFormatID.IEEE_FLOAT) { for (var channel = 0; channel < fmt.channelCount; channel += 1) { for (var i = 0; i < data.chunkSize / fmt.blockAlign; i += 1) { // One plot for each channel. var id = fmt.channelCount * plotBaseId + channel; plot_y(id, data.samples_ieee[i].e[channel]); } } } };
Other new features are array_count(member) and delayed evaluation of typedef, this means a typedef can modify its meaning based on data present in the data file. As an example:
var ptr_size; typedef alignas(ptr_size) u(ptr_size, hex) ptr_t; struct MyFile { u(4) is64Bit; if (is64Bit) { ptr_size = 8; } else { ptr_size = 4; } ptr_t myPointer; // ptr_t typedef is evaluated at this point. }; layout MyFile;
0.2.3 has bug fixes, it has new features - next step: GUI app update.
If you want to try out the command line version on Windows, you can by downloading bedit-cli-0.2.3-wip-win_RC2.zip. If you're on Linux you'll have to wait until I make the full release, or head over to the public Bitbucket repo and build it from sources.
Files
Get BEdit
BEdit
Binary File Editor
Status | In development |
Category | Tool |
Author | Kipt |
More posts
- It's still alive!Apr 26, 2024
- Blog Post UpdateOct 25, 2021
Leave a comment
Log in with itch.io to leave a comment.