Cantabile Development Blog

Follow the development of music software Cantabile

Articles | Full Index | RSS Feed


Starting the File Player

For the last week or so I've been working on porting the microscore midi display to the new skin UI framework. Mostly this is just a straight port and I'm not improving it in anyway since it's going to be completely replaced at a later date anyway. I've now got it to the point where I can load a MIDI file, have it's microscore displayed, scroll and zoom around, select ranges etc...

In the process I've also renamed the sequencer to file player - partially in preparation for the possibility of including an audio file player but also to distinguish it from the full editing sequencer that will be in a later version.

I've also re-written the way accelerator keys are handled in SkinLib. Previously I had a somewhat complex system where each command has an associated keystroke and the availability of the particular keystroke was determined by a context string.

This has now been replaced with a system where any control in the skin heirarchy can have a simple list of keystroke to command bindings. So now, depending on which control has focus I can determine which keystrokes are available and automatically display it in tooltips and on menu items.

Posted on April 2, 2008

Share This

Leave A Comment

All comments will be reviewed for spam before being displayed.