Csound Csound-dev Csound-tekno Search About

[Csnd] mp3 playback with variable playback speed?

Date2026-01-01 17:29
FromIain Duncan
Subject[Csnd] mp3 playback with variable playback speed?
Hi colleagues, I'm hoping to avoid some downloading in a web app by using mp3s for samples instead of wav, but in the manual the example for mp3in doesn't appear to show the ability to alter pitch. I'm just doing playback of one shot and want a multi-sampler where I repeat something like every three times (i.e., same sample used for C0-Eb0)

I assume I am missing something obvious, any tips much appreciated!
iain
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2026-01-01 17:43
FromVictor Lazzarini <000010b17ddd988e-dmarc-request@LISTSERV.HEANET.IE>
SubjectRe: [Csnd] [EXTERNAL] [Csnd] mp3 playback with variable playback speed?
With libsndfile support for mp3, diskin does the job. For pitch shift without time scaling, try filescal. There is also mp3scal, which does not depend on libsndfile.

Prof. Victor Lazzarini
Maynooth University
Ireland

On 1 Jan 2026, at 17:29, Iain Duncan <iainduncanlists@gmail.com> wrote:



*Warning*

This email originated from outside of Maynooth University's Mail System. Do not reply, click links or open attachments unless you recognise the sender and know the content is safe.

Hi colleagues, I'm hoping to avoid some downloading in a web app by using mp3s for samples instead of wav, but in the manual the example for mp3in doesn't appear to show the ability to alter pitch. I'm just doing playback of one shot and want a multi-sampler where I repeat something like every three times (i.e., same sample used for C0-Eb0)

I assume I am missing something obvious, any tips much appreciated!
iain
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2026-01-02 01:35
FromIain Duncan
SubjectRe: [Csnd] [EXTERNAL] [Csnd] mp3 playback with variable playback speed?
Excellent, thanks Victor. I'm not clear on one thing, does the vanilla-WASM Csound.js allow me to use libsndfile deps or will I need to stick to things that do not require that?

thanks!

On Thu, Jan 1, 2026 at 9:43 AM Victor Lazzarini <000010b17ddd988e-dmarc-request@listserv.heanet.ie> wrote:
With libsndfile support for mp3, diskin does the job. For pitch shift without time scaling, try filescal. There is also mp3scal, which does not depend on libsndfile.

Prof. Victor Lazzarini
Maynooth University
Ireland

On 1 Jan 2026, at 17:29, Iain Duncan <iainduncanlists@gmail.com> wrote:



*Warning*

This email originated from outside of Maynooth University's Mail System. Do not reply, click links or open attachments unless you recognise the sender and know the content is safe.

Hi colleagues, I'm hoping to avoid some downloading in a web app by using mp3s for samples instead of wav, but in the manual the example for mp3in doesn't appear to show the ability to alter pitch. I'm just doing playback of one shot and want a multi-sampler where I repeat something like every three times (i.e., same sample used for C0-Eb0)

I assume I am missing something obvious, any tips much appreciated!
iain
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2026-01-02 02:39
FromIain Duncan
SubjectRe: [Csnd] [EXTERNAL] [Csnd] mp3 playback with variable playback speed?
Nevermind, I see that libsndfile is appearing in my console output!

iain

On Thu, Jan 1, 2026 at 5:35 PM Iain Duncan <iainduncanlists@gmail.com> wrote:
Excellent, thanks Victor. I'm not clear on one thing, does the vanilla-WASM Csound.js allow me to use libsndfile deps or will I need to stick to things that do not require that?

thanks!

On Thu, Jan 1, 2026 at 9:43 AM Victor Lazzarini <000010b17ddd988e-dmarc-request@listserv.heanet.ie> wrote:
With libsndfile support for mp3, diskin does the job. For pitch shift without time scaling, try filescal. There is also mp3scal, which does not depend on libsndfile.

Prof. Victor Lazzarini
Maynooth University
Ireland

On 1 Jan 2026, at 17:29, Iain Duncan <iainduncanlists@gmail.com> wrote:



*Warning*

This email originated from outside of Maynooth University's Mail System. Do not reply, click links or open attachments unless you recognise the sender and know the content is safe.

Hi colleagues, I'm hoping to avoid some downloading in a web app by using mp3s for samples instead of wav, but in the manual the example for mp3in doesn't appear to show the ability to alter pitch. I'm just doing playback of one shot and want a multi-sampler where I repeat something like every three times (i.e., same sample used for C0-Eb0)

I assume I am missing something obvious, any tips much appreciated!
iain
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here