|
About Andrew Choi
MIDI Programs
MIDI File Player (External Device)
MIDI Destination Pop-Up Button
Other Programs Cocoa Sample Programs Syntax Coloring Using Flex Algorithms Jazz Chord Analysis as Optimization
|
A blog where I will write mostly about programming in Cocoa and CoreMIDI, and experiences from my ports of Emacs and XEmacs to the Mac OS.
Now that we have a dynamic programming algorithm for finding an optimal layout of bars on a page, how should we determine the width of each bar initially? In other words, given a bar containing a number of chords, what should be the spacing between them?
I havent posted code on this blog in a while. Ive been thinking about making a product out of the accompaniment generation program that Ive been developing. Thats why Ive not posted any of its code. Some time after the program is released, I will probably release part of its core. I think it would be great for other people to be able to experiment with my jazz theory classes and with accompaniment generation algorithms. Im also thinking about converting these to Python so they can be messed around with more easily. This will tie into mechanisms for writing extendible applications I was working on last year.
ChooseFontTest->Preferences..., and click Set... to bring up the font panel. The rest is like any other Mac application. This sample code also demonstrates the use of NSUserDefaults to remember the preferences between invocations. The preferences will be stored in the file ~/Library/Preferences/ChooseFontTest.plist in case youd like to delete it after playing with the program.
How should one determine the layout for displaying a chord sequence in a window? Both BiaB and MiBAC fix the width of the bars. Since bars naturally vary in widths due to differences in the number of chords contained in them and the widths of the chord names, why cant a chord editor be more like a word processor and display them in proportional spacing? Better yet, why cant it be more like a typesetting system, where spacing is optimized for entire paragraphs? Well, why not?
I need a design for the GUI of the accompaniment generation program. The center of the GUI will be a grid to enter chords. The easiest way to enter chords is probably to play them on a MIDI keyboard. But we need at least a way for the user to type in the chords from the Mac keyboard. Either way we need a grid to display the entered chords.
# and b. I also experimented with different fonts. Here is a sample.
NSFormatter subclass allows sharps and flats to be typed into a NSTextField using the # and b keys and displayed as their unicode counterparts. Its all very nice.
|
Lists
Less-Known Facts About Emacs
Chinese Restaurants in Calgary
Calgary/Banff Tourist Attractions
Top-10 Reason I Stopped Working on Emacs
Misc
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Copyright © 2003, 2004, 2005 Andrew Choi (Contact Information). | Created with FCBlog |