11 #ifndef SYNTHINTERFACE_HPP_INCLUDED
12 #define SYNTHINTERFACE_HPP_INCLUDED
14 #include "../classes.hpp"
15 #include "../headers/defines.hpp"
16 #include "dspVoice.hpp"
45 samplerConfig & envelope(Flt attack, Flt release, Flt maxLength);
47 const std::string & name()
const {
return _name; }
48 const std::string & file()
const {
return _file; }
49 U8 channel ()
const {
return _channel ; }
50 U8 root ()
const {
return _rootNote ; }
51 U8 lowestNote ()
const {
return _lowestNote ; }
52 U8 highestNote ()
const {
return _highestNote; }
53 Flt attackTime ()
const {
return _attackTime ; }
54 Flt releaseTime()
const {
return _releaseTime; }
55 Flt maxLength ()
const {
return _maxLength ; }
100 int getNumVoices() {
return numVoices; }
103 implementationObject * pimpl;
105 friend class implementationObject;
107 friend class MIDI::fileImpl;
115 #endif // SYNTHINTERFACE_H_INCLUDED
Channels are used to control groups of sounds simultaniously.
A sound object is needed for every kind of sound you want to use.