Hi, am am fully able to update the project to compile and run in MacOS 10.14, and test it with Logic X pro, especially after following the steps here.
However, when I try to load the bare UI, I get an EXC_BAD_ACCESS on loading the .nib in TemplateSynthViewFactory.m, when it tries to use
[NSBundle loadNibNamed: @"CocoaView" owner:self]
Here is the stack trace as it currently stands...any ideas? The other samples load the UI with no problems. Thanks!
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x3eadddf28de0)
frame #0: 0x00007fff7dda4d5c libobjc.A.dylib`objc_release + 28
frame #1: 0x00007fff7dda5c8c libobjc.A.dylib`(anonymous namespace)::AutoreleasePoolPage::pop(void*) + 726
frame #2: 0x00007fff51db8e76 CoreFoundation`_CFAutoreleasePoolPop + 22
frame #3: 0x00007fff4f331c4f AppKit`loadNib + 511
frame #4: 0x00007fff4f3310a9 AppKit`+[NSBundle(NSNibLoading) _loadNibFile:nameTable:options:withZone:ownerBundle:] + 696
frame #5: 0x00007fff4f330cee AppKit`-[NSBundle(NSNibLoading) loadNibNamed:owner:topLevelObjects:] + 204
frame #6: 0x00007fff4f330aaf AppKit`+[NSBundle(NSNibLoading) loadNibNamed:owner:] + 447
* frame #7: 0x000000010f335a46 CocoaSynthView`-[TemplateSynthViewFactory uiViewForAudioUnit:withSize:](self=0x0000600000094ee0, _cmd="uiViewForAudioUnit:withSize:", inAU=0x00000000819f518e, inPreferredSize=(width = 1440, height = 733.5)) at TemplateSynthViewFactory.m:41
frame #8: 0x0000000102d5a2ce MAAudioUnitSupport`___lldb_unnamed_symbol196$$MAAudioUnitSupport + 222
frame #9: 0x0000000104d14a8d MAAudioEngine`CMDAudioUnit::MakeEditorView(long, TGroupID) + 301
frame #10: 0x00000001014a5bb9 Logic Pro X`___lldb_unnamed_symbol48953$$Logic Pro X + 297
frame #11: 0x00000001010ddc98 Logic Pro X`___lldb_unnamed_symbol37882$$Logic Pro X + 1384
frame #12: 0x00000001010dd65b Logic Pro X`___lldb_unnamed_symbol37880$$Logic Pro X + 75
frame #13: 0x00000001010e16e4 Logic Pro X`___lldb_unnamed_symbol37965$$Logic Pro X + 436
frame #14: 0x0000000100c86705 Logic Pro X`___lldb_unnamed_symbol30009$$Logic Pro X + 85
frame #15: 0x00000001003db813 Logic Pro X`___lldb_unnamed_symbol11122$$Logic Pro X + 2675
frame #16: 0x00000001014b5a93 Logic Pro X`___lldb_unnamed_symbol49091$$Logic Pro X + 67
frame #17: 0x0000000105e3d394 MAToolKit`___lldb_unnamed_symbol3019$$MAToolKit + 308
frame #18: 0x00007fff4f635d03 AppKit`-[NSApplication(NSResponder) sendAction:to:from:] + 312
frame #19: 0x0000000105e9755c MAToolKit`___lldb_unnamed_symbol4500$$MAToolKit + 76
frame #20: 0x0000000100a19b89 Logic Pro X`___lldb_unnamed_symbol22650$$Logic Pro X + 121
frame #21: 0x00007fff4f6a0ef2 AppKit`-[NSControl sendAction:to:] + 86
frame #22: 0x000000010600652f MAToolKit`___lldb_unnamed_symbol11789$$MAToolKit + 2159
frame #23: 0x0000000105e471d4 MAToolKit`___lldb_unnamed_symbol3260$$MAToolKit + 148
frame #24: 0x0000000105e28a80 MAToolKit`___lldb_unnamed_symbol2832$$MAToolKit + 944
frame #25: 0x0000000105e4e20d MAToolKit`___lldb_unnamed_symbol3412$$MAToolKit + 397
frame #26: 0x00007fff4f572de4 AppKit`forwardMethod + 211
frame #27: 0x0000000106017d6d MAToolKit`___lldb_unnamed_symbol12195$$MAToolKit + 93
frame #28: 0x00007fff4f577797 AppKit`-[NSWindow(NSEventRouting) _handleMouseDownEvent:isDelayedEvent:] + 5668
frame #29: 0x00007fff4f4ab7cf AppKit`-[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 2319
frame #30: 0x00007fff4f4aac75 AppKit`-[NSWindow(NSEventRouting) sendEvent:] + 481
frame #31: 0x00000001003ef602 Logic Pro X`___lldb_unnamed_symbol11256$$Logic Pro X + 578
frame #32: 0x00007fff4f347f4c AppKit`-[NSApplication(NSEvent) sendEvent:] + 336
frame #33: 0x000000010167f994 Logic Pro X`___lldb_unnamed_symbol55739$$Logic Pro X + 116
frame #34: 0x000000010167f4b4 Logic Pro X`___lldb_unnamed_symbol55738$$Logic Pro X + 932
frame #35: 0x0000000101679f24 Logic Pro X`___lldb_unnamed_symbol55668$$Logic Pro X + 1332
frame #36: 0x000000010167f9ce Logic Pro X`___lldb_unnamed_symbol55739$$Logic Pro X + 174
frame #37: 0x000000010167f4b4 Logic Pro X`___lldb_unnamed_symbol55738$$Logic Pro X + 932
frame #38: 0x00007fff4f335795 AppKit`-[NSApplication run] + 755
frame #39: 0x00007fff4f324e97 AppKit`NSApplicationMain + 780
frame #40: 0x0000000100a1a50d Logic Pro X`___lldb_unnamed_symbol22662$$Logic Pro X + 381
frame #41: 0x00007fff7ee7f085 libdyld.dylib`start + 1
The Template Synths are not designed to compile directly as stand-alone synth plugins. They are templates you modify to produce new projects. You have to follow the instructions in Appendix A of my Synth Plugin book to copy and modify the projects. In the unfortunate case that you don't own the book, you can download the appendix here.
A central issue is how the AU plugin actually contains two compiled targets - the AU core in C++ and the GUI in Cocoa - of course that is all documented in the Synth book as well.
With the release of my new ASPiK framework, you will be able to spin off template (blank, starting point) projects for AU, AAX and VST3 in FX or synth flavors and it will handle all of the doctoring, renaming, and other chores you must do if you use template code to generate new plugin projects. And that is done with a simple App that runs on MacOS or Windows (i.e. not part of RackAFX7, but RAFX7 will generate ASPiK projects as well).
Due to some copyright issues, I can't release ASPiK in its complete form until my new book (Designing Audio Effect Plugins in C++ 2nd Ed) is released. This should happen by the end of this year (and yes, ASPiK is free and license-free to use as you like).
Got it. Thanks for the response! I actually do own the book, and was just trying to get the first Nanosynth MIDI chapter going on my Mac. Can't wait for the second edition! Wish I would have known it was on its way before springing for the first.
I did follow thew instructions in the appendix, and it works for the functional part of the synth, but I can't get the empty "brushed metal" UI to appear when I click on the UI button in Logic Pro X...here is where I get the crash. The Nanosynth example itself works fine, however, so I've been using that one instead. In any case, all a learning process.
Most Users Ever Online: 152
Currently Browsing this Page:
Guest Posters: 1
Newest Members:TheJonDoe, DoubleLiines.com, jmf11, dan, Luke Bilodeau, Carlos_1, ant, marclingk, TheCammen, Hubbert
Moderators: W Pirkle: 445
Administrators: Tom: 74, JD Young: 80, Will Pirkle: 0, W Pirkle: 445