Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 842 Bytes

instrum.h

File metadata and controls

30 lines (22 loc) · 842 Bytes
 
Oct 21, 1999
Oct 21, 1999
1
/*
Oct 18, 2017
Oct 18, 2017
2
Oct 21, 1999
Oct 21, 1999
3
4
5
6
TiMidity -- Experimental MIDI to WAVE converter
Copyright (C) 1995 Tuukka Toivonen <toivonen@clinet.fi>
This program is free software; you can redistribute it and/or modify
Dec 31, 2011
Dec 31, 2011
7
it under the terms of the Perl Artistic License, available in COPYING.
Oct 21, 1999
Oct 21, 1999
8
Oct 18, 2017
Oct 18, 2017
9
instrum.h
Aug 21, 2004
Aug 21, 2004
10
Oct 18, 2017
Oct 18, 2017
11
*/
Oct 21, 1999
Oct 21, 1999
12
13
14
15
16
17
18
19
20
/* Bits in modes: */
#define MODES_16BIT (1<<0)
#define MODES_UNSIGNED (1<<1)
#define MODES_LOOPING (1<<2)
#define MODES_PINGPONG (1<<3)
#define MODES_REVERSE (1<<4)
#define MODES_SUSTAIN (1<<5)
#define MODES_ENVELOPE (1<<6)
Aug 21, 2004
Aug 21, 2004
21
Oct 21, 1999
Oct 21, 1999
22
23
/* A hack to delay instrument loading until after reading the
entire MIDI file. */
Oct 18, 2017
Oct 18, 2017
24
#define MAGIC_LOAD_INSTRUMENT ((Instrument *) (-1))
Oct 21, 1999
Oct 21, 1999
25
26
27
#define SPECIAL_PROGRAM -1
Oct 18, 2017
Oct 18, 2017
28
29
30
extern int load_missing_instruments(MidiSong *song);
extern void free_instruments(MidiSong *song);
extern int set_default_instrument(MidiSong *song, char *name);