Git Product home page Git Product logo

surplus's People

Contributors

rhetr avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

surplus's Issues

No way to stop playback

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 =)

Sample should play before waveform is rendered

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

PluginTreeBuilder.py:17 - AttributeError: 'NoneType' object has no attribute 'is_uri'

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'

Minimum height is bad

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.

Samples don't play - OSError: [Errno 2] No such file or directory

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

"TypeError: a bytes-like object is required, not 'str'" then "TypeError: cannot serialize '_io.TextIOWrapper' object" error on start

./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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.