Comments (5)
Should be fixed by 711af96
from gbsplay.
Thanks for this !!
It's better but it's not working good. All the files are 1ko (the very first notes).
And i'm not sure about this, but they may not have the correct length and i don't hear the battery channel (4).
from gbsplay.
with the help of nadenislamarre we've made an improvement.
It's about gbs.c from line 116 to 122:
//if (gbs->silence_start &&
// (gbs->ticks - gbs->silence_start) / GBHW_CLOCK >= gbs->silence_timeout) {
//if (gbs->subsong_info[gbs->subsong].len == 0) {
// gbs->subsong_info[gbs->subsong].len = gbs->ticks * GBS_LEN_DIV / GBHW_CLOCK;
//}
//return gbs_nextsubsong(gbs);
//}
then this command work: ~/dev/gbsplay$ ./gbsplay -o midi ~/Téléchargements//Smurfs.gbs
and return all the midi files with the correct lenght.
But there still a problem with the channels, the velocity, and others things that i don't know the english music word to explain well.
But, the music is exactly the good one with this command:
~/dev/gbsplay$ ./gbsplay -o alsa ~/Téléchargements//Smurfs.gbs
Why so much differences ? Specially the channel one.
from gbsplay.
I've never used the midi output plugin myself, but from the code it looks like it ignores channel 4, so that part is expected.
from gbsplay.
Not using channel 4 makes kind of sense: In a MIDI drum track (normally on channel 10), every note stands for one drum sound (35 = bass drum 1, 39 = hand clap, 46 = open hi-hat, etc.).
It's not so easy to calculate the current drum sound from current the noise and envelope on channel 4.
If somebody wanted to do some real cool programming, a conversion could propably be built, but I wouldn't even want to try…
from gbsplay.
Related Issues (20)
- Allow .gbs code to switch to more ROM banks HOT 8
- How to build on Windows? HOT 2
- Vibrato effect messing up note detection HOT 5
- auto-detect song length (detect emulation state looping) HOT 11
- dump sound as WAV file HOT 5
- verbose build HOT 4
- 'start_at_subsong' option not honored HOT 2
- some files play only silence
- add new gbsplay features to xgbsplay
- add a discussion tab to this repo please HOT 1
- support for dumping into the VGM file format HOT 1
- cycles should be unsigned, that remove huge delays when overflow happens, which is quite often. HOT 8
- oss is not known output plugin error HOT 1
- No sound when playing files with VBlank ugetab
- Unsupported VGZ lead to memory released twice
- Bug in TAC counter rate calculation HOT 1
- muting channels in midi output HOT 13
- MIDI output slowly gets out of sync if written to separate tracks HOT 6
- channel isolated wav output can be out-of-sync HOT 1
- Typo in plugout_midi ? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gbsplay.