• 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: Play sound on MIDI event, AUSampler?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Play sound on MIDI event, AUSampler?


  • Subject: Re: Play sound on MIDI event, AUSampler?
  • From: Mark Stultz <email@hidden>
  • Date: Fri, 05 Dec 2014 16:18:15 -0500

You could use AUSampler to store your tick and tock audio samples. You could then use the MusicPlayer API to playback a MusicSequence that could store a looping MIDI sequence which sends commands to play the tick and tock samples at whatever intervals you specify.

I don't remember which year, but I recall that there was a helpful WWDC video that discusses AUSampler. I believe it also shows how you would set up those samples in AULab. Basically you create a .aupreset in AULab.app that contains the tick/tock sample mapping, that you then load into your AUSampler (There is a tech note on how to do this).

Mark

On Fri, Dec 5, 2014 at 4:05 PM, Benjamin Rindt <email@hidden> wrote:
Hey guys,

basically I need to create a metronome and I want to play a tick or a tock. Is AUSampler the right way to go about it?

It looks like it is some serious work to get 2 sound files into somehow a bank and load it into AUSampler but I still don’t know how its done. Is there an easier way to do this? Looks like AUSampler is little bit too much for such a small thing.

Is there another way to trigger a sound with a MIDI event? Any ideas would be appreciated or how to make a AUSampler bank I can use. I haven’t found anything how to do it. In the documentation is mentioned that it would be possible in AULab but I don’t know how.


Thanks in advance guys!

- Benjamin
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Play sound on MIDI event, AUSampler?
      • From: matt ingalls <email@hidden>
References: 
 >Play sound on MIDI event, AUSampler? (From: Benjamin Rindt <email@hidden>)

  • Prev by Date: Play sound on MIDI event, AUSampler?
  • Next by Date: Re: Play sound on MIDI event, AUSampler?
  • Previous by thread: Play sound on MIDI event, AUSampler?
  • Next by thread: Re: Play sound on MIDI event, AUSampler?
  • Index(es):
    • Date
    • Thread