|
Digigurdy-baz
|
Functions | |
| void | draw_note (int note, int x_offset) |
| Draws a 64x64 ABC-style bitmap of the note being played. More... | |
| void | draw_staff (int note, int x_offset) |
| Draws a staff bitmap and the given note on it. More... | |
| void | print_note (String note_str, int x_offset) |
| Print as text the note being played in a large font. More... | |
| void | draw_play_screen (int note, int screen_type, bool draw_buzz) |
| Draws the play screen in one of six ways depending on the user's chosen screen type. More... | |
| void | print_display (int mel1, int mel2, int drone, int tromp, int tpose, int cap, int offset, bool hi_mute, bool lo_mute, bool drone_mute, bool tromp_mute) |
| Draws the screen visible when sound is not being made, the "heads-up display" screen. More... | |
| void | vol_up () |
| Turns the volume of all strings up by 10, if possible. More... | |
| void | vol_down () |
| Turns the volume of all strings down by 10, if possible. More... | |
| void | all_soundOff () |
| Sends a soundOff() to all six string objects. More... | |
| void | no_buzz_soundOff () |
| Sends a soundOff() to all strings but the buzz. More... | |
| void | all_soundKill () |
| Sends a soundKill() to all six string objects. More... | |
| void | all_clearVolArray () |
| Clears the volume array of all six string objects. More... | |
| void | tpose_up_1 (bool playing) |
| Increases the transpose by 1 semitone, and adjusts any playing notes. More... | |
| void | tpose_down_1 (bool playing) |
| Decreases the transpose by 1 semitone, and adjusts any playing notes. More... | |
| void | cycle_capo (bool playing) |
| Cycles the capo, and adjusts any playing notes. More... | |
| void | tpose_up_x (bool playing, int steps) |
| Adjusts the transpose by a given number of steps. More... | |
These functions draw the screens shown during play and outside of the menu tree, and help manage play behavior.
| void all_clearVolArray | ( | ) |
Clears the volume array of all six string objects.
| void all_soundKill | ( | ) |
Sends a soundKill() to all six string objects.
| void all_soundOff | ( | ) |
Sends a soundOff() to all six string objects.
| void cycle_capo | ( | bool | playing | ) |
Cycles the capo, and adjusts any playing notes.
| playing | True if currently playing sound, false otherwise. |
| void draw_note | ( | int | note, |
| int | x_offset | ||
| ) |
Draws a 64x64 ABC-style bitmap of the note being played.
| note | 0-127, the MIDI note to be displayed |
| x_offset | 0-64, the x-offset to display the image. 0 = far left, 32 = centered, 64 = far right |
| void draw_play_screen | ( | int | note, |
| int | screen_type, | ||
| bool | draw_buzz | ||
| ) |
Draws the play screen in one of six ways depending on the user's chosen screen type.
| note | 0-127, the MIDI note to be drawn. |
| screen_type | The arrangement to display. See the code itself to know what they mean: this is a magic number. |
| draw_buzz | If true, draw the on-screen buzz indicator. |
| void draw_staff | ( | int | note, |
| int | x_offset | ||
| ) |
Draws a staff bitmap and the given note on it.
| note | 0-127, the MIDI note to be drawn. |
| x_offset | 0-64, the x-offset to display the image. 0 = far left, 32 = centered, 64 = far right |
| void no_buzz_soundOff | ( | ) |
Sends a soundOff() to all strings but the buzz.
| void print_display | ( | int | mel1, |
| int | mel2, | ||
| int | drone, | ||
| int | tromp, | ||
| int | tpose, | ||
| int | cap, | ||
| int | offset, | ||
| bool | hi_mute, | ||
| bool | lo_mute, | ||
| bool | drone_mute, | ||
| bool | tromp_mute | ||
| ) |
Draws the screen visible when sound is not being made, the "heads-up display" screen.
| mel1 | The high melody MIDI note, 0-127 |
| mel2 | The low melody MIDI note, 0-127 |
| drone | The drone MIDI note, 0-127 |
| tromp | The trompette MIDI note, 0-127 |
| tpose | The transpose value, -12 to +12 |
| cap | The capo value, 0-4 |
| offset | The note offset (Currently unused) |
| hi_mute | True if high melody is muted |
| lo_mute | True if low melody is muted |
| drone_mute | True if drone is muted |
| tromp_mute | True if trompette is muted |
| void print_note | ( | String | note_str, |
| int | x_offset | ||
| ) |
Print as text the note being played in a large font.
| note_str | The text of the note to be displayed. |
| x_offset | 0-64, the x-offset to display the text. 0 = far left, 32 = centered, 64 = far right |
| void tpose_down_1 | ( | bool | playing | ) |
Decreases the transpose by 1 semitone, and adjusts any playing notes.
| playing | True if currently playing sound, false otherwise. |
| void tpose_up_1 | ( | bool | playing | ) |
Increases the transpose by 1 semitone, and adjusts any playing notes.
| playing | True if currently playing sound, false otherwise. |
| void tpose_up_x | ( | bool | playing, |
| int | steps | ||
| ) |
Adjusts the transpose by a given number of steps.
| playing | True if currently playing sound, false otherwise. |
| steps | Number of semitones to move (signed) |
| void vol_down | ( | ) |
Turns the volume of all strings down by 10, if possible.
| void vol_up | ( | ) |
Turns the volume of all strings up by 10, if possible.