[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



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 

http://doc.sccode.org/Guides/UsingExtensions.html
http://doc.sccode.org/Guides/WritingClasses.html

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

https://modalityteam.github.io/

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