☰Read-only archive⌕
Looking for help with Bokeh?

This is a read-only archive. Ask questions and join the conversation on GitHub.

Visit Community Support on GitHub →
Archived discussions · Captured October 28, 2026

Howto: play audio and dynamically change src using django

Showcase
gmerritt123
gmerritt123

This is cool but I have no idea what the heck is happening :sweat_smile: … The audio seems to be playing different tones even though I’m not touching the sliders/changing things? Can you elaborate on how this works?

⌁   Link to post
LaurentBerger
LaurentBerger

you must set frequency=cy and amplitude
image

and wait.
When you move slider wav data are changing then data played stop .

Click in the slider and do not drag it

I changed I use ,syncable=True in slider constructor it seems better

⌁   Link to post
Bryan
Bryan

It became a bit more evident what was going on when I did an x-zoom out:

Maybe the x-range could be decreased so the waveform can be seen in more detail?

Also if you respond to value_throttled on the sliders (instead of value), then you can have it only update when a slider move “finishes” and not all the intermediate values.

This is very cool!

⌁   Link to post
gmerritt123
gmerritt123

Yes! I was going ham on the sliders and listening to changing tones… as the sounds tried to catch up with my actions → was very confused as to what was happening. Value throttled is wayyy better :smiley:

⌁   Link to post

End of archived discussion · Replies are disabled