Total godsend. Had to reverse the list but now it works perfectly.

Not only it solved the problem of longer notes but also that of rests.

If you don't terribly mind, during the development of this particular 
program , I would love to ask for help.

If that is ok with you, please reply to
sreekant UNDER_SCORE At Yahoo DhoTT Com

Thanks
sree

> Here's a snippit which does work:
> 
> def intToVarNumber(x):
>       """ Convert INT to a variable length MIDI value. """
> 
>       lst = chr(x & 0x7f)
>       while  1:
>               x = x >> 7
>               if x:
>                       lst = chr((x & 0x7f) | 0x80) + lst
>               else:
>                       return lst
> 
> See my program MMA for lots of ugly tricks.
> http://users.xplornet.com/~bvdp/mma
> 
> Best,
> 
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to