Closed kina94 closed 5 months ago
You could create a Sampler for each note, or use Player or ToneBufferSource instead (but if you do you'll have to calculate the playback rate to ensure that your samples playback at the right pitch (Tone.intervalToFrequencyRatio
). Then you could connect each of those samples through an AmplitudeEnvelope and trigger it on each note of Tone.Part
Hello, I want to apply an Amplitude Envelope to each note individually, but it seems that using a shared sampler causes the released sound from the previous note amplified when the next note is triggered. Creating a sampler instance for each note individually would require too much resource to resolve this issue. Is there a solution to this? or what's wrong with my code?
this is part of my code.