schellingb/TinySoundFont
소개
단일 C/C++ 파일로 구현된 SoundFont2 신시사이저 라이브러리
개발 도구측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- +2
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalTinySoundFont
SoundFont2 synthesizer library in a single C/C++ file
Overview
TinySoundFont is a software synthesizer using SoundFont2 sound bank files.
The library is a single C header file so it is extremely simple to integrate in your C/C++ projects.
#define TSF_IMPLEMENTATION
#include "tsf.h"
...
tsf* TinySoundFont = tsf_load_filename("soundfont.sf2");
tsf_set_output(TinySoundFont, TSF_MONO, 44100, 0); //sample rate
tsf_note_on(TinySoundFont, 0, 60, 1.0f); //preset 0, middle C
short HalfSecond[22050]; //synthesize 0.5 seconds
tsf_render_short(TinySoundFont, HalfSecond, 22050, 0);
The library code is based on SFZero by Steve Folta.
Documentation
The API documentation can be found on top of the library source code.
There are also examples available which come with a sample SoundFont file and build and play sound on Win32, Win64, Linux and MacOSX with no further dependencies.
Dependencies
C standard libraries for fopen, math and malloc (can be removed by providing custom functions with #defines).
Strict No LLM / No AI Policy
No LLMs for issues. No LLMs for source contributions/patches/pull requests.
AI must not be used to generate code for contributions to this project.
Any pull request to this project will ask you to confirm that you are the author and that you are contributing your changes under the license of the project.
License
TinySoundFont is available under the MIT license.
관련 프로젝트 살펴보기
불러오는 중…