Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

[Bug]: SamplerPlugin allocates SampledNotes

Open
#223 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
30/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
cpp

Research direction

The issue names only SamplerPlugin and the SampledNotes it allocates while notes play; no file paths, test or stacktrace are given. Start by locating the SamplerPlugin source in the tracktion_engine module and finding where SampledNotes are created per block during rendering, then check whether a preallocated Array or vector can hold them instead. Done looks like playing notes through SamplerPlugin with no new SampledNote allocations on the audio thread, with storage reserved up front.

Written by the indexing model from the issue text.

Description

Detailed steps on how to reproduce the bug

Play the SamplerPlugin with some notes.

What is the expected behaviour?

No allocations. These should probably just be stored in a normal Array or vector.

Unit test to reproduce the error?

No response

Operating systems

Windows, macOS, Linux, iOS, Android

What versions of the operating systems?

All

Architectures

x86_64, ARM

Stacktrace

No response

Plug-in formats (if applicable)

No response

Plug-in host applications (DAWs) (if applicable)

No response

Testing on the develop branch

The bug is present on the develop branch

Code of Conduct
  • I agree to follow the Code of Conduct
Dominant language
C++
Stars
1.5k
Forks
222
Avg merge
15h 44m
Merged PRs (30d)
33

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Tracktion/tracktion_engine

All issues in Tracktion/tracktion_engine

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.