FxBall error on SoundGrain

5 views
Skip to first unread message

dennis

unread,
Apr 22, 2024, 10:16:09 AM4/22/24
to pyo-discuss
Hi,

Playing around Soundgraind and having fun I can't get the FxBall, when I try to launch it it returns me in the terminal:

Traceback (most recent call last):
  File "/home/dennis/Softwares_Exe/soundgrain-master/Resources/MainFrame.py", line 288, in addFxBall
    self.panel.addFxBall(evt.GetId() - 400)
  File "/home/dennis/Softwares_Exe/soundgrain-master/Resources/DrawingSurface.py", line 162, in addFxBall
    self.fxballs[key] = FxBall(fx, key, self.parent.sg_audio, (100,100))
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/dennis/Softwares_Exe/soundgrain-master/Resources/FxBall.py", line 192, in __init__
    self.setBitmaps(self.size, self.halfSize)
  File "/home/dennis/Softwares_Exe/soundgrain-master/Resources/FxBall.py", line 209, in setBitmaps
    self.mask = GetRoundMaskBitmap(size, size, halfSize)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/dennis/Softwares_Exe/soundgrain-master/Resources/FxBall.py", line 155, in GetRoundMaskBitmap
    b = wx.EmptyBitmap(w,h)
        ^^^^^^^^^^^^^^^^^^^
TypeError: Bitmap(): arguments did not match any overloaded call:
  overload 1: too many arguments
  overload 2: argument 1 has unexpected type 'float'
  overload 3: argument 1 has unexpected type 'float'
  overload 4: argument 1 has unexpected type 'float'
  overload 5: argument 1 has unexpected type 'float'
  overload 6: argument 1 has unexpected type 'float'
  overload 7: argument 1 has unexpected type 'float'
  overload 8: argument 1 has unexpected type 'float'
  overload 9: argument 1 has unexpected type 'float'
  overload 10: too many arguments

Any idea to make it work ?




Olivier Bélanger

unread,
Apr 23, 2024, 9:13:51 PM4/23/24
to pyo-d...@googlegroups.com
Hi,

Looks like Soundgrain needs some love to be compatible with WxPython 4! Good news is I have already done that job for pyo and Cecilia5, so it should be pretty easy to make it work again. I'll let you know when it's ready. 

Olivier


--
You received this message because you are subscribed to the Google Groups "pyo-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyo-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyo-discuss/ebf1acd7-8867-4891-94ea-ed925e08b2fbn%40googlegroups.com.

dennis

unread,
Apr 24, 2024, 4:54:37 AM4/24/24
to pyo-discuss
I see, thanks Olivier.
Reply all
Reply to author
Forward
0 new messages