• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
RE: musictrack to aunode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: musictrack to aunode


  • Subject: RE: musictrack to aunode
  • From: Jan Trutzschler <email@hidden>
  • Date: Fri, 31 May 2002 21:05:46 +0200

Begin doorgestuurd bericht:

Van: Jan Trutzschler <email@hidden>
Datum: vr 31 mei 2002 20:28:18 Europe/Amsterdam
Aan: Bill Stewart <email@hidden>
Onderwerp: Antw.: musictrack to aunode

hi,

Bill Stewart heeft op vrijdag 31 mei 2002 om 08:14 het volgende geschreven:

Extended control events are only defined to work with the extended control
message of the MusicDevice - so, firstly, you should be using a
ParameterEvent

i thought already something like that. but in the api i could only find:
// adding time-stamped events to the track

extern OSStatus MusicTrackNewMIDINoteEvent(..);
extern OSStatus MusicTrackNewMIDIChannelEvent(...);
extern OSStatus MusicTrackNewMIDIRawDataEvent(... );
extern OSStatus MusicTrackNewExtendedNoteEvent(...);
extern OSStatus MusicTrackNewExtendedControlEvent(...);
extern OSStatus MusicTrackNewExtendedTempoEvent(..);
extern OSStatus MusicTrackNewMetaEvent(...);
extern OSStatus MusicTrackNewUserEvent(... );

but they only work on MusicDevices right?
how can i put a paramterEvent in a track and how does the event struct look like?

You also have to make sure that the au node that you're addressing can react
to these events - I presume your graph's '1' node is such an audio unit?

actually the node's audio unit does understand for example
setParameter(0,0,AUConstants.kAudioUnitScope_Global,0,1000.0f,0).
also the AUGraph does not have any MusicDevice in it.

thanks
jan

Bill

on 30/5/02 3:37 PM, Jan Trutzschler wrote:

hello,
i'm trying to control some parameters of an audioUnit with a MusicPlayer.
both in c and java (src below) i couldnt get it working.
if i start the MusicPlayer, the AUGraph associated with the sequence
opens and runs, but it doesnt change any node's parameters.

has anyone successfully controlled parameters of an AudioUnit which is
not a dsl_musicdevice? (for example the filters?)

private synchronized void setupPlayer () {
try {
player = new MusicPlayer();
sequence = new MusicSequence();
myTrack = sequence.newTrack();
ExtendedControlEvent eventI = new ExtendedControlEvent(0,0,1000.0f);
myTrack.newExtendedControlEvent(1.0, eventI);
sequence.setAUGraph(myAUGraph);
myTrack.setDestNode(myAUGraph.getIndNode(1)); //setting a direct
reference to the node doesnt work either..
player.setSequence(sequence);
} catch (Exception e) {
e.printStackTrace();
}


jan
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.


mailto:email@hidden
tel: +1 408 974 4056
__________________________________________________________________________
"Thousands of years ago, cats were worshipped as gods. We have never
forgotten this."
__________________________________________________________________________
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: musictrack to aunode
  • Next by Date: Quartz Extreme and PCI audio card performance
  • Previous by thread: Re: musictrack to aunode
  • Next by thread: Stopping Audio from a converter data proc
  • Index(es):
    • Date
    • Thread