/[gsharp]/gsharp/sdl.lisp
ViewVC logotype

Log of /gsharp/sdl.lisp

Parent Directory Parent Directory | Revision Log Revision Log


Links to HEAD: (view) (annotate)
Sticky Tag:

Revision 1.44 - (view) (annotate) - [select for diffs]
Mon Nov 17 10:45:22 2008 UTC (5 years, 4 months ago) by rstrandh
Branch: MAIN
CVS Tags: HEAD
Changes since 1.43: +80 -1 lines
Diff to previous 1.43
Time signature digit 8.

Revision 1.43 - (view) (annotate) - [select for diffs]
Mon Nov 17 07:44:00 2008 UTC (5 years, 4 months ago) by rstrandh
Branch: MAIN
Changes since 1.42: +85 -1 lines
Diff to previous 1.42
Time signature digit 7.

Revision 1.42 - (view) (annotate) - [select for diffs]
Mon Nov 17 06:40:26 2008 UTC (5 years, 4 months ago) by rstrandh
Branch: MAIN
Changes since 1.41: +82 -0 lines
Diff to previous 1.41
Time signature digit 6.

Revision 1.41 - (view) (annotate) - [select for diffs]
Mon Nov 17 05:49:28 2008 UTC (5 years, 4 months ago) by rstrandh
Branch: MAIN
Changes since 1.40: +91 -2 lines
Diff to previous 1.40
Time signature digit 5.

Revision 1.40 - (view) (annotate) - [select for diffs]
Sun Nov 16 06:36:03 2008 UTC (5 years, 5 months ago) by rstrandh
Branch: MAIN
Changes since 1.39: +79 -0 lines
Diff to previous 1.39
Time signature digit 4.

Revision 1.39 - (view) (annotate) - [select for diffs]
Sat Nov 15 18:22:23 2008 UTC (5 years, 5 months ago) by rstrandh
Branch: MAIN
Changes since 1.38: +74 -1 lines
Diff to previous 1.38
Time signature digit 3.

Revision 1.38 - (view) (annotate) - [select for diffs]
Sat Nov 15 17:20:07 2008 UTC (5 years, 5 months ago) by rstrandh
Branch: MAIN
Changes since 1.37: +148 -0 lines
Diff to previous 1.37
Time signature digits 1 and 2.

Revision 1.37 - (view) (annotate) - [select for diffs]
Tue Sep 18 21:19:03 2007 UTC (6 years, 6 months ago) by crhodes
Branch: MAIN
Changes since 1.36: +6 -0 lines
Diff to previous 1.36
Support long ("lunga") notes and rests.

It's a bit weird, because the lunga has the same notehead as a breve,
but also has a stem; so having a NOTEHEAD of :long is a bit of a
misnomer.  Hey ho.

Revision 1.36 - (view) (annotate) - [select for diffs]
Fri Sep 14 15:48:05 2007 UTC (6 years, 7 months ago) by crhodes
Branch: MAIN
Changes since 1.35: +23 -0 lines
Diff to previous 1.35
Support for breves and breve rests.

Revision 1.35 - (view) (annotate) - [select for diffs]
Mon Aug 20 07:14:35 2007 UTC (6 years, 7 months ago) by rstrandh
Branch: MAIN
Changes since 1.34: +1 -1 lines
Diff to previous 1.34
Fixed beam-drawing problem for staff-line distances other than 6.

Revision 1.34 - (view) (annotate) - [select for diffs]
Mon Aug 6 19:57:37 2007 UTC (6 years, 8 months ago) by crhodes
Branch: MAIN
Changes since 1.33: +1 -1 lines
Diff to previous 1.33
Move the dot a little bit rightwards.  Looks better, to my eye...

Revision 1.33 - (view) (annotate) - [select for diffs]
Wed Jul 18 07:51:54 2007 UTC (6 years, 9 months ago) by rstrandh
Branch: MAIN
Changes since 1.32: +1 -1 lines
Diff to previous 1.32
Gave the stealth mixin code the right name.

Removed unused variable to remove a compiler warning.

Revision 1.32 - (view) (annotate) - [select for diffs]
Thu Jun 21 11:14:27 2007 UTC (6 years, 9 months ago) by crhodes
Branch: MAIN
Changes since 1.31: +160 -1 lines
Diff to previous 1.31
Support for semi/sesqui sharp/flat.

* don't declare the type of the accidentals slot any more; we can put
  that back in a little, after we work out a declarative way of defining
  all properties of accidentals.

* microsharpen and microflatten commands and functions; define sharpen
  and flatten in terms of those (and knowing which accidentals are the
  tonal ones).  Keybindings for the commands.

* a more declarative table-based system for kerning accidentals, along
  with the ability to specify a per-glyph default (and a default
  default).  Choose a sensible default default; also alter the
  :sharp/:sharp table when +4 steps away, as the previous value was
  colliding a little too much.

* support for playing the semi accidentals in equal temperament.  No
  support in linear temperament, as I don't know what they mean.

* glyphs defined with a little too much liberal cut'n'paste.  Some
  FIXMEs note the essential differences between the related glyphs.

Revision 1.31 - (view) (annotate) - [select for diffs]
Wed Jun 7 22:40:26 2006 UTC (7 years, 10 months ago) by rstrandh
Branch: MAIN
CVS Tags: works-with-0_9_3, works-with-0_9_4
Changes since 1.30: +4 -4 lines
Diff to previous 1.30
Fixed the +-1 problems with beam drawing.

Revision 1.30 - (view) (annotate) - [select for diffs]
Wed Jun 7 20:07:12 2006 UTC (7 years, 10 months ago) by rstrandh
Branch: MAIN
Changes since 1.29: +8 -8 lines
Diff to previous 1.29
Fixed the height of the noteheads

Revision 1.29 - (view) (annotate) - [select for diffs]
Wed Jun 7 04:55:07 2006 UTC (7 years, 10 months ago) by rstrandh
Branch: MAIN
Changes since 1.28: +31 -16 lines
Diff to previous 1.28
Implemented a new beam drawing system.

There are still some magic + and - 1s in there that I don't have
time to look into right now.

However, it should now be possible to draw a beam as a polygon
from the output record (the output record was wrong before).

Revision 1.28 - (view) (annotate) - [select for diffs]
Tue Jun 6 20:52:32 2006 UTC (7 years, 10 months ago) by rstrandh
Branch: MAIN
Changes since 1.27: +21 -1 lines
Diff to previous 1.27
Introduced a cache for beam segment designs.  This code is not yet
used, but it will be I hope.

Revision 1.27 - (view) (annotate) - [select for diffs]
Mon Jun 5 18:43:56 2006 UTC (7 years, 10 months ago) by rstrandh
Branch: MAIN
Changes since 1.26: +16 -14 lines
Diff to previous 1.26
Fixed the problem with the C clef.

Revision 1.26 - (view) (annotate) - [select for diffs]
Mon Jun 5 00:53:41 2006 UTC (7 years, 10 months ago) by rstrandh
Branch: MAIN
Changes since 1.25: +4 -75 lines
Diff to previous 1.25
Removed references to old font system, including the file gf.lisp.

Revision 1.25 - (view) (annotate) - [select for diffs]
Sat Jun 3 22:03:08 2006 UTC (7 years, 10 months ago) by rstrandh
Branch: MAIN
Changes since 1.24: +0 -2 lines
Diff to previous 1.24
Fixed the flags.

Revision 1.24 - (view) (annotate) - [select for diffs]
Sat Jun 3 05:40:07 2006 UTC (7 years, 10 months ago) by rstrandh
Branch: MAIN
Changes since 1.23: +4 -4 lines
Diff to previous 1.23
Improved F-clef.  This gave me the opportunity to use the Metafont `curl'
operator for the first time.

Revision 1.23 - (view) (annotate) - [select for diffs]
Sat Jun 3 04:59:56 2006 UTC (7 years, 10 months ago) by rstrandh
Branch: MAIN
Changes since 1.22: +5 -3 lines
Diff to previous 1.22
Increase the size of the dot slightly.

Revision 1.22 - (view) (annotate) - [select for diffs]
Sat Jun 3 04:45:42 2006 UTC (7 years, 10 months ago) by rstrandh
Branch: MAIN
Changes since 1.21: +8 -6 lines
Diff to previous 1.21
Fixed the reference point of the whole and half rests.

Revision 1.21 - (view) (annotate) - [select for diffs]
Fri Jun 2 13:17:35 2006 UTC (7 years, 10 months ago) by crhodes
Branch: MAIN
Changes since 1.20: +74 -0 lines
Diff to previous 1.20
Implement the large (outsize) tie left and right curves.

Revision 1.20 - (view) (annotate) - [select for diffs]
Fri Jun 2 12:37:47 2006 UTC (7 years, 10 months ago) by crhodes
Branch: MAIN
Changes since 1.19: +21 -21 lines
Diff to previous 1.19
Fix large-tie glyphs and whole-rest glyph.

(Note that there is clearly an offset problem: the half- and whole-
rests do not lie on / hang cleanly from staff lines, with or without
this change)

Revision 1.19 - (view) (annotate) - [select for diffs]
Thu Jun 1 18:57:40 2006 UTC (7 years, 10 months ago) by rstrandh
Branch: MAIN
Changes since 1.18: +8 -7 lines
Diff to previous 1.18
Fixed a bug in bezier.lisp that made the resulting pixmap positioned
in the wrong place sometimes.

Fixed a bug in sdl.lisp that computed the wrong xoffset (in particular
for noteheads).

Fixed the whole notehead so that its vertical position is not offset
as it should.

Fixed the C clef so that it no longer goes below the bottom line.

Improved the font viewer by having the bounding box of the glyph drawn
in :pixel mode.

Revision 1.18 - (view) (annotate) - [select for diffs]
Thu Jun 1 11:01:26 2006 UTC (7 years, 10 months ago) by crhodes
Branch: MAIN
Changes since 1.17: +1 -1 lines
Diff to previous 1.17
Fix a bug in the C clef.  It's still not symmetrical about the X axis,
but the weird zooming point in the curve is fixed.

Revision 1.17 - (view) (annotate) - [select for diffs]
Wed May 31 19:51:58 2006 UTC (7 years, 10 months ago) by rstrandh
Branch: MAIN
Changes since 1.16: +9 -4 lines
Diff to previous 1.16
Fixed a bug that calculated the yoffset of the font wrong.

Changed the g-clef back to sane values for the ye and yz coordinates,
because I now suspect something else is responsible for the funny looks
at low resolution.

Revision 1.16 - (view) (annotate) - [select for diffs]
Tue May 30 02:13:26 2006 UTC (7 years, 10 months ago) by rstrandh
Branch: MAIN
Changes since 1.15: +37 -33 lines
Diff to previous 1.15
Output recording of Bezier designs seems to be working now.

Clefs are now drawn using the new system.  There is still considerable
ugliness in the code, but I intend to work on that incrementally.

Modified the G clef to look a bit better (which is easier to do with
the new system than with the Metafont program).

Revision 1.15 - (view) (annotate) - [select for diffs]
Mon May 29 19:55:24 2006 UTC (7 years, 10 months ago) by rstrandh
Branch: MAIN
Changes since 1.14: +1172 -29 lines
Diff to previous 1.14
The new font-rendering code is now in there, but is not yet being used.
The reason for that is that I still have not managed to get output
recording for designs right.

Once that problem is fixed, I am planning to gradually move to the new
system, debugging the glyphs one at a time.  The code for the glyphs
has been tested in a separate context, but there might be unforeseen
problems.

The new system allows designs to be drawn in any color and
transformation by being rendered to anti-aliased pixmaps, so there is
no need to use special gray pixmaps.  It might be worthwhile thinking
about moving beam drawing to this new system one day.

This font rendering system should be easy for PostScript output, but
I haven't attacked that problem yet.

Revision 1.14 - (view) (annotate) - [select for diffs]
Wed Jan 4 19:08:12 2006 UTC (8 years, 3 months ago) by rstrandh
Branch: MAIN
Changes since 1.13: +2 -1 lines
Diff to previous 1.13
Fixed the beam-drawing problem reported by Christophe Rhodes.  There
might still be some glitches, but the foundation is now more sound, so
that future glitches should be easier to fix.

Revision 1.13 - (view) (annotate) - [select for diffs]
Wed Jan 4 17:35:51 2006 UTC (8 years, 3 months ago) by rstrandh
Branch: MAIN
Changes since 1.12: +27 -2 lines
Diff to previous 1.12
Added new generic functions to the SDL package to deal with beam offsets
for a particular font.

The plan is to modify the beam-drawing functions so that they use these
new generic functions, and so that they draw beams relative to the
vertical reference point, just like other drawing functions.

Revision 1.12 - (view) (annotate) - [select for diffs]
Tue Nov 15 18:49:52 2005 UTC (8 years, 5 months ago) by rstrandh
Branch: MAIN
Changes since 1.11: +6 -0 lines
Diff to previous 1.11
Added more comments in an attempt to improve maintainability.  Plus, it
helps me understand what I meant when I initially wrote the code.

Revision 1.11 - (view) (annotate) - [select for diffs]
Mon Nov 14 22:52:13 2005 UTC (8 years, 5 months ago) by rstrandh
Branch: MAIN
Changes since 1.10: +1 -1 lines
Diff to previous 1.10
re-inserted a `1+' to compensate for the fact that GF's max-n is off
by 1.

