I've just remembered a method I used with previous programs I've written. Its aim is to avoid the loss of data when a computer fails during file writing, or in the event of other causes that might cause file corruption.
I've responded to a few people on here who have had corrupted Edit files. As these files are XML format, some of the data can be rescued, and the file reconstructed to some extent so that Waveform or Tracktion can at least open it. But data may well be lost.
This kind of happening was a worry with PC software I was writing a number of years ago. The solution I came up with was simple. You write two copies of the data file, consecutively.
Suppose we're in Waveform and want to save an Edit. Waveform saves the data as whatever.tracktionedit1 and, when that's done, saves it again as whatever.tracktionedit2.
This saving may happen several times in a session.
Normally both saved edit files are the same. When Waveform starts up, it reads the 1 file and it loads okay.
If there had been some sort of failure while writing the 2 file, the 1 file should be complete and intact. Waveform could start and at that point check the contents of 2. If it was damaged or different, it could be overwritten with the data from 1.
If the failure happened when writing file 1, Waveform would recognise the damage to file 1, read 2, and try to overwrite file 1.
That should make both files identical and intact for the new session.
It's far less likely that both files could be corrupted than just one of them.
The overhead to write two relatively small files isn't going to be much these days.
Anyway, just thought I'd toss the idea into daylight for consideration.
Thought for T devs regarding occasional corruption of .tracktionedit files
Discussion about: tracktion.com
Moderator: Tracktion Mods
Thought for T devs regarding occasional corruption of .tracktionedit files
2019-01-05T03:46:43+00:00
I've just remembered a method I used with previous programs I've written. Its aim is to avoid the loss of data when a computer fails during file writing, or in the event of other causes that might cause file corruption.
I've responded to a few people on here who have had corrupted Edit files. As these files are XML format, some of the data can be rescued, and the file reconstructed to some extent so that Waveform or Tracktion can at least open it. But data may well be lost.
This kind of happening was a worry with PC software I was writing a number of years ago. The solution I came up with was simple. You write two copies of the data file, consecutively.
Suppose we're in Waveform and want to save an Edit. Waveform saves the data as whatever.tracktionedit1 and, when that's done, saves it again as whatever.tracktionedit2.
This saving may happen several times in a session.
Normally both saved edit files are the same. When Waveform starts up, it reads the 1 file and it loads okay.
If there had been some sort of failure while writing the 2 file, the 1 file should be complete and intact. Waveform could start and at that point check the contents of 2. If it was damaged or different, it could be overwritten with the data from 1.
If the failure happened when writing file 1, Waveform would recognise the damage to file 1, read 2, and try to overwrite file 1.
That should make both files identical and intact for the new session.
It's far less likely that both files could be corrupted than just one of them.
The overhead to write two relatively small files isn't going to be much these days.
Anyway, just thought I'd toss the idea into daylight for consideration.
jabe
https://www.kvraudio.com/forum/memberlist.php?mode=viewprofile&u=191043
Post Reply
1 post
• Page 1 of 1
Jump to
- The Main Forums
- ↳ KVR Studio Manager
- ↳ Getting Started (AKA What is the best...?)
- ↳ Instruments
- ↳ Effects
- ↳ Hosts & Applications (Sequencers, DAWs, Audio Editors, etc.)
- ↳ Guitars
- ↳ Mobile Apps and Hardware
- ↳ Soundware
- ↳ Samplers, Sampling & Sample Libraries
- ↳ Hardware (Instruments and Effects)
- ↳ Modular Synthesis
- ↳ Sound Design
- ↳ Production Techniques
- ↳ Music Theory
- ↳ Computer Setup and System Configuration
- ↳ DSP and Plugin Development
- ↳ DIY: Build it and they will come
- ↳ Music Cafe
- ↳ Sell & Buy (+Special Offers, Deals & Promos)
- ↳ KVR Experts
- ↳ KVR Developer Challenge 2026
- ↳ Everything Else (Music related)
- ↳ Off Topic
- ↳ Off Topic Classics
- ↳ Machine Learning and AI for Music Creation
- Official Company Forums
- ↳ 2getheraudio
- ↳ accSone
- ↳ Acon Digital
- ↳ AcousticsampleS
- ↳ AcousModules
- ↳ Agitated State
- ↳ AIR Music Technology
- ↳ AMG
- ↳ Ample Sound
- ↳ Antares Audio Technologies
- ↳ Apisonic Labs
- ↳ APU Software
- ↳ apulSoft
- ↳ AriesCode
- ↳ Arts Acoustic
- ↳ Arturia
- ↳ Audjoo
- ↳ AudioSpillage
- ↳ Audiority
- ↳ Best Service
- ↳ Big Tick
- ↳ Bitwig
- ↳ Controller Scripting
- ↳ Blue Cat Audio
- ↳ Cherry Audio
- ↳ CWITEC
- ↳ Embertone
- ↳ energyXT
- ↳ Eventide
- ↳ Expert Sleepers
- ↳ forward audio
- ↳ Future Audio Workshop
- ↳ FXpansion
- ↳ g200kg
- ↳ Harrison Mixbus
- ↳ HG Fortune
- ↳ Homegrown Sounds
- ↳ HoRNet Plugins
- ↳ Ilya Efimov Production
- ↳ Image Line
- ↳ Impact Soundworks
- ↳ Indiginus
- ↳ Insert Piz Here
- ↳ Ju-X
- ↳ Kirk Hunter Studios
- ↳ Kirnu
- ↳ Kong Audio
- ↳ Krotos
- ↳ Kuassa
- ↳ KV331 Audio
- ↳ LennarDigital
- ↳ Les Productions Zvon
- ↳ Liqube Audio
- ↳ Loomer
- ↳ LVC-Audio
- ↳ Maizesoft
- ↳ Manytone Music
- ↳ Media Overkill (MOK)
- ↳ MeldaProduction
- ↳ Mellowmuse
- ↳ MIDIMood
- ↳ moForte
- ↳ Mozaic Beats
- ↳ mucoder
- ↳ MusicDevelopments
- ↳ Tips & Tricks
- ↳ MusicLab
- ↳ MuTools
- ↳ New Sonic Arts
- ↳ NUSofting
- ↳ Oli Larkin Plugins
- ↳ Orange Tree Samples
- ↳ patchpool
- ↳ Photosounder
- ↳ PlugInGuru
- ↳ Polyverse Music
- ↳ Precisionsound
- ↳ Premier Sound Factory
- ↳ Psychic Modulation
- ↳ Realitone
- ↳ Resonance-Sound
- ↳ Reveal Sound
- ↳ Roger Linn Design
- ↳ rs-met
- ↳ S3A: Spatial Audio
- ↳ SaschArt
- ↳ Smart Electronix
- ↳ sonible
- ↳ SonicBirth
- ↳ Sonic Reality / eSoundz.com
- ↳ Soundiron
- ↳ SPC Plugins
- ↳ Sugar Bytes
- ↳ TAL Software
- ↳ Tokyo Dawn Labs
- ↳ Tracktion
- ↳ Tweakbench
- ↳ u-he
- ↳ u-he Linux support
- ↳ United Plugins
- ↳ VAZ Synths
- ↳ Virharmonic
- ↳ xoxos
- ↳ XSRDO - SynthCraft
- ↳ ZynAddSubFX
- Site Stuff
- ↳ Site Stuff
- Archived Forums
- ↳ AlgoMusic
- ↳ easytoolz
- ↳ Elevayta
- ↳ Hollow Sun
- ↳ LinPlug
- ↳ Muse Research and Development
- ↳ Shuriken
- ↳ SoHa Sound Design
- ↳ Soniccouture
- ↳ Topten Software
- ↳ Valhalla DSP
- ↳ CK Modules & VST
- ↳ Sennheiser AMBEO
- ↳ Muon Software
- ↳ Westgatesounds.net
- ↳ Squaredheads
- ↳ Sonigen
- ↳ CFA-Sound
- ↳ Back In Time Records
- ↳ Livelab.dk
- ↳ Skytopia
- ↳ audioD3CK
- ↳ Inspire Audio
- ↳ Krakli
- ↳ Drumdrops
- ↳ Futucraft
- ↳ OverTone DSP
- ↳ RaXnTraX
- ↳ solar3d-software
- ↳ Signaldust
- ↳ Soundemote
- ↳ ReleaseLab (Powered by Artist Expansion)
- ↳ Wolfgang Palm
- ↳ UJAM
- KVR Forum index
- All times are UTC
- Delete cookies
