Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Offline Editor For Project Files (*.NRD)
#48
Hi Nerds!

[updated once more Smile]

Find attached my again updated Perl script to transform an exported [bulk] pattern file into a text version and also back again. The sequencer parts are now appended side by side in one block at the end of the file. I intentionally did not try to come up with XML or JSON, because
- for one it would be trivial to amend the script accordingly if someone wants to do it
- my main goal is and was to edit projects in editors like emacs or notepad++
- at this point I want to be sure I got everything right Smile

Things missing:
- Video patterns - the format is not yet described and I don't have a video NSA to test it, however each row is dumped as 21 hex bytes
- raw "voltage" value in CV16 lanes are only an approximation and sometimes off by 1 (smaller and/or larger) than the original values. I do linearly interpolate the values and my formula obviously differs ever so slightly from the one Thomas is using
- very little to no plausibility checks for parameters

Except for bug fixes and of course format changes and additions (e.g. Video) I expect this to be done for the time being.

A very brief usage section is at the top of the Perl Script.
Feel free to ask questions.

Kind regards,
Michael

PS: I had to append a ".txt" to the name of the script to be able to upload.
PPS: A few counts in the file format description are off by 1, namely the number of Patterns and Sequence rows. The description gives the last valid ID which is 1 smaller than the count since the IDs are 0-based. Details regarding this and when/where "endian-ness" matters are commented in the Perl script.


Attached Files
.txt   pattern2text.pl.txt (Size: 39,46 KB / Downloads: 36)
Reply


Messages In This Thread
RE: Offline Editor For Project Files (*.NRD) - by mgd - 12-30-2022, 12:08 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)