Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is ofxAudioUnitRecorder functional? #17

Closed
jasonlevine opened this issue Jun 3, 2014 · 5 comments
Closed

Is ofxAudioUnitRecorder functional? #17

jasonlevine opened this issue Jun 3, 2014 · 5 comments

Comments

@jasonlevine
Copy link
Contributor

Hey Adam,

Just set up some code to record some timelined aumus but nothing is being recorded and I'm not getting any error messages in the console. Please let me know if I'm hooking my AUs up incorrectly or if ofxAudioUnitRecorder is just not functional yet.

Here's my signal chain:

    kit1 = ofxAudioUnitSampler('aumu','CaC2','CamA');
    kit1.loadCustomPreset("kit1");

    kit2 = ofxAudioUnitSampler('aumu','CaC2','CamA');
    kit2.loadCustomPreset("kit2");

    bass = ofxAudioUnitSampler('aumu','CaC2','CamA');
    bass.loadCustomPreset("bass");

    drone1 = ofxAudioUnitSampler('aumu','CaC2','CamA');
    drone1.loadCustomPreset("aqueous_ripples");

    drone2 = ofxAudioUnitSampler('aumu','CaC2','CamA');
    drone2.loadCustomPreset("aquatic_undertow");

    mixer.setInputBusCount(5);

    kit1.connectTo(mixer, 0);
    kit2.connectTo(mixer, 1);
    bass.connectTo(mixer, 2);
    drone1.connectTo(mixer, 3);
    drone2.connectTo(mixer, 4);

    mixer.connectTo(recorder);
    recorder.connectTo(output);

    output.start();

and here's where I try to record:

    if (key == 's') {
        recorder.startRecording("j2xsoundtrack");
    }

    if (key == 'x') {
        recorder.stopRecording();
    }

Thanks man,

@admsyn
Copy link
Owner

admsyn commented Jun 3, 2014

Yepp, that should work, but you'll need to specify a .m4a, and also give it an absolute path.

So recorder.startRecording(ofToDataPath("j2xsoundtrack.m4a"));

Let me know if that does / doesn't work, though.

@jasonlevine
Copy link
Contributor Author

Aha! solved. Yet when you save an aupreset you don't set an absolute path or add the file extension. I think one way or the other should be consistent across the addon to simplify usage, unless there is a specific reason otherwise. What do you think?

@admsyn
Copy link
Owner

admsyn commented Jun 3, 2014

Yeah for sure, it'd be a breaking change though. The "absolute path" thing is showing ofxAudioUnit's roots as some non-OF code I had written for myself.

FWIW there's two methods for the presets, one explicitly asking for an absolute path + file extension. Still inconsistent, though :)

@admsyn admsyn closed this as completed Jun 3, 2014
@jasonlevine
Copy link
Contributor Author

gotcha. Anyway, just made an awesome video soundtrack with ofxAudioUnit
and ofxTimeline! So much cooler than using ableton or cubase or whatever....

On Tue, Jun 3, 2014 at 4:08 PM, Adam Carlucci notifications@github.com
wrote:

Yeah for sure, it'd be a breaking change though. The "absolute path" thing
is showing ofxAudioUnit's roots as some non-OF code I had written for
myself.

FWIW there's two methods for the presets, one explicitly asking for an
absolute path + file extension. Still inconsistent, though :)


Reply to this email directly or view it on GitHub
#17 (comment).

Jason Levine
new media performer + creative coder
http://jasonlevine.ca

@admsyn
Copy link
Owner

admsyn commented Jun 3, 2014

Nice! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants