File: graceops.c

package info (click to toggle)
denemo 0.5.9-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 2,500 kB
  • ctags: 2,415
  • sloc: ansic: 23,057; sh: 3,321; yacc: 1,737; makefile: 449; lex: 376
file content (43 lines) | stat: -rw-r--r-- 749 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/* graceops.c
 *
 * functions which manipulate grace notes
 * For denemo, a gtk+ frontend to Lilypond, the GNU music typesetter
 *
 * (c) 2000, 2001 Adam Tee <eenajt@electeng.leeds.ac.uk>
 *
 */
#include "graceops.h"
#include "datastructures.h"
#include "utils.h"


mudelaobject *
newgracestart ()
{
  mudelaobject *thegrace;

  thegrace = g_malloc (sizeof (mudelaobject));

  thegrace->type = GRACE_START;
  thegrace->u.graceval.on_beat = FALSE;
  set_basic_numticks (thegrace);
  setpixelmin (thegrace);

  return thegrace;
}

mudelaobject *
newgraceend ()
{
  mudelaobject *thegrace;

  thegrace = g_malloc (sizeof (mudelaobject));

  thegrace->type = GRACE_END;


  set_basic_numticks (thegrace);
  setpixelmin (thegrace);

  return thegrace;
}