homy-game-studio / hgs-unity-tone Goto Github PK
View Code? Open in Web Editor NEWSimple package to play musical notes
License: MIT License
Simple package to play musical notes
License: MIT License
Expected
ToneSequencer.onInstrumentChange.AddListener(HandleOnInstrumentChange)
void HandleOnInstrumentChange(int chanel, int instrumentNumber){
// logic here
}
ToneSynth.onInstrumentChange.AddListener(HandleOnInstrumentChange)
void HandleOnInstrumentChange(int chanel, int instrumentNumber){
// logic here
}
expected:
ToneSequencer.OnNoteAttack.AddListener(HandleOnNoteAttack);
ToneSequencer.OnNoteRelease.AddListener(HandleOnNoteRelease);
void HandleOnNoteAttack(int chanel, ToneNote note){
// logic here
}
void HandleOnNoteRelease(int chanel, ToneNote note){
// logic here
}
ToneSynth.OnNoteAttack.AddListener(HandleOnNoteAttack);
ToneSynth.OnNoteRelease.AddListener(HandleOnNoteRelease);
void HandleOnNoteAttack(int chanel, ToneNote note){
// logic here
}
void HandleOnNoteRelease(int chanel, ToneNote note){
// logic here
}
Extremely slow audio. There are also too many memory allocations, possible bug during MeltySynth
conversion to cpp.
Hi, thank you for port this to unity
I want to ask about the SoundFont
MeltySynth mentioned this code
// Create the synthesizer. var sampleRate = 44100; var synthesizer = new Synthesizer("TimGM6mb.sf2", sampleRate);
I haven't tried MeltySynth or your library
but is it possible to change SoundFont runtime, and choose the instrument just like you did on the keyboard demo?
I would like to clone Punk o Matic game but using midi
Add new musics without copyright
MeltySynth
uses DotNet 6
, avaliable only in >Unity 2021
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.