On Mar 28, 2006, at 3:47 AM, Philip Regan wrote:

Sorry, I was using the same term to mean two different things...

MIDI allows for 128 pitches (think the 88 keys on the keyboard, but
wider in range). So, the array would be ObjectArray(88, n) where n is
the number of notes in the entire song.

I figure that way I would just change the values in the array to match
the interface. I'm thinking this might be better as this would allow
multiple notes at the same time (chords), and I think it would be easy
to build the song to play or save as there would be an inherent order
to everything regardless of where the user drags notes to. I'm just
concerned about memory/processor usage to maintain something that
could be rather large.

If your concerned about memory then ObjectArray(88,n) would be wasteful as you would have a "slot" for every possible note regardless of whether you used it or not.

It seems that what you want is an ordered list of "tones" that make up a song.
But a "tone" could be made up of one or more notes.

And, that if you happen to change the mapping for one note it should change everywhere ?

If so why not define a class called "tone" or whatever makes sense in Music terms and make it hold an array of indexes to the MIDI notes.

Then make an array of "tones"

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to