[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-users] missing singleton reference when trying to add Twister.sc to SCClassLibrary



Fantastic, Scott, thanks so much, this is super helpful! I will def reach out if I am still confused. I am particularly interested in your quark because you seem to have found a nice way to separate the knob button press from the rotary controls, which I have been stumped on for the last week.

Casey


On December 27, 2018 at 3:13:33 PM, scott@xxxxxxxxxxxxx (scott@xxxxxxxxxxxxx) wrote:

Hey Casey! I checked and noticed that the Twister quark does actually include the right dependencies - I think you just ran into trouble because you didn't install it. I would suggest, following Till's guidelines, that you remove anything you added to the SCClassLibrary folder. From there, you can install the Twister quark the recommended way by running:


This should install all the required dependencies - from there, you'll just need to recompile via Language -> Recompile Class Library.

Modality Toolkit might be worth looking at as well - the Twister quark provides a fairly deep and extensive set of controls for the Twister specifically. You can do a lot with it, but it's a little heavy-weight - Modality is probably a better choice if the goal is just using it as a quick-and-dirty MIDI controller. If you have any other questions, though, feel free to ask!

- S


On Thu, Dec 27, 2018 at 8:45 AM <cta@xxxxxxxxxxxxxxxxx> wrote:
Ah great, thanks, Scott and Till, this is exactly the info i was looking for.

Modality toolkit looks cool, I'll def check it out too!

Casey




On Thu, Dec 27, 2018 at 1:18 AM -0600, <lfsaw@xxxxxxxx> wrote:

Hey casey,

To extent sc, please do not add classes to the scclass library but to the extensions folder.
If you need help for this, id suggest reading 


Also, you might want to check out the modality toolkit for accessing the midifighter. 


I believe the midi fighter is currently not in the list of supported controllers but it should be fairly easy to add. 

Hope that helps
Till


On 26. Dec 2018, at 21:31, cta@xxxxxxxxxxxxxxxxx wrote:

Hi all,

I am trying to add a class to interface with a midifighter twister to the SCClassLibrary…specifically, this class. Have run into what I feel like is probably a small issue on my part but I am currently stumped. After forking and cloning the .sc file I dumped it into /Applications/SuperCollider/SuperCollider.app/Contents/Resources/SCClassLibrary/ and after recompiling the library I get the following error:

ERROR: Superclass 'Singleton' of class 'TwisterDevice' is not defined in any file.
/private/var/folders/dg/507mln996q1d1jxy18khqwm80000gq/T/AppTranslocation/438A8A45-E60B-4C12-8169-C4BD0B3CA907/d/SuperCollider.app/Contents/Resources/SCClassLibrary/Twister.sc
ERROR: There is a discrepancy.
numClassDeps 1571   gNumClasses 3140
WARNING: Attempted to modify missing Text Mirror for Document {82583650-87b1-4884-a582-d7e90edeeb8a}

So okay fine, looks like I need a class definition for Singleton, which brings me to my question: what is that and how do I get it? My assumption is once I add Singleton the discrepancy error will go away but that is just a guess on my part, Any suggestions would be appreciated.

Casey