Skip to content
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

SoundFile.cue cuts off low-sample-rate sounds early #123

Closed
jleben opened this issue May 6, 2012 · 1 comment
Closed

SoundFile.cue cuts off low-sample-rate sounds early #123

jleben opened this issue May 6, 2012 · 1 comment
Labels
bug Issues that relate to unexpected/unwanted behavior. Don't use for PRs. comp: sclang sclang C++ implementation (primitives, etc.). for changes to class lib use "comp: class library"

Comments

@jleben
Copy link
Member

jleben commented May 6, 2012

[Issue migrated from SourceForge | ID: 2985060 | Submitted by 'None']
[http://sourceforge.net/support/tracker.php?aid=2985060]

SoundFile.cue cuts of low-sample-rate sounds early. I'm pretty sure this is because it calculates the sustain based on the server's sample rate instead of the sample's, but uses VDiskIn to play back at the sample's rate. So the solution is to change line 336 of SoundFile.sc from

~sustain = (~lastFrame - ~firstFrame)/(server.options.sampleRate ? 44100);
to just
~sustain = (~lastFrame - ~firstFrame)/(sampleRate ? 44100);

@jleben jleben closed this as completed May 6, 2012
@jleben
Copy link
Member Author

jleben commented May 6, 2012

[Comment migrated from SourceForge | Submitted by 'timblech']

fixed a long time ago in 11af22f

mossheim pushed a commit that referenced this issue Aug 24, 2020
Replace second front page example
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues that relate to unexpected/unwanted behavior. Don't use for PRs. comp: sclang sclang C++ implementation (primitives, etc.). for changes to class lib use "comp: class library"
Projects
None yet
Development

No branches or pull requests

1 participant