> > I'd like to play multi-channel midi commands via speaker
> 
> we did this in the very early versions of lemmings :) there is
> a lookup-table you can use to convert midi notes -> freq values.
> 
> ---
> static int freqNote[] = 
> {
>      0,     8,     9,     9,    10,    10,    11,    12,
>     12,    13,    14,    15,    16,    17,    18,    19,
>     20,    21,    23,    24,    25,    27,    29,    30,
>     32,    34,    36,    38,    41,    43,    46,    48,
>     51,    55,    58,    61,    65,    69,    73,    77,
>     82,    87,    92,    97,   103,   110,   116,   123,
>    130,   138,   146,   155,   164,   174,   184,   195,
>    207,   220,   233,   246,   261,   277,   293,   311,
>    329,   349,   369,   391,   415,   440,   466,   493,
>    523,   554,   587,   622,   659,   698,   739,   783,
>    830,   880,   932,   987,  1046,  1108,  1174,  1244,
>   1318,  1396,  1479,  1567,  1661,  1760,  1864,  1975,
>   2093,  2217,  2349,  2489,  2637,  2793,  2959,  3135,
>   3322,  3520,  3729,  3951,  4186,  4434,  4698,  4978,
>   5274,  5587,  5919,  6271,  6644,  7040,  7458,  7902,
>   8372,  8869,  9297,  9956, 10548, 11175, 11839, 12543
> };
> ---
> 
> i wrote a little utility for lemmings that took a very simple
> .midi text output and converted into a sequence which the
> lemmings engine could play - it worked out pretty good. one
> of the first games to have background music like this without
> using real midi files :)
> 

Ok, i can use freqNote to play noteOn command ?
Is there a way to play notes on more than 1 channel on OS5 (TT TC...) ?

thanks a lot for your help
Chris


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to