LoopWaveWidget

Undocumented in source.

Constructors

this
this(Mixer mixer)
Undocumented in source.

Members

Functions

drawExtraArray
void drawExtraArray(DrawBuf buf, Rect rc, float[] data, float minValue, float maxValue, string title, uint bgColor, uint foreColor)
Undocumented in source. Be warned that the author may not have intended to support it.
drawExtraViews
void drawExtraViews(DrawBuf buf)

override to allow extra views

drawFft
void drawFft(DrawBuf buf, PeriodInfo period, Rect rc)
Undocumented in source. Be warned that the author may not have intended to support it.
drawLsp
void drawLsp(DrawBuf buf, PeriodInfo[] periods, int periodIndex, Rect rc)
Undocumented in source. Be warned that the author may not have intended to support it.
drawLspPart
void drawLspPart(DrawBuf buf, float[] lsp, Rect rc)
Undocumented in source. Be warned that the author may not have intended to support it.
getDisplayData
float[] getDisplayData()

get data to display - override to show some other data than wave (e.g. to show excitation)

getExtraViewsHeight
int getExtraViewsHeight(int parentHeight)

override to allow extra views

layoutExtraViews
void layoutExtraViews(Rect rc)

override to allow extra views

Properties

file
WaveFile file [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

LPC_HEIGHT
int LPC_HEIGHT;
Undocumented in source.
_ampRect
Rect _ampRect;
Undocumented in source.
_fftRect
Rect _fftRect;
Undocumented in source.
_freqRect
Rect _freqRect;
Undocumented in source.
_hasAmps
bool _hasAmps;
Undocumented in source.
_hasFft
bool _hasFft;
Undocumented in source.
_hasFreqs
bool _hasFreqs;
Undocumented in source.
_maxAmp
float _maxAmp;
Undocumented in source.
_maxFftAmp
float _maxFftAmp;
Undocumented in source.
_maxFreq
float _maxFreq;
Undocumented in source.
_minAmp
float _minAmp;
Undocumented in source.
_minFreq
float _minFreq;
Undocumented in source.

Inherited Members

From WaveFileWidget

_mixer
Mixer _mixer;
Undocumented in source.
_player
Mp3Player _player;
Undocumented in source.
_file
WaveFile _file;
Undocumented in source.
_hScroll
ScrollBar _hScroll;
Undocumented in source.
_hruler
HRuler _hruler;
Undocumented in source.
_clientRect
Rect _clientRect;
Undocumented in source.
_hscale
int _hscale;
Undocumented in source.
_vscale
float _vscale;
Undocumented in source.
_scrollPos
int _scrollPos;
Undocumented in source.
_cursorPos
int _cursorPos;
Undocumented in source.
_selStart
int _selStart;
Undocumented in source.
_selEnd
int _selEnd;
Undocumented in source.
_zoomCache
MinMax[] _zoomCache;
Undocumented in source.
_zoomCacheScale
int _zoomCacheScale;
Undocumented in source.
_playTimer
ulong _playTimer;
Undocumented in source.
~this
~this()
Undocumented in source.
file
WaveFile file [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
file
WaveFile file [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
player
Mp3Player player [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
getDisplayData
float[] getDisplayData()

get data to display - override to show some other data than wave (e.g. to show excitation)

getExtraViewsHeight
int getExtraViewsHeight(int parentHeight)

override to allow extra views

layoutExtraViews
void layoutExtraViews(Rect rc)

override to allow extra views

drawExtraViews
void drawExtraViews(DrawBuf buf)

override to allow extra views

updateZoomCache
void updateZoomCache()
Undocumented in source. Be warned that the author may not have intended to support it.
updateView
void updateView()
Undocumented in source. Be warned that the author may not have intended to support it.
zoomFull
void zoomFull()
Undocumented in source. Be warned that the author may not have intended to support it.
visibleYRange
MinMax visibleYRange()
Undocumented in source. Be warned that the author may not have intended to support it.
onKeyEvent
bool onKeyEvent(KeyEvent event)

process key event, return true if event is processed.

openSampleFile
void openSampleFile(string filename)
Undocumented in source. Be warned that the author may not have intended to support it.
openSampleFile
void openSampleFile()
Undocumented in source. Be warned that the author may not have intended to support it.
handleAction
bool handleAction(Action a)

override to handle specific actions

getSelectionUpsampled
WaveFile getSelectionUpsampled()
Undocumented in source. Be warned that the author may not have intended to support it.
getSelectionWave
WaveFile getSelectionWave()
Undocumented in source. Be warned that the author may not have intended to support it.
ensureCursorVisible
void ensureCursorVisible()
Undocumented in source. Be warned that the author may not have intended to support it.
getPlayPosition
void getPlayPosition()

player position to screen

setPlayPosition
void setPlayPosition()

set cursor position to player position

onTimer
bool onTimer(ulong id)
Undocumented in source. Be warned that the author may not have intended to support it.
limitPosition
void limitPosition(int position)
Undocumented in source. Be warned that the author may not have intended to support it.
updateScrollBar
void updateScrollBar()
Undocumented in source. Be warned that the author may not have intended to support it.
onScrollEvent
bool onScrollEvent(AbstractSlider source, ScrollEvent event)

handle scroll event

measure
void measure(int parentWidth, int parentHeight)

Measure widget according to desired width and height constraints. (Step 1 of two phase layout).

layout
void layout(Rect rc)

Set widget rectangle to specified value and layout widget contents. (Step 2 of two phase layout).

getDisplayValuesNoCache
MinMax getDisplayValuesNoCache(int offset)
Undocumented in source. Be warned that the author may not have intended to support it.
getDisplayValues
MinMax getDisplayValues(int offset)
Undocumented in source. Be warned that the author may not have intended to support it.
getDisplayPos
bool getDisplayPos(int offset, int y0, int y1)
Undocumented in source. Be warned that the author may not have intended to support it.
setCursorPos
void setCursorPos(int x)
Undocumented in source. Be warned that the author may not have intended to support it.
updateSelection
void updateSelection(int x)
Undocumented in source. Be warned that the author may not have intended to support it.
updateHScale
void updateHScale(int newScale, int preserveX)
Undocumented in source. Be warned that the author may not have intended to support it.
onMouseEvent
bool onMouseEvent(MouseEvent event)

process mouse event; return true if event is processed by widget.

onDraw
void onDraw(DrawBuf buf)

Draw widget at its position to buffer

Meta