derselbst / libsf2 Goto Github PK
View Code? Open in Web Editor NEWa C++ library for SoundFont Format 2 from GBAMusRiper by Bregalad
Home Page: http://www.romhacking.net/utilities/881/
License: MIT License
a C++ library for SoundFont Format 2 from GBAMusRiper by Bregalad
Home Page: http://www.romhacking.net/utilities/881/
License: MIT License
I noticed that your code is a libsf2 writer. Do you have a parser too? Thanks.
I am hoping to be able to compile this lib to webassembly for a rewrite of hydro2sf2. I figure the first step is to get it compiled, normally.
I get this when I run make
:
g++ -std=gnu++11 -Wall -fdata-sections -ffunction-sections -Os -fmax-errors=5 -c sf2.cpp -o sf2.a
In file included from sf2.cpp:29:
sf2_chunks.hpp:822:17: error: friend declaration of ‘void uint16_t::add_new_preset_modulator(SFModulator, SFModulator, uint16_t, SFGenerator, SFTransform)’ specifies default arguments and isn’t a definition [-fpermissive]
822 | friend void SF2::add_new_preset_modulator(SFModulator srcMod, SFModulator amtMod, uint16_t modAmount, SFGenerator destGen, SFTransform sfModTransOper=SFTransform::linear);
| ^~~
sf2_chunks.hpp:827:17: error: friend declaration of ‘void uint16_t::add_new_inst_modulator(SFModulator, SFModulator, uint16_t, SFGenerator, SFTransform)’ specifies default arguments and isn’t a definition [-fpermissive]
827 | friend void SF2::add_new_inst_modulator(SFModulator srcMod, SFModulator amtMod, uint16_t modAmount, SFGenerator destGen, SFTransform sfModTransOper=SFTransform::linear);
| ^~~
make: *** [Makefile:19: sf2.o] Error 1
OS: LInux Manjaro 19.0.2
g++: (Arch Linux 9.3.0-1) 9.3.0
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.