1 /* pitchentry.h
2  * function prototypes for interface to audio/midi in
3  *
4  * for Denemo, a gtk+ frontend to GNU Lilypond
5  * (c)2007 Richard Shann
6  */
7 
8 #ifndef PITCHENTRY_H
9 #define PITCHENTRY_H
10 
11 #include <gtk/gtk.h>
12 #include <denemo/denemo.h>
13 
14 #include "command/select.h"
15 #include "command/chord.h"
16 #include "command/object.h"
17 
18 
19 gint setup_pitch_input (void);
20 gint stop_pitch_input (void);
21 void start_pitch_input (void);
22 gboolean pitch_recognition_system_active (void);
23 gboolean delete_tone (DenemoMovement * si, chord * thechord);
24 gboolean apply_tones (DenemoMovement * si);
25 void clear_overlay (GtkAction * action, DenemoScriptParam* param);
26 void store_pitch (double pitch);
27 double get_pitch (void);
28 void set_sharper (GtkAction * action, DenemoScriptParam * param);
29 void set_flatter (GtkAction * action, DenemoScriptParam * param);
30 gchar *determine_interval (gint bass, gint harmony, gboolean * status);
31 gchar *sharpest (void);
32 gchar *flattest (void);
33 
34 void signal_measure_end (void);
35 gboolean pitch_entry_active (DenemoProject * gui);
36 GtkWidget *get_enharmonic_frame (void);
37 GtkWidget *get_temperament_combo (void);
38 void reset_temperament (void);
39 gchar *get_fents_string (void);
40 gchar *get_sharpest (void);
41 gchar *get_flattest (void);
42 gchar *get_temperament_name (void);
43 void set_enharmonic_position (gint position);
44 void notenum2enharmonic (gint notenum, gint * poffset, gint * penshift, gint * poctave);
45 gchar *get_cents_string (void);
46 void set_tuning (void);
47 void adjust_tonal_center (gint * accs);
48 gint get_enharmonic_position (void);
49 gboolean check_interval (gint step1, gint enshift1, gint step2, gint enshift2);
50 gboolean check_midi_intervals (GList * midichord);
51 #endif //PITCHENTRY_H
52