Jitter gen examples.
By Kagami Shota
Experiments in particle generation
download patches: http://www.itaru.org/ilog/2012/11/12/inky-particle/
Party Lights (From Jitter Recipes book 4) https://cycling74.com/2012/03/20/jitter-recipes-book-four/5/
Wesley Smith and Mushoo
Have written a gen~ version of the simple slope differentiator for demodulating baseband FM. It works great.
local file is in max teaching examples:
Here is the [gen~] patch:
uses output from modem.maxpat
- In Max, write a gen~ patch and export as c++ to xcode
- Compile AU effect in xcode (code-signing with Audiobus API key) and launch on iPad
- Any app which recognizes Audiobus protocol can find and use your effect.
There are instructions at http://cycling74.com/wiki/index.php?title=Gen_Code_Export_iOS – which are expanded upon here.
Preliminaries to Preliminaries…
- Download the gen~ tremelo effect patch which runs ‘as is’ – and is set up to work as an AU effect with controls – from here: http://designingsound.org/2013/04/a-tremolo-au-plugin-with-max – the download button is near the end of the blog post.
- Download the c74 sample project Media:iOSGenFilter.zip and copy it somewhere. This will be your project folder. It contains an xcode project file and source code for the audiobus AU wrapper thing.
[annotations to c74 wiki notes follow:]
- Download the AudioBus SDK  – You will need to register as a developer. (alternatively, you can clone the github archive)
- Download The Amazing Audio Engine SDK  (alternatively, you can clone the github archive)
- Download the AudioBus iOS app in order to test  – It costs $4.99. Install it on your iPad or iPhone/iPod
Obtain a temporary Audiobus API key – You can’t do this until after you finish step 9 below.
Building an Audiobus iOS project
- Duplicate the provided Xcode project – (not necessary unless you want to change the project name – you already copied it into your project folder). If you want to duplicate it – check out this stackOverflow post: http://stackoverflow.com/questions/6428247/duplicating-an-xcode-4-project
- Copy The Amazing Audio Engine SDK to the project folder. – Here are specifics:
- Launch TheAmazingAudioEngine.xcodeproj
- In xcode, build it
- In ‘products’ group in xcode navigator, <ctrl>-click on the libTheAmazingAudioEngine.a file and open in finder.
- Copy this file into iosGenFilter folder inside your project folder
- You can close the AmazingAudioEngine project in Xcode now.
- Now, in finder, copy the AmazingAudioEngine folder (the one that contains .h and .m files) into the iosGenFilter folder
- From Audiobus SDK, copy the Audiobus folder and libAudiobus.a file to the iosGenFilter folder
- Open the tremelo Max patch which you downloaded.
- In Max, Send gen~ the exportcode message in order to export the genpatcher as C++ code – actually do this…
- Using inspector on the gen~ object Choose the GenFilter folder (inside iosGenFilter folder) to save the exported code to.
- Lock patch and click on the exportcode message box to export the code.
- Launch GenFilter.xcodeproj in the iosGenFilter folder.
- In xcode, Change the namespace used in GenFilter.mm to match that of the exported code
- This means, find the statement near top of file starting with “using namespace” and make it look like this: using namespace gen_exported;
- (if you get a bunch of errors – then you need to find out what your exported code is called. It will be the most recent .cpp file in the GenFilter folder.)
Copy your Audiobus API key to the appropriate location in AppDelegate.mm – can’t do this just yet – so skip.
- Connect your iPad to the computer. Build the project for iPad
- In ‘products’ group in xcode navigator, <ctrl>-click on the libThe GenFilter.app file and select ‘open in finder’.
- <ctrl>-click GenFilter.app in finder and select ‘open package contents’. – leave this finder window open
- in a broswer go to http://developer.audiob.us/temporary-registration – you’ll probably need to login with your user/password set up earlier.
- drag the info.plist file from the finder window (step A) into the dropbox in the browser. You should get a screen with your temporary API key. I had to do this twice to get it to work.
- Now copy the API key into the AppDelegate.mm file replacing the one in the following statement – it was around line 50. – re-build project to make sure you have no errors
// Create an Audiobus instance
self.audiobusController = [[[ABAudiobusController alloc] initWithAppLaunchURL:[NSURL URLWithString:@"genfilter.audiobus://"] apiKey:@"MTM4MDY1ODQzNSoqKkdlbkZpbHRlcioqKmdlbmZpbHRlci5hdWRpb2J1czovLw==:caS8WT1r4OmYz6t89pDq37qNi29hwFba+7+7bP8WubzyKN7Xj+tnU31/Wcaw580zQg8Jz+vC6Ha0H+qDM9JhdBxfQZ7w/R0VHrvsbZYQEJkj1bNpg2h2DfsF1mvFr6jb"] autorelease];
Now do the following steps (with iPad still connected to your computer)
- Launch audiobus on your iPad
- click the run button in xcode to launch GenFilter on your iPad
- In audiobus, select mic input, headphone output, and GenFilter for effect.
Using the “tremolo project” from Designing Sound (In Mac OS 9).
Use instructions in c74 wiki – not the ones from Designing Sound:
But you’ll need the gen~ code and patch from this blog: