-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sound.position() never reaches sound.length() #70
Comments
have any solutions? |
not from me I'm afraid |
it should work, but might be file-specific. i realize i've taken a very long time to respond to this, but if you could provide me with an example problem file, that'd be great. |
It would also be helpful to know which class |
Hello, thanks for the reply. I was using mp3 files. I can't attach them here but I'm happy to send them over in whatever way is good for you. sound is just |
If you could possibly share them via Dropbox or something similar, that'd be fantastic. |
in order to have it working I was doing something like
|
Thanks, I was able to reproduce the issue with these files and should be able to dig into it later today or tomorrow. |
Ok, after looking into this for a bit, I've determined that the problem is that the Attempting to fix this properly is going to take a while, I think, due to the fact that Minim still contains a hacky workaround for how it deals with mp3 metadata. It may also turn out that it's unfixable (or require a patched version of mp3spi), since my attempt at a quick fix is essentially the same as what mp3spi does internally, which means it might be the case that the mp3spi library will also report an incorrect In the meantime, if all you are doing is calling |
Also, is it OK if I include the mp3 files you shared in this repo as part of a test case? |
hi, thanks for the reply. yes you can include 2 of them (I don't own the rights for the percussion track) |
- Cleaned up file loading. - Added audio playback support (and worked around ddf/Minim#70). - Parse and keep all physical frames of the song when loaded. - Show current playback position in relation to byte position, physical frame number and song position in milliseconds (these were not completely trivial to align). - Now showing a first crude visualization: Number of unused (empty) bytes per physical frame, plus a moving average of that. Some structure is evident there already. - Switched to P2D renderer because the default one is awfully slow for a few thousand lines already. This somehow breaks key repetition (at least in Processing 3.3.6) >:( - Stricter criterion for what is a header (not only "described frame is followed by 0xFF" but "there should be a valid header after the frame"). This may currently discard the last header if there is some non-frame data following it. - Fixed CRC bit interpretation.
- Cleaned up file loading. - Added audio playback support (and worked around ddf/Minim#70). - Parse and keep all physical frames of the song when loaded. - Show current playback position in relation to byte position, physical frame number and song position in milliseconds (these were not completely trivial to align). - Now showing a first crude visualization: Number of unused (empty) bytes per physical frame, plus a moving average of that. Some structure is evident there already. - Switched to P2D renderer because the default one is awfully slow for a few thousand lines already. This somehow breaks key repetition (at least in Processing 3.3.6) >:( - Stricter criterion for what is a header (not only "described frame is followed by 0xFF" but "there should be a valid header after the frame"). This may currently discard the last header if there is some non-frame data following it. - Fixed CRC bit interpretation.
Hi, I'm not sure if this is a bug of if I missed something however I see that the sound.position() value never reaches the sound.length(). Is this normal or not? I'm using Processing 3.1.1
basically I was trying to do the following but the condition will never become true
for instance these are the final values I get if I run
println(sound.position() + " - " + (sound.length()))
The text was updated successfully, but these errors were encountered: