Skip to content

Other real timbre #8

Description

@timaschew

I saw this comment https://github.com/PencilCode/musical.js/blob/master/musical.js#L1655-L1672 that the piano harmonics are used from a google project.

I tried to use the 32 harmonics of another instrument, like the guitar. Even if use all the 2000 harmonics, it always sound like a piano.

I found a library where a really nice guitar sound is created, you can here it here:
https://rawgit.com/timaschew/guitar-synth/master/example/index.html

I fixed an issue and removed some code, you can see the code here: https://github.com/timaschew/guitar-synth/tree/master/js
I think the main part is done here: https://github.com/timaschew/guitar-synth/blob/master/js/PluckedString.js

But the playing is done completely different than in musical.js and other webaudio libraries that I know.
It doesn't use any ac.createBuffer() or ac.createPeriodicWave
Instead it's done with this.node = this.context.createScriptProcessor(1024, 1, 1);

It would be nice if the guitar harmonics could be ported to musical.js somehow.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions