lmms
Cross-platform music production software
Toggle main menu visibility
Loading...
Searching...
No Matches
plugins
ZynAddSubFx
LocalZynAddSubFx.h
Go to the documentation of this file.
1
/*
2
* LocalZynAddSubFx.h - local implementation of ZynAddSubFx plugin
3
*
4
* Copyright (c) 2009-2014 Tobias Doerffel <tobydox/at/users.sourceforge.net>
5
*
6
* This file is part of LMMS - https://lmms.io
7
*
8
* This program is free software; you can redistribute it and/or
9
* modify it under the terms of the GNU General Public
10
* License as published by the Free Software Foundation; either
11
* version 2 of the License, or (at your option) any later version.
12
*
13
* This program is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
* General Public License for more details.
17
*
18
* You should have received a copy of the GNU General Public
19
* License along with this program (see COPYING); if not, write to the
20
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21
* Boston, MA 02110-1301 USA.
22
*
23
*/
24
25
#ifndef LOCAL_ZYNADDSUBFX_H
26
#define LOCAL_ZYNADDSUBFX_H
27
28
#include <array>
29
30
#include "
Note.h
"
31
32
class
Master;
33
class
NulEngine;
34
35
namespace
lmms
36
{
37
38
class
MidiEvent
;
39
class
SampleFrame
;
40
41
42
class
LocalZynAddSubFx
43
{
44
45
public
:
46
LocalZynAddSubFx
();
47
~LocalZynAddSubFx
();
48
49
void
initConfig
();
50
51
void
setSampleRate
(
int
_sampleRate );
52
void
setBufferSize
(
int
_bufferSize );
53
54
void
saveXML
(
const
std::string & _filename );
55
void
loadXML
(
const
std::string & _filename );
56
57
void
loadPreset
(
const
std::string & _filename,
int
_part = 0 );
58
59
void
setPresetDir
(
const
std::string & _dir );
60
void
setLmmsWorkingDir
(
const
std::string & _dir );
61
62
void
setPitchWheelBendRange
(
int
semitones );
63
64
void
processMidiEvent
(
const
MidiEvent
& event );
65
66
void
processAudio
(
SampleFrame
* _out );
67
68
inline
Master *
master
()
69
{
70
return
m_master
;
71
}
72
73
74
protected
:
75
static
int
s_instanceCount
;
76
77
std::string
m_presetsDir
;
78
79
std::array<int, NumKeys>
m_runningNotes
= {};
80
Master *
m_master
;
81
NulEngine*
m_ioEngine
;
82
83
} ;
84
85
86
}
// namespace lmms
87
88
#endif
Note.h
lmms::LocalZynAddSubFx::m_presetsDir
std::string m_presetsDir
Definition
LocalZynAddSubFx.h:77
lmms::LocalZynAddSubFx::setLmmsWorkingDir
void setLmmsWorkingDir(const std::string &_dir)
Definition
LocalZynAddSubFx.cpp:203
lmms::LocalZynAddSubFx::loadPreset
void loadPreset(const std::string &_filename, int _part=0)
Definition
LocalZynAddSubFx.cpp:165
lmms::LocalZynAddSubFx::s_instanceCount
static int s_instanceCount
Definition
LocalZynAddSubFx.h:75
lmms::LocalZynAddSubFx::setBufferSize
void setBufferSize(int _bufferSize)
Definition
LocalZynAddSubFx.cpp:122
lmms::LocalZynAddSubFx::m_ioEngine
NulEngine * m_ioEngine
Definition
LocalZynAddSubFx.h:81
lmms::LocalZynAddSubFx::processMidiEvent
void processMidiEvent(const MidiEvent &event)
Definition
LocalZynAddSubFx.cpp:226
lmms::LocalZynAddSubFx::m_master
Master * m_master
Definition
LocalZynAddSubFx.h:80
lmms::LocalZynAddSubFx::saveXML
void saveXML(const std::string &_filename)
Definition
LocalZynAddSubFx.cpp:131
lmms::LocalZynAddSubFx::LocalZynAddSubFx
LocalZynAddSubFx()
Definition
LocalZynAddSubFx.cpp:57
lmms::LocalZynAddSubFx::setPitchWheelBendRange
void setPitchWheelBendRange(int semitones)
Definition
LocalZynAddSubFx.cpp:216
lmms::LocalZynAddSubFx::setSampleRate
void setSampleRate(int _sampleRate)
Definition
LocalZynAddSubFx.cpp:113
lmms::LocalZynAddSubFx::loadXML
void loadXML(const std::string &_filename)
Definition
LocalZynAddSubFx.cpp:141
lmms::LocalZynAddSubFx::m_runningNotes
std::array< int, NumKeys > m_runningNotes
Definition
LocalZynAddSubFx.h:79
lmms::LocalZynAddSubFx::setPresetDir
void setPresetDir(const std::string &_dir)
Definition
LocalZynAddSubFx.cpp:183
lmms::LocalZynAddSubFx::initConfig
void initConfig()
Definition
LocalZynAddSubFx.cpp:103
lmms::LocalZynAddSubFx::master
Master * master()
Definition
LocalZynAddSubFx.h:68
lmms::LocalZynAddSubFx::processAudio
void processAudio(SampleFrame *_out)
Definition
LocalZynAddSubFx.cpp:269
lmms::MidiEvent
Definition
MidiEvent.h:37
lmms::SampleFrame
Definition
SampleFrame.h:41
lmms
Definition
RemotePluginBase.cpp:34
Generated on
for lmms by
1.18.0