rhetr / surplus Goto Github PK
View Code? Open in Web Editor NEWsample and plugin browser for a modular LAU
License: GNU General Public License v3.0
sample and plugin browser for a modular LAU
License: GNU General Public License v3.0
./surplus
[Errno 2] No such file or directory: '/home/milk/.config/surplus/config'
making new config file
Traceback (most recent call last):
File "./surplus", line 274, in <module>
style = open(config['Stylesheet'], 'r').read()
FileNotFoundError: [Errno 2] No such file or directory: '/home/milk/.config/surplus/style.qss'
I discovered this while browsing to my drum samples and accidentally triggering an mp3 of a full song, it just kept on playing for the full 5 minutes, and even kept on playing after I quit the program =)
I have been finding Surplus extremely useful!
Waveform display had never worked for me until the latest round of updates, but Surplus seems to wait for the waveform to be drawn before playing the sample which, as you put it, slows everything down, and makes the process of going through banks of hundreds of samples to find the perfect snare a much slower process than before
It would be cool if the sample played first, and the waveform drawing took place afterward, and would only complete if the user doesn't go to a new sample. This way it wouldn't slow down sample browsing
After copying style.qss to ~/.config/surplus (#7), I get;
./surplus
checking config..
config ok
Traceback (most recent call last):
File "src/surplus", line 278, in <module>
main = MainWindow()
File "src/surplus", line 87, in __init__
self._initPluginsTab()
File "src/surplus", line 165, in _initPluginsTab
build = PluginTreeBuilder()
File "/home/milk/src/surplus/src/PluginTreeBuilder.py", line 17, in __init__
if not a.get_class().get_parent_uri().is_uri():
AttributeError: 'NoneType' object has no attribute 'is_uri'
1000px high windows don't fit on most screens. I can't really see a reason for a minimum height at all. The window looks find at 600px, after changing the minimum height.
Hey! I just stumbled on your plug for Surplus over on a Fabla thread. Cool stuff, however I'm having issues getting it to work. I get this console error every time I try and play a sample:
QCoreApplication::postEvent: Unexpected null receiver
QCoreApplication::postEvent: Unexpected null receiver
QCoreApplication::postEvent: Unexpected null receiver
Traceback (most recent call last):
File "surplus", line 180, in mouseReleaseEvent
self.scene().changeDir(self.text)
File "surplus", line 272, in changeDir
self.drawContents()
File "surplus", line 296, in drawContents
self.items[1].setSelected(True)
File "surplus", line 134, in setSelected
self.playSample()
File "surplus", line 126, in playSample
self.playing = play(self.text)
File "surplus", line 40, in play
preexec_fn=os.setsid)
File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
20686
finished making wave
I ran it with python 2, as python 3 threw an error right away
./surplus
making new config file
Traceback (most recent call last):
File "./surplus", line 16, in <module>
from FileList import *
File "/home/milk/src/surplus/src/FileList.py", line 9, in <module>
from config import *
File "/home/milk/src/surplus/src/config.py", line 26, in <module>
yaml.dump(config_default, config_file_settings)
File "/usr/lib/python3.6/site-packages/yaml/__init__.py", line 200, in dump
return dump_all([data], stream, Dumper=Dumper, **kwds)
File "/usr/lib/python3.6/site-packages/yaml/__init__.py", line 188, in dump_all
dumper.represent(data)
File "/usr/lib/python3.6/site-packages/yaml/representer.py", line 27, in represent
self.serialize(node)
File "/usr/lib/python3.6/site-packages/yaml/serializer.py", line 54, in serialize
self.serialize_node(node, None, None)
File "/usr/lib/python3.6/site-packages/yaml/serializer.py", line 107, in serialize_node
self.serialize_node(key, node, None)
File "/usr/lib/python3.6/site-packages/yaml/serializer.py", line 90, in serialize_node
style=node.style))
File "/usr/lib/python3.6/site-packages/yaml/emitter.py", line 115, in emit
self.state()
File "/usr/lib/python3.6/site-packages/yaml/emitter.py", line 393, in expect_first_block_mapping_key
return self.expect_block_mapping_key(first=True)
File "/usr/lib/python3.6/site-packages/yaml/emitter.py", line 403, in expect_block_mapping_key
self.expect_node(mapping=True, simple_key=True)
File "/usr/lib/python3.6/site-packages/yaml/emitter.py", line 244, in expect_node
self.expect_scalar()
File "/usr/lib/python3.6/site-packages/yaml/emitter.py", line 268, in expect_scalar
self.process_scalar()
File "/usr/lib/python3.6/site-packages/yaml/emitter.py", line 533, in process_scalar
self.write_plain(self.analysis.scalar, split)
File "/usr/lib/python3.6/site-packages/yaml/emitter.py", line 1131, in write_plain
self.stream.write(data)
TypeError: a bytes-like object is required, not 'str'
then I get
./surplus
opening existing config
bad config, resetting to defaults
Traceback (most recent call last):
File "./surplus", line 16, in <module>
from FileList import *
File "/home/milk/src/surplus/src/FileList.py", line 9, in <module>
from config import *
File "/home/milk/src/surplus/src/config.py", line 36, in <module>
yaml.dump(config_old, config)
File "/usr/lib/python3.6/site-packages/yaml/__init__.py", line 200, in dump
return dump_all([data], stream, Dumper=Dumper, **kwds)
File "/usr/lib/python3.6/site-packages/yaml/__init__.py", line 188, in dump_all
dumper.represent(data)
File "/usr/lib/python3.6/site-packages/yaml/representer.py", line 26, in represent
node = self.represent_data(data)
File "/usr/lib/python3.6/site-packages/yaml/representer.py", line 51, in represent_data
node = self.yaml_multi_representers[data_type](self, data)
File "/usr/lib/python3.6/site-packages/yaml/representer.py", line 315, in represent_object
reduce = data.__reduce_ex__(2)
TypeError: cannot serialize '_io.TextIOWrapper' object
I'm on Arch Linux. python-yaml version is 3.12-3
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.