Renamed PlayHandle classes and some functions with bool return values
Next big coding style update - this time all PlayHandle classes are affected. Functions like done() and released() were renamed to isFinished() and isReleased().
This commit is contained in:
@@ -34,7 +34,7 @@
|
||||
#include "engine.h"
|
||||
#include "song.h"
|
||||
#include "InstrumentTrack.h"
|
||||
#include "note_play_handle.h"
|
||||
#include "NotePlayHandle.h"
|
||||
#include "interpolation.h"
|
||||
#include "gui_templates.h"
|
||||
#include "tooltip.h"
|
||||
@@ -101,7 +101,7 @@ audioFileProcessor::~audioFileProcessor()
|
||||
|
||||
|
||||
|
||||
void audioFileProcessor::playNote( notePlayHandle * _n,
|
||||
void audioFileProcessor::playNote( NotePlayHandle * _n,
|
||||
sampleFrame * _working_buffer )
|
||||
{
|
||||
const fpp_t frames = _n->framesLeftForCurrentPeriod();
|
||||
@@ -159,7 +159,7 @@ void audioFileProcessor::playNote( notePlayHandle * _n,
|
||||
|
||||
|
||||
|
||||
void audioFileProcessor::deleteNotePluginData( notePlayHandle * _n )
|
||||
void audioFileProcessor::deleteNotePluginData( NotePlayHandle * _n )
|
||||
{
|
||||
delete (handleState *)_n->m_pluginData;
|
||||
}
|
||||
@@ -225,7 +225,7 @@ QString audioFileProcessor::nodeName( void ) const
|
||||
|
||||
|
||||
|
||||
int audioFileProcessor::getBeatLen( notePlayHandle * _n ) const
|
||||
int audioFileProcessor::getBeatLen( NotePlayHandle * _n ) const
|
||||
{
|
||||
const float freq_factor = BaseFreq / _n->frequency() *
|
||||
engine::mixer()->processingSampleRate() / engine::mixer()->baseSampleRate();
|
||||
|
||||
@@ -44,9 +44,9 @@ public:
|
||||
audioFileProcessor( InstrumentTrack * _instrument_track );
|
||||
virtual ~audioFileProcessor();
|
||||
|
||||
virtual void playNote( notePlayHandle * _n,
|
||||
virtual void playNote( NotePlayHandle * _n,
|
||||
sampleFrame * _working_buffer );
|
||||
virtual void deleteNotePluginData( notePlayHandle * _n );
|
||||
virtual void deleteNotePluginData( NotePlayHandle * _n );
|
||||
|
||||
virtual void saveSettings( QDomDocument & _doc,
|
||||
QDomElement & _parent );
|
||||
@@ -56,7 +56,7 @@ public:
|
||||
|
||||
virtual QString nodeName() const;
|
||||
|
||||
virtual int getBeatLen( notePlayHandle * _n ) const;
|
||||
virtual int getBeatLen( NotePlayHandle * _n ) const;
|
||||
|
||||
virtual f_cnt_t desiredReleaseFrames() const
|
||||
{
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
#include "InstrumentTrack.h"
|
||||
#include "knob.h"
|
||||
#include "led_checkbox.h"
|
||||
#include "note_play_handle.h"
|
||||
#include "NotePlayHandle.h"
|
||||
#include "Oscillator.h"
|
||||
#include "pixmap_button.h"
|
||||
#include "song_editor.h"
|
||||
@@ -61,7 +61,7 @@ Plugin::Descriptor PLUGIN_EXPORT bitinvader_plugin_descriptor =
|
||||
}
|
||||
|
||||
|
||||
bSynth::bSynth( float * _shape, int _length, notePlayHandle * _nph, bool _interpolation,
|
||||
bSynth::bSynth( float * _shape, int _length, NotePlayHandle * _nph, bool _interpolation,
|
||||
float _factor, const sample_rate_t _sample_rate ) :
|
||||
sample_index( 0 ),
|
||||
sample_realindex( 0 ),
|
||||
@@ -257,7 +257,7 @@ QString bitInvader::nodeName() const
|
||||
|
||||
|
||||
|
||||
void bitInvader::playNote( notePlayHandle * _n,
|
||||
void bitInvader::playNote( NotePlayHandle * _n,
|
||||
sampleFrame * _working_buffer )
|
||||
{
|
||||
if ( _n->totalFramesPlayed() == 0 || _n->m_pluginData == NULL )
|
||||
@@ -301,7 +301,7 @@ void bitInvader::playNote( notePlayHandle * _n,
|
||||
|
||||
|
||||
|
||||
void bitInvader::deleteNotePluginData( notePlayHandle * _n )
|
||||
void bitInvader::deleteNotePluginData( NotePlayHandle * _n )
|
||||
{
|
||||
delete static_cast<bSynth *>( _n->m_pluginData );
|
||||
}
|
||||
|
||||
@@ -40,7 +40,7 @@ class bitInvaderView;
|
||||
class bSynth
|
||||
{
|
||||
public:
|
||||
bSynth( float * sample, int length, notePlayHandle * _nph,
|
||||
bSynth( float * sample, int length, NotePlayHandle * _nph,
|
||||
bool _interpolation, float factor,
|
||||
const sample_rate_t _sample_rate );
|
||||
virtual ~bSynth();
|
||||
@@ -52,7 +52,7 @@ private:
|
||||
int sample_index;
|
||||
float sample_realindex;
|
||||
float* sample_shape;
|
||||
notePlayHandle* nph;
|
||||
NotePlayHandle* nph;
|
||||
const int sample_length;
|
||||
const sample_rate_t sample_rate;
|
||||
|
||||
@@ -67,9 +67,9 @@ public:
|
||||
bitInvader(InstrumentTrack * _instrument_track );
|
||||
virtual ~bitInvader();
|
||||
|
||||
virtual void playNote( notePlayHandle * _n,
|
||||
virtual void playNote( NotePlayHandle * _n,
|
||||
sampleFrame * _working_buffer );
|
||||
virtual void deleteNotePluginData( notePlayHandle * _n );
|
||||
virtual void deleteNotePluginData( NotePlayHandle * _n );
|
||||
|
||||
|
||||
virtual void saveSettings( QDomDocument & _doc,
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
#include <QtCore/QBuffer>
|
||||
|
||||
#include "FlpImport.h"
|
||||
#include "note_play_handle.h"
|
||||
#include "NotePlayHandle.h"
|
||||
#include "AutomationPattern.h"
|
||||
#include "basic_filters.h"
|
||||
#include "bb_track.h"
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
#include "engine.h"
|
||||
#include "InstrumentTrack.h"
|
||||
#include "knob.h"
|
||||
#include "note_play_handle.h"
|
||||
#include "NotePlayHandle.h"
|
||||
#include "SweepOscillator.h"
|
||||
|
||||
#include "embed.cpp"
|
||||
@@ -113,7 +113,7 @@ typedef effectLib::distortion DistFX;
|
||||
typedef SweepOscillator<effectLib::monoToStereoAdaptor<DistFX> > SweepOsc;
|
||||
|
||||
|
||||
void kickerInstrument::playNote( notePlayHandle * _n,
|
||||
void kickerInstrument::playNote( NotePlayHandle * _n,
|
||||
sampleFrame * _working_buffer )
|
||||
{
|
||||
const float decfr = m_decayModel.value() *
|
||||
@@ -126,14 +126,14 @@ void kickerInstrument::playNote( notePlayHandle * _n,
|
||||
DistFX( m_distModel.value(),
|
||||
m_gainModel.value() ) );
|
||||
}
|
||||
else if( tfp > decfr && !_n->released() )
|
||||
else if( tfp > decfr && !_n->isReleased() )
|
||||
{
|
||||
_n->noteOff();
|
||||
}
|
||||
|
||||
//const float freq = instrumentTrack()->frequency( _n ) / 2;
|
||||
const float fdiff = m_endFreqModel.value() - m_startFreqModel.value();
|
||||
/* const fpp_t frames = _n->released() ?
|
||||
/* const fpp_t frames = _n->isReleased() ?
|
||||
tMax( tMin<f_cnt_t>( desiredReleaseFrames() -
|
||||
_n->releaseFramesDone(),
|
||||
engine::mixer()->framesPerAudioBuffer() ), 0 )
|
||||
@@ -148,7 +148,7 @@ void kickerInstrument::playNote( notePlayHandle * _n,
|
||||
so->update( _working_buffer, frames, f1, f2,
|
||||
engine::mixer()->processingSampleRate() );
|
||||
|
||||
if( _n->released() )
|
||||
if( _n->isReleased() )
|
||||
{
|
||||
const float rfd = _n->releaseFramesDone();
|
||||
const float drf = desiredReleaseFrames();
|
||||
@@ -166,7 +166,7 @@ void kickerInstrument::playNote( notePlayHandle * _n,
|
||||
|
||||
|
||||
|
||||
void kickerInstrument::deleteNotePluginData( notePlayHandle * _n )
|
||||
void kickerInstrument::deleteNotePluginData( NotePlayHandle * _n )
|
||||
{
|
||||
delete static_cast<SweepOsc *>( _n->m_pluginData );
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
|
||||
|
||||
class kickerInstrumentView;
|
||||
class notePlayHandle;
|
||||
class NotePlayHandle;
|
||||
|
||||
|
||||
class kickerInstrument : public Instrument
|
||||
@@ -42,9 +42,9 @@ public:
|
||||
kickerInstrument( InstrumentTrack * _instrument_track );
|
||||
virtual ~kickerInstrument();
|
||||
|
||||
virtual void playNote( notePlayHandle * _n,
|
||||
virtual void playNote( NotePlayHandle * _n,
|
||||
sampleFrame * _working_buffer );
|
||||
virtual void deleteNotePluginData( notePlayHandle * _n );
|
||||
virtual void deleteNotePluginData( NotePlayHandle * _n );
|
||||
|
||||
|
||||
virtual void saveSettings( QDomDocument & _doc, QDomElement & _parent );
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
#include "InstrumentPlayHandle.h"
|
||||
#include "InstrumentTrack.h"
|
||||
#include "knob.h"
|
||||
#include "note_play_handle.h"
|
||||
#include "NotePlayHandle.h"
|
||||
#include "Oscillator.h"
|
||||
#include "pixmap_button.h"
|
||||
#include "templates.h"
|
||||
@@ -709,7 +709,7 @@ void lb302Synth::initNote( lb302Note *n)
|
||||
}
|
||||
|
||||
|
||||
void lb302Synth::playNote( notePlayHandle * _n, sampleFrame * _working_buffer )
|
||||
void lb302Synth::playNote( NotePlayHandle * _n, sampleFrame * _working_buffer )
|
||||
{
|
||||
//fpp_t framesPerPeriod = engine::mixer()->framesPerPeriod();
|
||||
|
||||
@@ -780,7 +780,7 @@ void lb302Synth::play( sampleFrame * _working_buffer )
|
||||
|
||||
|
||||
|
||||
void lb302Synth::deleteNotePluginData( notePlayHandle * _n )
|
||||
void lb302Synth::deleteNotePluginData( NotePlayHandle * _n )
|
||||
{
|
||||
//printf("GONE\n");
|
||||
if( _n->unpitchedFrequency() == current_freq )
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
#include "Mixer.h"
|
||||
|
||||
class lb302SynthView;
|
||||
class notePlayHandle;
|
||||
class NotePlayHandle;
|
||||
|
||||
class lb302FilterKnobState
|
||||
{
|
||||
@@ -139,9 +139,9 @@ public:
|
||||
virtual ~lb302Synth();
|
||||
|
||||
virtual void play( sampleFrame * _working_buffer );
|
||||
virtual void playNote( notePlayHandle * _n,
|
||||
virtual void playNote( NotePlayHandle * _n,
|
||||
sampleFrame * _working_buffer );
|
||||
virtual void deleteNotePluginData( notePlayHandle * _n );
|
||||
virtual void deleteNotePluginData( NotePlayHandle * _n );
|
||||
|
||||
|
||||
virtual void saveSettings( QDomDocument & _doc, QDomElement & _parent );
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
#include "InstrumentPlayHandle.h"
|
||||
#include "InstrumentTrack.h"
|
||||
#include "knob.h"
|
||||
#include "note_play_handle.h"
|
||||
#include "NotePlayHandle.h"
|
||||
#include "templates.h"
|
||||
#include "audio_port.h"
|
||||
|
||||
@@ -665,7 +665,7 @@ void lb303Synth::initNote( lb303Note *n)
|
||||
}
|
||||
|
||||
|
||||
void lb303Synth::playNote( notePlayHandle * _n,
|
||||
void lb303Synth::playNote( NotePlayHandle * _n,
|
||||
sampleFrame * _working_buffer )
|
||||
{
|
||||
if( _n->arpBaseNote() )
|
||||
@@ -719,7 +719,7 @@ void lb303Synth::play( sampleFrame * _working_buffer )
|
||||
|
||||
|
||||
|
||||
void lb303Synth::deleteNotePluginData( notePlayHandle * _n )
|
||||
void lb303Synth::deleteNotePluginData( NotePlayHandle * _n )
|
||||
{
|
||||
//printf("GONE\n");
|
||||
if( _n->unpitchedFrequency() == current_freq )
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
#include "Mixer.h"
|
||||
|
||||
class lb303SynthView;
|
||||
class notePlayHandle;
|
||||
class NotePlayHandle;
|
||||
|
||||
class lb303FilterKnobState
|
||||
{
|
||||
@@ -140,9 +140,9 @@ public:
|
||||
virtual ~lb303Synth();
|
||||
|
||||
virtual void play( sampleFrame * _working_buffer );
|
||||
virtual void playNote( notePlayHandle * _n,
|
||||
virtual void playNote( NotePlayHandle * _n,
|
||||
sampleFrame * _working_buffer );
|
||||
virtual void deleteNotePluginData( notePlayHandle * _n );
|
||||
virtual void deleteNotePluginData( NotePlayHandle * _n );
|
||||
|
||||
|
||||
virtual void saveSettings( QDomDocument & _doc, QDomElement & _parent );
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
#include "engine.h"
|
||||
#include "InstrumentTrack.h"
|
||||
#include "knob.h"
|
||||
#include "note_play_handle.h"
|
||||
#include "NotePlayHandle.h"
|
||||
#include "Oscillator.h"
|
||||
#include "pixmap_button.h"
|
||||
#include "templates.h"
|
||||
@@ -182,7 +182,7 @@ QString organicInstrument::nodeName() const
|
||||
|
||||
|
||||
|
||||
void organicInstrument::playNote( notePlayHandle * _n,
|
||||
void organicInstrument::playNote( NotePlayHandle * _n,
|
||||
sampleFrame * _working_buffer )
|
||||
{
|
||||
if( _n->totalFramesPlayed() == 0 || _n->m_pluginData == NULL )
|
||||
@@ -281,7 +281,7 @@ void organicInstrument::playNote( notePlayHandle * _n,
|
||||
|
||||
|
||||
|
||||
void organicInstrument::deleteNotePluginData( notePlayHandle * _n )
|
||||
void organicInstrument::deleteNotePluginData( NotePlayHandle * _n )
|
||||
{
|
||||
delete static_cast<Oscillator *>( static_cast<oscPtr *>(
|
||||
_n->m_pluginData )->oscLeft );
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
class QPixmap;
|
||||
|
||||
class knob;
|
||||
class notePlayHandle;
|
||||
class NotePlayHandle;
|
||||
class pixmapButton;
|
||||
|
||||
|
||||
@@ -81,9 +81,9 @@ public:
|
||||
organicInstrument( InstrumentTrack * _instrument_track );
|
||||
virtual ~organicInstrument();
|
||||
|
||||
virtual void playNote( notePlayHandle * _n,
|
||||
virtual void playNote( NotePlayHandle * _n,
|
||||
sampleFrame * _working_buffer );
|
||||
virtual void deleteNotePluginData( notePlayHandle * _n );
|
||||
virtual void deleteNotePluginData( NotePlayHandle * _n );
|
||||
|
||||
|
||||
virtual void saveSettings( QDomDocument & _doc, QDomElement & _parent );
|
||||
|
||||
@@ -31,9 +31,10 @@
|
||||
#include "papu_instrument.h"
|
||||
#include "InstrumentTrack.h"
|
||||
#include "knob.h"
|
||||
#include "note_play_handle.h"
|
||||
#include "NotePlayHandle.h"
|
||||
#include "pixmap_button.h"
|
||||
#include "tooltip.h"
|
||||
#include "engine.h"
|
||||
#include "graph.h"
|
||||
|
||||
#include "embed.cpp"
|
||||
@@ -231,7 +232,7 @@ f_cnt_t papuInstrument::desiredReleaseFrames() const
|
||||
|
||||
|
||||
|
||||
void papuInstrument::playNote( notePlayHandle * _n,
|
||||
void papuInstrument::playNote( NotePlayHandle * _n,
|
||||
sampleFrame * _working_buffer )
|
||||
{
|
||||
const f_cnt_t tfp = _n->totalFramesPlayed();
|
||||
@@ -409,7 +410,7 @@ void papuInstrument::playNote( notePlayHandle * _n,
|
||||
|
||||
|
||||
|
||||
void papuInstrument::deleteNotePluginData( notePlayHandle * _n )
|
||||
void papuInstrument::deleteNotePluginData( NotePlayHandle * _n )
|
||||
{
|
||||
delete static_cast<Basic_Gb_Apu *>( _n->m_pluginData );
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
#include "graph.h"
|
||||
|
||||
class papuInstrumentView;
|
||||
class notePlayHandle;
|
||||
class NotePlayHandle;
|
||||
class pixmapButton;
|
||||
|
||||
class papuInstrument : public Instrument
|
||||
@@ -44,9 +44,9 @@ public:
|
||||
papuInstrument( InstrumentTrack * _instrument_track );
|
||||
virtual ~papuInstrument();
|
||||
|
||||
virtual void playNote( notePlayHandle * _n,
|
||||
virtual void playNote( NotePlayHandle * _n,
|
||||
sampleFrame * _working_buffer );
|
||||
virtual void deleteNotePluginData( notePlayHandle * _n );
|
||||
virtual void deleteNotePluginData( NotePlayHandle * _n );
|
||||
|
||||
|
||||
virtual void saveSettings( QDomDocument & _doc, QDomElement & _parent );
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
#include "engine.h"
|
||||
#include "gui_templates.h"
|
||||
#include "InstrumentTrack.h"
|
||||
#include "note_play_handle.h"
|
||||
#include "NotePlayHandle.h"
|
||||
#include "pixmap_button.h"
|
||||
#include "song.h"
|
||||
#include "string_pair_drag.h"
|
||||
@@ -129,7 +129,7 @@ QString patmanInstrument::nodeName( void ) const
|
||||
|
||||
|
||||
|
||||
void patmanInstrument::playNote( notePlayHandle * _n,
|
||||
void patmanInstrument::playNote( NotePlayHandle * _n,
|
||||
sampleFrame * _working_buffer )
|
||||
{
|
||||
if( m_patchFile == "" )
|
||||
@@ -160,7 +160,7 @@ void patmanInstrument::playNote( notePlayHandle * _n,
|
||||
|
||||
|
||||
|
||||
void patmanInstrument::deleteNotePluginData( notePlayHandle * _n )
|
||||
void patmanInstrument::deleteNotePluginData( NotePlayHandle * _n )
|
||||
{
|
||||
handle_data * hdata = (handle_data *)_n->m_pluginData;
|
||||
sharedObject::unref( hdata->sample );
|
||||
@@ -384,7 +384,7 @@ void patmanInstrument::unloadCurrentPatch( void )
|
||||
|
||||
|
||||
|
||||
void patmanInstrument::selectSample( notePlayHandle * _n )
|
||||
void patmanInstrument::selectSample( NotePlayHandle * _n )
|
||||
{
|
||||
const float freq = _n->frequency();
|
||||
|
||||
|
||||
@@ -52,9 +52,9 @@ public:
|
||||
patmanInstrument( InstrumentTrack * _track );
|
||||
virtual ~patmanInstrument();
|
||||
|
||||
virtual void playNote( notePlayHandle * _n,
|
||||
virtual void playNote( NotePlayHandle * _n,
|
||||
sampleFrame * _working_buffer );
|
||||
virtual void deleteNotePluginData( notePlayHandle * _n );
|
||||
virtual void deleteNotePluginData( NotePlayHandle * _n );
|
||||
|
||||
|
||||
virtual void saveSettings( QDomDocument & _doc, QDomElement & _parent );
|
||||
@@ -103,7 +103,7 @@ private:
|
||||
LoadErrors loadPatch( const QString & _filename );
|
||||
void unloadCurrentPatch( void );
|
||||
|
||||
void selectSample( notePlayHandle * _n );
|
||||
void selectSample( NotePlayHandle * _n );
|
||||
|
||||
|
||||
friend class PatmanView;
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
#include "PeakController.h"
|
||||
#include "peak_controller_effect_controls.h"
|
||||
#include "peak_controller_effect.h"
|
||||
#include "preset_preview_play_handle.h"
|
||||
#include "PresetPreviewPlayHandle.h"
|
||||
#include "song.h"
|
||||
|
||||
|
||||
@@ -77,7 +77,7 @@ void PeakControllerEffectControls::loadSettings( const QDomElement & _this )
|
||||
m_effect->m_effectId = rand();
|
||||
}
|
||||
|
||||
if( m_effect->m_autoController && ( engine::getSong()->isLoadingProject() == true || presetPreviewPlayHandle::isPreviewing() == false ) )
|
||||
if( m_effect->m_autoController && ( engine::getSong()->isLoadingProject() == true || PresetPreviewPlayHandle::isPreviewing() == false ) )
|
||||
{
|
||||
delete m_effect->m_autoController;
|
||||
m_effect->m_autoController = 0;
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
#include "engine.h"
|
||||
#include "InstrumentTrack.h"
|
||||
#include "InstrumentPlayHandle.h"
|
||||
#include "note_play_handle.h"
|
||||
#include "NotePlayHandle.h"
|
||||
#include "knob.h"
|
||||
#include "song.h"
|
||||
|
||||
@@ -570,7 +570,7 @@ void sf2Instrument::updateSampleRate()
|
||||
|
||||
|
||||
|
||||
void sf2Instrument::playNote( notePlayHandle * _n, sampleFrame * )
|
||||
void sf2Instrument::playNote( NotePlayHandle * _n, sampleFrame * )
|
||||
{
|
||||
const float LOG440 = 2.643452676f;
|
||||
|
||||
@@ -743,7 +743,7 @@ void sf2Instrument::play( sampleFrame * _working_buffer )
|
||||
|
||||
|
||||
|
||||
void sf2Instrument::deleteNotePluginData( notePlayHandle * _n )
|
||||
void sf2Instrument::deleteNotePluginData( NotePlayHandle * _n )
|
||||
{
|
||||
SF2PluginData * pluginData = static_cast<SF2PluginData *>(
|
||||
_n->m_pluginData );
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
|
||||
class sf2InstrumentView;
|
||||
class sf2Font;
|
||||
class notePlayHandle;
|
||||
class NotePlayHandle;
|
||||
|
||||
class patchesDialog;
|
||||
class QLabel;
|
||||
@@ -58,9 +58,9 @@ public:
|
||||
|
||||
virtual void play( sampleFrame * _working_buffer );
|
||||
|
||||
virtual void playNote( notePlayHandle * _n,
|
||||
virtual void playNote( NotePlayHandle * _n,
|
||||
sampleFrame * _working_buffer );
|
||||
virtual void deleteNotePluginData( notePlayHandle * _n );
|
||||
virtual void deleteNotePluginData( NotePlayHandle * _n );
|
||||
|
||||
|
||||
virtual void saveSettings( QDomDocument & _doc, QDomElement & _parent );
|
||||
|
||||
@@ -42,7 +42,7 @@ float frnd(float range)
|
||||
#include "engine.h"
|
||||
#include "InstrumentTrack.h"
|
||||
#include "knob.h"
|
||||
#include "note_play_handle.h"
|
||||
#include "NotePlayHandle.h"
|
||||
#include "pixmap_button.h"
|
||||
#include "song_editor.h"
|
||||
#include "templates.h"
|
||||
@@ -448,7 +448,7 @@ QString sfxrInstrument::nodeName() const
|
||||
|
||||
|
||||
|
||||
void sfxrInstrument::playNote( notePlayHandle * _n, sampleFrame * _working_buffer )
|
||||
void sfxrInstrument::playNote( NotePlayHandle * _n, sampleFrame * _working_buffer )
|
||||
{
|
||||
fpp_t frameNum = _n->framesLeftForCurrentPeriod();
|
||||
if ( _n->totalFramesPlayed() == 0 || _n->m_pluginData == NULL )
|
||||
@@ -480,7 +480,7 @@ void sfxrInstrument::playNote( notePlayHandle * _n, sampleFrame * _working_buffe
|
||||
|
||||
|
||||
|
||||
void sfxrInstrument::deleteNotePluginData( notePlayHandle * _n )
|
||||
void sfxrInstrument::deleteNotePluginData( NotePlayHandle * _n )
|
||||
{
|
||||
delete static_cast<SfxrSynth *>( _n->m_pluginData );
|
||||
}
|
||||
|
||||
@@ -169,8 +169,8 @@ public:
|
||||
sfxrInstrument(InstrumentTrack * _instrument_track );
|
||||
virtual ~sfxrInstrument();
|
||||
|
||||
virtual void playNote( notePlayHandle * _n, sampleFrame * _working_buffer );
|
||||
virtual void deleteNotePluginData( notePlayHandle * _n );
|
||||
virtual void playNote( NotePlayHandle * _n, sampleFrame * _working_buffer );
|
||||
virtual void deleteNotePluginData( NotePlayHandle * _n );
|
||||
|
||||
virtual void saveSettings( QDomDocument & _doc,
|
||||
QDomElement & _parent );
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
#include "engine.h"
|
||||
#include "InstrumentTrack.h"
|
||||
#include "knob.h"
|
||||
#include "note_play_handle.h"
|
||||
#include "NotePlayHandle.h"
|
||||
#include "pixmap_button.h"
|
||||
#include "tooltip.h"
|
||||
|
||||
@@ -299,7 +299,7 @@ static int sid_fillbuffer(unsigned char* sidreg, cSID *sid, int tdelta, short *p
|
||||
|
||||
|
||||
|
||||
void sidInstrument::playNote( notePlayHandle * _n,
|
||||
void sidInstrument::playNote( NotePlayHandle * _n,
|
||||
sampleFrame * _working_buffer )
|
||||
{
|
||||
const f_cnt_t tfp = _n->totalFramesPlayed();
|
||||
@@ -361,7 +361,7 @@ void sidInstrument::playNote( notePlayHandle * _n,
|
||||
sidreg[base+2] = data16&0x00FF;
|
||||
sidreg[base+3] = (data16>>8)&0x000F;
|
||||
// control: wave form, (test), ringmod, sync, gate
|
||||
data8 = _n->released()?0:1;
|
||||
data8 = _n->isReleased()?0:1;
|
||||
data8 += m_voice[i]->m_syncModel.value()?2:0;
|
||||
data8 += m_voice[i]->m_ringModModel.value()?4:0;
|
||||
data8 += m_voice[i]->m_testModel.value()?8:0;
|
||||
@@ -440,7 +440,7 @@ void sidInstrument::playNote( notePlayHandle * _n,
|
||||
|
||||
|
||||
|
||||
void sidInstrument::deleteNotePluginData( notePlayHandle * _n )
|
||||
void sidInstrument::deleteNotePluginData( NotePlayHandle * _n )
|
||||
{
|
||||
delete static_cast<cSID *>( _n->m_pluginData );
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
|
||||
|
||||
class sidInstrumentView;
|
||||
class notePlayHandle;
|
||||
class NotePlayHandle;
|
||||
class automatableButtonGroup;
|
||||
class pixmapButton;
|
||||
|
||||
@@ -91,9 +91,9 @@ public:
|
||||
sidInstrument( InstrumentTrack * _instrument_track );
|
||||
virtual ~sidInstrument();
|
||||
|
||||
virtual void playNote( notePlayHandle * _n,
|
||||
virtual void playNote( NotePlayHandle * _n,
|
||||
sampleFrame * _working_buffer );
|
||||
virtual void deleteNotePluginData( notePlayHandle * _n );
|
||||
virtual void deleteNotePluginData( NotePlayHandle * _n );
|
||||
|
||||
|
||||
virtual void saveSettings( QDomDocument & _doc, QDomElement & _parent );
|
||||
|
||||
@@ -204,7 +204,7 @@ QString malletsInstrument::nodeName() const
|
||||
|
||||
|
||||
|
||||
void malletsInstrument::playNote( notePlayHandle * _n,
|
||||
void malletsInstrument::playNote( NotePlayHandle * _n,
|
||||
sampleFrame * _working_buffer )
|
||||
{
|
||||
if( m_filesMissing )
|
||||
@@ -288,7 +288,7 @@ void malletsInstrument::playNote( notePlayHandle * _n,
|
||||
|
||||
|
||||
|
||||
void malletsInstrument::deleteNotePluginData( notePlayHandle * _n )
|
||||
void malletsInstrument::deleteNotePluginData( NotePlayHandle * _n )
|
||||
{
|
||||
delete static_cast<malletsSynth *>( _n->m_pluginData );
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
#include "Instrument.h"
|
||||
#include "InstrumentView.h"
|
||||
#include "knob.h"
|
||||
#include "note_play_handle.h"
|
||||
#include "NotePlayHandle.h"
|
||||
#include "led_checkbox.h"
|
||||
|
||||
// As of Stk 4.4 all classes and types have been moved to the namespace "stk".
|
||||
@@ -137,9 +137,9 @@ public:
|
||||
malletsInstrument( InstrumentTrack * _instrument_track );
|
||||
virtual ~malletsInstrument();
|
||||
|
||||
virtual void playNote( notePlayHandle * _n,
|
||||
virtual void playNote( NotePlayHandle * _n,
|
||||
sampleFrame * _working_buffer );
|
||||
virtual void deleteNotePluginData( notePlayHandle * _n );
|
||||
virtual void deleteNotePluginData( NotePlayHandle * _n );
|
||||
|
||||
|
||||
virtual void saveSettings( QDomDocument & _doc, QDomElement & _parent );
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
#include "engine.h"
|
||||
#include "InstrumentTrack.h"
|
||||
#include "knob.h"
|
||||
#include "note_play_handle.h"
|
||||
#include "NotePlayHandle.h"
|
||||
#include "pixmap_button.h"
|
||||
#include "SampleBuffer.h"
|
||||
#include "song_editor.h"
|
||||
@@ -295,7 +295,7 @@ QString TripleOscillator::nodeName() const
|
||||
|
||||
|
||||
|
||||
void TripleOscillator::playNote( notePlayHandle * _n,
|
||||
void TripleOscillator::playNote( NotePlayHandle * _n,
|
||||
sampleFrame * _working_buffer )
|
||||
{
|
||||
if( _n->totalFramesPlayed() == 0 || _n->m_pluginData == NULL )
|
||||
@@ -371,7 +371,7 @@ void TripleOscillator::playNote( notePlayHandle * _n,
|
||||
|
||||
|
||||
|
||||
void TripleOscillator::deleteNotePluginData( notePlayHandle * _n )
|
||||
void TripleOscillator::deleteNotePluginData( NotePlayHandle * _n )
|
||||
{
|
||||
delete static_cast<Oscillator *>( static_cast<oscPtr *>(
|
||||
_n->m_pluginData )->oscLeft );
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
|
||||
class automatableButtonGroup;
|
||||
class knob;
|
||||
class notePlayHandle;
|
||||
class NotePlayHandle;
|
||||
class pixmapButton;
|
||||
class SampleBuffer;
|
||||
|
||||
@@ -96,9 +96,9 @@ public:
|
||||
TripleOscillator( InstrumentTrack * _track );
|
||||
virtual ~TripleOscillator();
|
||||
|
||||
virtual void playNote( notePlayHandle * _n,
|
||||
virtual void playNote( NotePlayHandle * _n,
|
||||
sampleFrame * _working_buffer );
|
||||
virtual void deleteNotePluginData( notePlayHandle * _n );
|
||||
virtual void deleteNotePluginData( NotePlayHandle * _n );
|
||||
|
||||
|
||||
virtual void saveSettings( QDomDocument & _doc, QDomElement & _parent );
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
#include "vibed.h"
|
||||
#include "engine.h"
|
||||
#include "InstrumentTrack.h"
|
||||
#include "note_play_handle.h"
|
||||
#include "NotePlayHandle.h"
|
||||
#include "tooltip.h"
|
||||
#include "base64.h"
|
||||
#include "caption_menu.h"
|
||||
@@ -272,7 +272,7 @@ QString vibed::nodeName() const
|
||||
|
||||
|
||||
|
||||
void vibed::playNote( notePlayHandle * _n, sampleFrame * _working_buffer )
|
||||
void vibed::playNote( NotePlayHandle * _n, sampleFrame * _working_buffer )
|
||||
{
|
||||
if ( _n->totalFramesPlayed() == 0 || _n->m_pluginData == NULL )
|
||||
{
|
||||
@@ -330,7 +330,7 @@ void vibed::playNote( notePlayHandle * _n, sampleFrame * _working_buffer )
|
||||
|
||||
|
||||
|
||||
void vibed::deleteNotePluginData( notePlayHandle * _n )
|
||||
void vibed::deleteNotePluginData( NotePlayHandle * _n )
|
||||
{
|
||||
delete static_cast<stringContainer *>( _n->m_pluginData );
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
#include "nine_button_selector.h"
|
||||
|
||||
class vibedView;
|
||||
class notePlayHandle;
|
||||
class NotePlayHandle;
|
||||
|
||||
class vibed : public Instrument
|
||||
{
|
||||
@@ -42,9 +42,9 @@ public:
|
||||
vibed( InstrumentTrack * _instrument_track );
|
||||
virtual ~vibed();
|
||||
|
||||
virtual void playNote( notePlayHandle * _n,
|
||||
virtual void playNote( NotePlayHandle * _n,
|
||||
sampleFrame * _working_buffer );
|
||||
virtual void deleteNotePluginData( notePlayHandle * _n );
|
||||
virtual void deleteNotePluginData( NotePlayHandle * _n );
|
||||
|
||||
|
||||
virtual void saveSettings( QDomDocument & _doc, QDomElement & _parent );
|
||||
|
||||
@@ -39,7 +39,7 @@ class QPushButton;
|
||||
|
||||
class LocalZynAddSubFx;
|
||||
class ZynAddSubFxView;
|
||||
class notePlayHandle;
|
||||
class NotePlayHandle;
|
||||
class knob;
|
||||
class ledCheckBox;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user