during the pattern playback, yes, there are notes in the pattern data. but there is also a lot of silence, which is when i try to trigger the sample. im just trying to replicate the impulsetracker/screamtracker3 behaviour, which is: 1. even if playback is on 2. and you are editing the pattern 3. entering a note to the pattern data will 4. trigger the instrument.
so you dont have to wait until the playhead hits that note, to hear the note.
Thanks for confirming trigger_instrument_note_on(1, 1, 48, 1.0) works during playback. Following up with a sharper repro — the API actually silences under a very specific combined state:
Repro (clean, in the Scripting Terminal — no tool involved):
(Instrument 2 has a sample mapped at C-4; track 1 is a sequencer track.)
Transport state
Edit mode
Result
Stopped
Off
✓ plays
Stopped
On
✓ plays
Playing
Off
✓ plays
Playing
On
✗ silent
Only the last combination silences the call. Either condition alone is fine — it’s specifically playback ON + edit mode ON together that drops the audio.
This is the exact state the “Trigger Sample on Pattern Input During Record” feature needs to work in, because that’s record mode by definition: you’re playing the song, edit mode is on so notes get recorded, and we want the user to hear what they’re typing into the pattern.
Two questions:
Is this intentional — some kind of input-routing arbitration where, with edit mode on, Renoise routes preview audio elsewhere or suppresses it to avoid double-triggers from external MIDI?
If intentional, is there a way to opt out from a tool, or a different API we should use for previewing notes during record-while-playing?