Revision 1.10 - (view) (annotate) - [select for diffs]
Mon Nov 14 21:51:26 2005 UTC (8 years, 5 months ago) by rstrandh
Branch: MAIN
Changes since 1.9: +1 -1 lines
Diff to previous 1.9
Fixed off-by-one-pixel but in pixmap drawing.

Revision 1.9 - (view) (annotate) - [select for diffs]
Fri Nov 11 19:19:39 2005 UTC (8 years, 5 months ago) by rstrandh
Branch: MAIN
Changes since 1.8: +3 -1 lines
Diff to previous 1.8
added comments

Revision 1.8 - (view) (annotate) - [select for diffs]
Thu Nov 10 18:32:19 2005 UTC (8 years, 5 months ago) by rstrandh
Branch: MAIN
Changes since 1.7: +6 -1 lines
Diff to previous 1.7
Make the conventions of glyph-offsets explicit.

Revision 1.7 - (view) (annotate) - [select for diffs]
Tue Nov 8 05:16:14 2005 UTC (8 years, 5 months ago) by rstrandh
Branch: MAIN
Changes since 1.6: +12 -9 lines
Diff to previous 1.6
Change the convention for staff-line-offsets so that the one going
down is nonnegative and the one going up is negative.  This way, they
should both be added to the y-coordinate of the reference point
to obtain the lower and upper edge of the staff line respectively.

Revision 1.6 - (view) (annotate) - [select for diffs]
Tue Nov 8 03:15:02 2005 UTC (8 years, 5 months ago) by rstrandh
Branch: MAIN
Changes since 1.5: +8 -0 lines
Diff to previous 1.5
more comments

Revision 1.5 - (view) (annotate) - [select for diffs]
Sun Jul 31 23:36:56 2005 UTC (8 years, 8 months ago) by rstrandh
Branch: MAIN
Changes since 1.4: +3 -3 lines
Diff to previous 1.4
Changed the sheet transformation of the score pane to be the default
for CLIM stream panes (0,0) in the upper-left corner.  This was in
order to simplify the rest of the code, and in particular the output
recording stuff.  There are probably some edge cases that don't yet
work like they are supposed to with the possibility of off-by-a-pixel
errors.

Removed all the rectangle output records in favor of calls to
draw-rectangle*.

Temporarily removed the double buffering as a preparation for better
seeing what is going on with incremental redisplay.

Getting incremental redisplay to work might require fixing a problem
in McCLIM which does not necessarily rely on the output-record
protocol, but instead sometimes assume the existence of a slot in the
record, whereas no such slot is required by the specification.  The
result is that the user cannot define his or her own output records
and have them work with incremental redisplay.

Revision 1.4 - (view) (annotate) - [select for diffs]
Fri Mar 26 14:24:11 2004 UTC (10 years ago) by rstrandh
Branch: MAIN
Changes since 1.3: +3 -3 lines
Diff to previous 1.3
Make it possible for the gf file loader to handle fonts with more
than 256 characters.

Revision 1.3 - (view) (annotate) - [select for diffs]
Thu Feb 19 05:57:22 2004 UTC (10 years, 1 month ago) by rstrandh
Branch: MAIN
Changes since 1.2: +1 -1 lines
Diff to previous 1.2
Fixed the :relative problem according to Andras Simon.

Revision 1.2 - (view) (annotate) - [select for diffs]
Mon Feb 16 18:50:20 2004 UTC (10 years, 2 months ago) by crhodes
Branch: MAIN
Changes since 1.1: +8 -2 lines
Diff to previous 1.1
add *FONTS-DIRECTORY* to allow running GSharp when not in the gsharp
directory; essentially, we address the path relative to the path of
sdl.lisp or sdl.fasl (note: may break if this is subjected to Debian's
common-lisp-controller)

One remaining LOOP BY -1 that slipped through the net

Revision 1.1.1.1 - (view) (annotate) - [select for diffs] (vendor branch)
Mon Feb 16 15:46:21 2004 UTC (10 years, 2 months ago) by rstrandh
Branch: strandh
CVS Tags: release-0-dot-2
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 , to next main 1.44
import of 0.2

Revision 1.1 - (view) (annotate) - [select for diffs]
Mon Feb 16 15:46:21 2004 UTC (10 years, 2 months ago) by rstrandh
Branch: MAIN
Branch point for: strandh
Initial revision

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, select a symbolic revision name using the selection box, or choose 'Use Text Field' and enter a numeric revision.

  Diffs between and
  Type of Diff should be a

Sort log by:

  ViewVC Help
Powered by ViewVC 1.1.5