jaxter184 / bwedit-python Goto Github PK
View Code? Open in Web Editor NEWPython script for editing Bitwig files
Python script for editing Bitwig files
Every time I try to save the device, it produces a device of 0 byte size.
Atoms and fields need to be manually refreshed when changed.
Just an idea to increase usability.
Ubuntu 16.04. Python versions 3.5 and 3.6.
[I] (env3.6) dan@dan-UX303UA ~/C/p/bwConvert> python editor.py
Traceback (most recent call last):
File "editor.py", line 1061, in <module>
app = Application()
File "editor.py", line 36, in __init__
tk.Tk.iconbitmap(self, default="bitwig.ico")
File "/usr/lib/python3.6/tkinter/__init__.py", line 1869, in wm_iconbitmap
return self.tk.call('wm', 'iconbitmap', self._w, '-default', default)
_tkinter.TclError: wrong # args: should be "wm iconbitmap window ?bitmap?"
Ubuntu 16.04 x64. Python 3.5 and 3.6.
[I] (env3.6) dan@dan-UX303UA ~/C/p/bwConvert> python main.py
Heyo I'm Jaxter, thanks for using my little script. Notice how I said 'my'. That's right, this is something that I made, and you should therefore be pretty careful about using it. I won't take responsibility for breaking your Bitwig devices, so make sure you have a copy of them saved somewhere before starting. Also, be cautious in general; just because I trust my own work doesn't mean you should.
Now, with the fearmongering out of the way, lets get started.
Enter the subdirectory that your devices are in. (If they're in the 'inputs' folder, just press enter)
-NoteEcho.bwdevice
Traceback (most recent call last):
File "main.py", line 121, in <module>
magic(file, inputDir)
File "main.py", line 24, in magic
gather = decoder.bwDecode(device_data)
File "/home/dan/Code/python/bwConvert/src/decoder.py", line 417, in bwDecode
output.append(getClass(text))
File "/home/dan/Code/python/bwConvert/src/decoder.py", line 282, in getClass
getParams(text, object)
File "/home/dan/Code/python/bwConvert/src/decoder.py", line 249, in getParams
value = parseField(text)
File "/home/dan/Code/python/bwConvert/src/decoder.py", line 139, in parseField
tempList.append(getClass(text))
File "/home/dan/Code/python/bwConvert/src/decoder.py", line 282, in getClass
getParams(text, object)
File "/home/dan/Code/python/bwConvert/src/decoder.py", line 249, in getParams
value = parseField(text)
File "/home/dan/Code/python/bwConvert/src/decoder.py", line 108, in parseField
return getClass(text)
File "/home/dan/Code/python/bwConvert/src/decoder.py", line 282, in getClass
getParams(text, object)
File "/home/dan/Code/python/bwConvert/src/decoder.py", line 249, in getParams
value = parseField(text)
File "/home/dan/Code/python/bwConvert/src/decoder.py", line 108, in parseField
return getClass(text)
File "/home/dan/Code/python/bwConvert/src/decoder.py", line 282, in getClass
getParams(text, object)
File "/home/dan/Code/python/bwConvert/src/decoder.py", line 249, in getParams
value = parseField(text)
File "/home/dan/Code/python/bwConvert/src/decoder.py", line 168, in parseField
flVals.append(struct.unpack('f', struct.pack('L', intConv(text[offset:offset + 4])))[0])
struct.error: unpack requires a buffer of 4 bytes
Ubuntu 16.04. Python 3.5 and 3.6.
> python main.php
Heyo I'm Jaxter, thanks for using my little script. Notice how I said 'my'. That's right, this is something that I made, and you should therefore be pretty careful about using it. I won't take responsibility for breaking your Bitwig devices, so make sure you have a copy of them saved somewhere before starting. Also, be cautious in general; just because I trust my own work doesn't mean you should.
Now, with the fearmongering out of the way, lets get started.
Enter the subdirectory that your devices are in. (If they're in the 'inputs' folder, just press enter)
-NoteEcho.bwdevice
Traceback (most recent call last):
File "main.py", line 121, in <module>
magic(file, inputDir)
File "main.py", line 14, in magic
device_data = fs.read_binary(directory + '\\' + name)
File "/home/dan/Code/python/bwConvert/src/lib/fs.py", line 16, in read_binary
with open(path, 'rb') as file:
FileNotFoundError: [Errno 2] No such file or directory: 'input\\NoteEcho.bwdevice'
Changing line 14 of main.py resolved the issue for me:
device_data = fs.read_binary(os.path.join(directory, name))
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.