|
Digigurdy-baz
|
#include <gurdystring.h>
Public Member Functions | |
| GurdyString (int my_channel, int my_note, String my_name, int my_mode, int my_vol=70) | |
| Constructor. GurdyString manages turning "strings" on and off, determining its note, and interacting with the MIDI layer. More... | |
| void | soundOn (int my_offset=0, int my_modulation=0) |
| Turns on sound over this string's MIDI channel at its current volume. More... | |
| void | soundOn (int my_offset, int my_modulation, int note) |
| Turns on a specific note over this string's MIDI channel at its current volume. More... | |
| void | soundOff () |
| Turns off the sound currently playing for this string, nicely. More... | |
| void | soundOff (int note) |
| Turns off sound to a specific note. More... | |
| void | soundKill () |
| Issues a MIDI CC123 to the string's MIDI channel, killing all sound on it. More... | |
| int | getOpenNote () |
| Returns the string's open (base) note. More... | |
| void | setOpenNote (int new_note) |
| Sets a new base note for this string. More... | |
| void | setVolume (int vol) |
| Sets a new volume for this string. More... | |
| int | getVolume () |
| Returns the string's MIDI volume. More... | |
| void | setMute (bool mute) |
| Mutes/unmutes the string. More... | |
| bool | getMute () |
| Returns the string's mute/unmute status. More... | |
| bool | isPlaying () |
| Reports if the string is currently playing a note. More... | |
| void | setProgram (uint8_t program) |
| Send a MIDI Program Change to this string's MIDI channel. More... | |
| void | setExpression (int exp) |
| Sends a MIDI CC11 (Expression) value to this string's MIDI channel. More... | |
| void | setPitchBend (int bend) |
| Bends this string's sound to the specified amount. More... | |
| void | setVibrato (int vib) |
| Sets the amount of modulation (vibrato) on this string. More... | |
| String | getName () |
| Returns the text name of this string. More... | |
| void | setOutputMode (int my_mode) |
| Sets the secondary output mode for this string. More... | |
| void | setGrosMode (int my_gros_mode) |
| Sets the "gros-mode" for this string. More... | |
| int | getGrosMode () |
| String | getGrosString () |
| void | setTrackLoops () |
| Sets the Trigger/Tsunami loop mode on all of the tracks this string may use. More... | |
| void | clearVolArray () |
| GurdyString::GurdyString | ( | int | my_channel, |
| int | my_note, | ||
| String | my_name, | ||
| int | my_mode, | ||
| int | my_vol = 70 |
||
| ) |
Constructor. GurdyString manages turning "strings" on and off, determining its note, and interacting with the MIDI layer.
| my_channel | The MIDI channel to communicate over |
| my_note | The base MIDI note of this string (0-127) |
| my_name | A text label for this string (e.g. "Drone") |
| my_mode | The secondary output mode (see setOutputMode() for more info) |
| my_vol | The volume of this string (0-127) |
| void GurdyString::clearVolArray | ( | ) |
| int GurdyString::getGrosMode | ( | ) |
| String GurdyString::getGrosString | ( | ) |
| bool GurdyString::getMute | ( | ) |
Returns the string's mute/unmute status.
| String GurdyString::getName | ( | ) |
Returns the text name of this string.
| int GurdyString::getOpenNote | ( | ) |
Returns the string's open (base) note.
| int GurdyString::getVolume | ( | ) |
Returns the string's MIDI volume.
| bool GurdyString::isPlaying | ( | ) |
Reports if the string is currently playing a note.
| void GurdyString::setExpression | ( | int | exp | ) |
Sends a MIDI CC11 (Expression) value to this string's MIDI channel.
| exp | The expression value, 0-127. |
| void GurdyString::setGrosMode | ( | int | my_gros_mode | ) |
Sets the "gros-mode" for this string.
Value of this should be 0-3:
| my_gros_mode |
| void GurdyString::setMute | ( | bool | mute | ) |
Mutes/unmutes the string.
| mute | True = mute, false = unmute |
| void GurdyString::setOpenNote | ( | int | new_note | ) |
Sets a new base note for this string.
| new_note | The new base MIDI note (0-127) for this string |
| void GurdyString::setOutputMode | ( | int | my_mode | ) |
Sets the secondary output mode for this string.
| my_mode | 0-2 |
Modes accepted:
| void GurdyString::setPitchBend | ( | int | bend | ) |
Bends this string's sound to the specified amount.
| bend | The amount of pitch bend. 0 to 16383, where 8192 = no bend. |
| void GurdyString::setProgram | ( | uint8_t | program | ) |
Send a MIDI Program Change to this string's MIDI channel.
| program | The program change value, 0-127. |
| void GurdyString::setTrackLoops | ( | ) |
Sets the Trigger/Tsunami loop mode on all of the tracks this string may use.
| void GurdyString::setVibrato | ( | int | vib | ) |
Sets the amount of modulation (vibrato) on this string.
| vib | The amount of modulation, 0-127. |
| void GurdyString::setVolume | ( | int | vol | ) |
Sets a new volume for this string.
| vol | The new MIDI volume for this string. 0 = silent, 127 = full volume. |
| void GurdyString::soundKill | ( | ) |
Issues a MIDI CC123 to the string's MIDI channel, killing all sound on it.
| void GurdyString::soundOff | ( | ) |
Turns off the sound currently playing for this string, nicely.
| void GurdyString::soundOff | ( | int | note | ) |
Turns off sound to a specific note.
| note | The specific note to stop |
| void GurdyString::soundOn | ( | int | my_offset, |
| int | my_modulation, | ||
| int | note | ||
| ) |
Turns on a specific note over this string's MIDI channel at its current volume.
This is meant to be for the second drone option, and bypasses the note_being_played logic.
| my_offset | The offset from the string's base note to make sound. Unused here. |
| my_modulation | The amount of optional modulation (0-127) to apply to the sound. This is MIDI CC1. 0 == no modulation. Unused here. |
| note | The specific note to sound. |
| void GurdyString::soundOn | ( | int | my_offset = 0, |
| int | my_modulation = 0 |
||
| ) |
Turns on sound over this string's MIDI channel at its current volume.
| my_offset | The offset from the string's base note to make sound |
| my_modulation | The amount of optional modulation (0-127) to apply to the sound. This is MIDI CC1. 0 == no modulation. |