• 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: Combining notes to get chords
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Combining notes to get chords


  • Subject: Re: Combining notes to get chords
  • From: Tom Lieber <email@hidden>
  • Date: Wed, 1 Dec 2010 22:45:14 -0800

On Tue, Nov 30, 2010 at 8:36 PM, Pi <email@hidden> wrote:
>  I have nearly finished building my  iPhone app. it is called 'ChordWheel',
>  and has the 24 major and minor chords.
>  each chord plays   every occurrence of root, third and fifth  between say
> C2 and C6,  and fits everything under an amplitude envelope, so that playing
> G after C  doesn't  just sound like the whole thing has just been shunted
> up, which would be really ugly.
>  The problem is with performance.  I am using Hollance's  soundbank player,
>  which receives a bunch of piano notes,  may be a dozen spaced roughly
> evenly through the whole range,  then reconstructs the missing notes.   this
> player exposes a method that lets me play a given note.   so I am simply
> playing 12  notes together every time a chord is required. This quickly
> exceeds the maximum polyphony of the device,  or a least of the audio
> library I'm using.
>  it would make much more sense to simply create  the 24 chords outside of my
> application, and load them in as  raw wavs or something.
>  but how could I go about constructing chords?   I guess I could somehow cut
> and paste something together using Audacity.   but I baulk at the amount of
> work it would take,  and the fact that that method wouldn't readily extend
> to say guitar samples.  ie  I would have to do all of the work over again.
>  can anyone recommend a way to do this work?
>  I guess I could create a separate program that pulls in the raw note
> samples, and processes them and Outputs them.   but again it is a lot of
> work I think.
>  if anyone can link me to some code that I could adapt to do this, I would
> be very grateful!

Not really CoreAudio-related, but for tasks like this, ChucK is really
handy (see the SndBuf and WvOut classes):

  http://chuck.cs.princeton.edu/

Though you'd have much more flexibility if you could play the samples
in the application. You could try playing a piano SoundFont with
FluidSynth. That's a little hard to build for iOS, but it works well.
There's a script on the web somewhere named build_for_iphone.sh that
works on older versions of FluidSynth.

--
Tom Lieber
http://AllTom.com/
 _______________________________________________
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

  • Prev by Date: Re: [BUMP] gcd/asynchronous task and Core Audio
  • Next by Date: “djay for iPad” How do they do it?
  • Previous by thread: Re: Combining notes to get chords
  • Next by thread: Re: Code needed for reading, processing, writing sound files
  • Index(es):
    • Date
    • Thread