OpenSiv3D  v0.6.5
C++20 framework for creative coding
s3d::SoundFont Class Reference

サウンドフォント More...

#include <SoundFont.hpp>

Public Member Functions

SIV3D_NODISCARD_CXX20 SoundFont ()=default
 
SIV3D_NODISCARD_CXX20 SoundFont (FilePathView path)
 
SIV3D_NODISCARD_CXX20 SoundFont (IReader &&reader)
 
bool open (FilePathView path)
 
bool open (IReader &&reader)
 
void close ()
 
bool isOpen () const noexcept
 
 operator bool () const noexcept
 
Wave render (GMInstrument instrument, uint8 key, const Duration &noteOn, const Duration &noteOff=SecondsF{ 1.0 }, double velocity=1.0, Arg::sampleRate_< uint32 > sampleRate=Wave::DefaultSampleRate)
 
Wave renderMIDI (FilePathView path, Arg::sampleRate_< uint32 > sampleRate=Wave::DefaultSampleRate, const Duration &tail=SecondsF{ 0.5 })
 
Wave renderMIDI (FilePathView path, const Duration &tail, Arg::sampleRate_< uint32 > sampleRate=Wave::DefaultSampleRate)
 
Wave renderMIDI (FilePathView path, std::array< Array< MIDINote >, 16 > &midiScore, Arg::sampleRate_< uint32 > sampleRate=Wave::DefaultSampleRate, const Duration &tail=SecondsF{ 0.5 })
 
Wave renderMIDI (FilePathView path, std::array< Array< MIDINote >, 16 > &midiScore, const Duration &tail, Arg::sampleRate_< uint32 > sampleRate=Wave::DefaultSampleRate)
 
Wave renderMIDI (IReader &reader, Arg::sampleRate_< uint32 > sampleRate=Wave::DefaultSampleRate, const Duration &tail=SecondsF{ 0.5 })
 
Wave renderMIDI (IReader &reader, const Duration &tail, Arg::sampleRate_< uint32 > sampleRate=Wave::DefaultSampleRate)
 
Wave renderMIDI (IReader &reader, std::array< Array< MIDINote >, 16 > &midiScore, Arg::sampleRate_< uint32 > sampleRate=Wave::DefaultSampleRate, const Duration &tail=SecondsF{ 0.5 })
 
Wave renderMIDI (IReader &reader, std::array< Array< MIDINote >, 16 > &midiScore, const Duration &tail, Arg::sampleRate_< uint32 > sampleRate=Wave::DefaultSampleRate)
 

Detailed Description

サウンドフォント

Constructor & Destructor Documentation

◆ SoundFont() [1/3]

SIV3D_NODISCARD_CXX20 s3d::SoundFont::SoundFont ( )
default

◆ SoundFont() [2/3]

SIV3D_NODISCARD_CXX20 s3d::SoundFont::SoundFont ( FilePathView  path)
explicit

◆ SoundFont() [3/3]

SIV3D_NODISCARD_CXX20 s3d::SoundFont::SoundFont ( IReader &&  reader)
explicit

Member Function Documentation

◆ close()

void s3d::SoundFont::close ( )

◆ isOpen()

bool s3d::SoundFont::isOpen ( ) const
noexcept

◆ open() [1/2]

bool s3d::SoundFont::open ( FilePathView  path)

◆ open() [2/2]

bool s3d::SoundFont::open ( IReader &&  reader)

◆ operator bool()

s3d::SoundFont::operator bool ( ) const
explicitnoexcept

◆ render()

Wave s3d::SoundFont::render ( GMInstrument  instrument,
uint8  key,
const Duration noteOn,
const Duration noteOff = SecondsF{ 1.0 },
double  velocity = 1.0,
Arg::sampleRate_< uint32 sampleRate = Wave::DefaultSampleRate 
)

◆ renderMIDI() [1/8]

Wave s3d::SoundFont::renderMIDI ( FilePathView  path,
Arg::sampleRate_< uint32 sampleRate = Wave::DefaultSampleRate,
const Duration tail = SecondsF{ 0.5 } 
)

◆ renderMIDI() [2/8]

Wave s3d::SoundFont::renderMIDI ( FilePathView  path,
const Duration tail,
Arg::sampleRate_< uint32 sampleRate = Wave::DefaultSampleRate 
)

◆ renderMIDI() [3/8]

Wave s3d::SoundFont::renderMIDI ( FilePathView  path,
std::array< Array< MIDINote >, 16 > &  midiScore,
Arg::sampleRate_< uint32 sampleRate = Wave::DefaultSampleRate,
const Duration tail = SecondsF{ 0.5 } 
)

◆ renderMIDI() [4/8]

Wave s3d::SoundFont::renderMIDI ( FilePathView  path,
std::array< Array< MIDINote >, 16 > &  midiScore,
const Duration tail,
Arg::sampleRate_< uint32 sampleRate = Wave::DefaultSampleRate 
)

◆ renderMIDI() [5/8]

Wave s3d::SoundFont::renderMIDI ( IReader reader,
Arg::sampleRate_< uint32 sampleRate = Wave::DefaultSampleRate,
const Duration tail = SecondsF{ 0.5 } 
)

◆ renderMIDI() [6/8]

Wave s3d::SoundFont::renderMIDI ( IReader reader,
const Duration tail,
Arg::sampleRate_< uint32 sampleRate = Wave::DefaultSampleRate 
)

◆ renderMIDI() [7/8]

Wave s3d::SoundFont::renderMIDI ( IReader reader,
std::array< Array< MIDINote >, 16 > &  midiScore,
Arg::sampleRate_< uint32 sampleRate = Wave::DefaultSampleRate,
const Duration tail = SecondsF{ 0.5 } 
)

◆ renderMIDI() [8/8]

Wave s3d::SoundFont::renderMIDI ( IReader reader,
std::array< Array< MIDINote >, 16 > &  midiScore,
const Duration tail,
Arg::sampleRate_< uint32 sampleRate = Wave::DefaultSampleRate 
)

The documentation for this class was generated from the following file: