[x3d-public] Sound v4 > suggestions

GPU Group gpugroup at gmail.com
Fri Feb 10 06:42:56 PST 2023


1) BiQuadFilter - keep gain field - web audio api has a gain field for
BiquadFilter

2) DynamicsCompressor make filed type for attack and release the same (both
in seconds)

3) ChannelMerger - add MF (int,int) tuple for (outputChannel, inputIndex)
so inputs can be creatively assigned to output channels. I don't have it
working in freewrl, but am trying

MFInt32 inputIndex

MFInt32 outputChannel

Not sure what node ChannelSelector should do or how to implement (web audio
api has no channelSelector node). With the above tuple list, a single tuple
could represent a single channel selection in ChannelMerger, making
ChannelSelector un-necessary

4) Convolution - allow URL loading of buffer. PCM - one example created
white noise, which is a mathematical function Math.rand(..) and so being
able to directly create raw PCM data useful. But most examples load .wav
files via URL

Haven't tried in freewrl, but one idea is to add an AudioBuffer node like
web audio api has. With rawPCM and URL fields, so can load either way. And
then change buffer field in Convolution and BufferAudioSource can be
changed from MFFloat to SFNode.


-Doug
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20230210/124de0a7/attachment-0001.html>


More information about the x3d-public mailing list