Guitarix
gx_engine::MidiVariables Class Reference

#include <gx_internal_plugins.h>

Public Member Functions

void register_parameter (const ParamReg &reg)
 
void init (int samplingFreq)
 
void process_midi (int len, float *audiodata, void *midi_port_buf, float jcpu_load, float fConsta4, float fConsta1t)
 
bool get_midistat ()
 

Detailed Description

Definition at line 108 of file gx_internal_plugins.h.

Member Function Documentation

§ get_midistat()

bool gx_engine::MidiVariables::get_midistat ( )
inline

Definition at line 178 of file gx_internal_plugins.h.

Referenced by gx_engine::MidiAudioBuffer::get_midistat().

§ init()

void gx_engine::MidiVariables::init ( int  samplingFreq)

Definition at line 73 of file gx_engine_midi.cpp.

Referenced by gx_engine::MidiAudioBuffer::MidiAudioBuffer().

§ process_midi()

void gx_engine::MidiVariables::process_midi ( int  len,
float *  audiodata,
void *  midi_port_buf,
float  jcpu_load,
float  fConsta4,
float  fConsta1t 
)

fConsta4 is the frequence value from the actuell frame, here we calculate the Note from the freq by log2(freq/440)*12 the audio.result is the Note (as float) related to the note "A"

preNote contains the next posible Note, related by round float to int. piwe contain the pitchweel value witch show the diff beetween the detected Note and the real Note by frequency.

Definition at line 88 of file gx_engine_midi.cpp.

§ register_parameter()

void gx_engine::MidiVariables::register_parameter ( const ParamReg reg)

Definition at line 31 of file gx_engine_midi.cpp.

Referenced by gx_engine::MidiAudioBuffer::MidiAudioBuffer().


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