20 #ifndef __SYNTHCLONE_ZONE_H__
21 #define __SYNTHCLONE_ZONE_H__
23 #include <QtCore/QMap>
37 class Zone:
public QObject {
142 virtual const ControlMap &
557 Zone(QObject *parent=0);
void controlValueChanged(synthclone::MIDIData control, synthclone::MIDIData value)
Emitted when a MIDI control value is changed.
void noteChanged(synthclone::MIDIData note)
Emitted when the MIDI note is changed.
virtual bool isWetSampleStale() const =0
Gets a flag indicating whether or not the wet Sample is stale.
virtual SampleTime getReleaseTime() const =0
Gets the release time.
void wetSampleChanged(const synthclone::Sample *wetSample)
Emitted when the wet Sample is changed.
void drySampleStaleChanged(bool stale)
Emitted when the dry Sample is (un)marked as stale.
virtual void setChannel(synthclone::MIDIData channel)=0
Sets the MIDI channel.
virtual void setReleaseTime(SampleTime releaseTime)=0
Sets the release time.
Status
A zone's status indicates whether or not the zone is being used within the session.
Definition: zone.h:85
void drySampleChanged(const synthclone::Sample *drySample)
Emitted when the dry Sample is changed.
virtual void setVelocity(synthclone::MIDIData velocity)=0
Sets the MIDI velocity.
virtual const Sample * getDrySample() const =0
Gets the dry Sample object, which has been retrieved from a Sampler.
virtual void setSampleTime(SampleTime sampleTime)=0
Sets the sample time.
Definition: component.h:26
void channelChanged(synthclone::MIDIData channel)
Emitted when the MIDI channel is changed.
virtual void setDrySample(synthclone::Sample *sample)=0
Sets the dry Sample.
void sampleTimeChanged(synthclone::SampleTime sampleTime)
Emitted when the sample time is changed.
virtual MIDIData getAftertouch() const =0
Gets the MIDI polyphonic aftertouch value.
void releaseTimeChanged(synthclone::SampleTime releaseTime)
Emitted when the release time is changed.
void channelPressureChanged(synthclone::MIDIData pressure)
Emitted when the MIDI channel pressure value is changed.
virtual void setAftertouch(synthclone::MIDIData aftertouch)=0
Sets the MIDI polyphonic aftertouch value.
float SampleTime
Holds a sample time (in seconds).
Definition: types.h:121
virtual MIDIData getControlValue(MIDIData control) const =0
Returns the MIDI value for a control.
virtual void setNote(synthclone::MIDIData note)=0
Sets the MIDI note.
void velocityChanged(synthclone::MIDIData velocity)
Emitted when the MIDI velocity is changed.
virtual Status getStatus() const =0
Gets the Zone object's Zone::Status.
Zone objects contains data about how Sample objects should be acquired from a Sampler.
Definition: zone.h:37
virtual void setControlValue(synthclone::MIDIData control, synthclone::MIDIData value)=0
Sets a MIDI control value.
virtual void setWetSampleStale()=0
Used to indicate that the wet Sample is now stale.
virtual SampleTime getSampleTime() const =0
Gets the sample time.
virtual MIDIData getVelocity() const =0
Gets the MIDI velocity.
quint8 MIDIData
Holds a byte of MIDI data.
Definition: types.h:59
virtual void setChannelPressure(synthclone::MIDIData pressure)=0
Sets the MIDI channel pressure value.
QMap< MIDIData, MIDIData > ControlMap
Definition: zone.h:43
Contains sample data.
Definition: sample.h:37
virtual bool isDrySampleStale() const =0
Gets a flag indicating whether or not this Zone object's dry Sample is stale.
virtual MIDIData getNote() const =0
Gets the MIDI note value.
virtual ~Zone()
Destroys a Zone object.
virtual MIDIData getChannel() const =0
Gets the MIDI channel.
void wetSampleStaleChanged(bool stale)
Emitted when the wet Sample is (un)marked as stale.
Zone(QObject *parent=0)
Constructs a new Zone object.
virtual const Sample * getWetSample() const =0
Gets the wet Sample object, which is the result of applying registered Effect objects to the dry samp...
void statusChanged(synthclone::Zone::Status status)
Emitted when a zone's status is changed.
virtual const ControlMap & getControlMap() const =0
Gets the internal control map containing all of the current control values.
virtual MIDIData getChannelPressure() const =0
Gets the MIDI channel pressure value.
void aftertouchChanged(synthclone::MIDIData aftertouch)
Emitted when the MIDI polyphonic aftertouch value is changed.