Euphoria
eu::minsynth::KeyboardInputNode Struct Reference

#include <synth.h>

Inheritance diagram for eu::minsynth::KeyboardInputNode:
eu::minsynth::Node

Public Member Functions

void on_input (core::Key input, bool was_pressed, float time)
 
void on_chord (int base, bool was_pressed, float time, int first, int second) const
 
void on_chord (int base, bool was_pressed, float time, const std::vector< int > &integer_notation) const
 
- Public Member Functions inherited from eu::minsynth::Node
 Node ()=default
 
virtual ~Node ()=default
 
 Node (const Node &)=delete
 
 Node (Node &&)=delete
 
void operator= (const Node &)=delete
 
void operator= (Node &&)=delete
 
virtual void update (float dt, float current_time)
 

Public Attributes

std::vector< PianoKeykeys
 
bool octave_shift = false
 
ToneTakertones = nullptr
 
ChordEmulation chords_emulation = ChordEmulation::none
 

Detailed Description

Definition at line 203 of file synth.h.

Member Function Documentation

◆ on_chord() [1/2]

void eu::minsynth::KeyboardInputNode::on_chord ( int  base,
bool  was_pressed,
float  time,
const std::vector< int > &  integer_notation 
) const

Definition at line 374 of file synth.cc.

◆ on_chord() [2/2]

void eu::minsynth::KeyboardInputNode::on_chord ( int  base,
bool  was_pressed,
float  time,
int  first,
int  second 
) const

Definition at line 359 of file synth.cc.

◆ on_input()

void eu::minsynth::KeyboardInputNode::on_input ( core::Key  input,
bool  was_pressed,
float  time 
)

Definition at line 389 of file synth.cc.

Member Data Documentation

◆ chords_emulation

ChordEmulation eu::minsynth::KeyboardInputNode::chords_emulation = ChordEmulation::none

Definition at line 208 of file synth.h.

◆ keys

std::vector<PianoKey> eu::minsynth::KeyboardInputNode::keys

Definition at line 205 of file synth.h.

◆ octave_shift

bool eu::minsynth::KeyboardInputNode::octave_shift = false

Definition at line 206 of file synth.h.

◆ tones

ToneTaker* eu::minsynth::KeyboardInputNode::tones = nullptr

Definition at line 207 of file synth.h.


The documentation for this struct was generated from the following files: