JoepVanlier / Hackey-Trackey

A LUA tracker plugin for REAPER 5.x and up. Designed to mimick the pattern editor in Jeskola Buzz.
MIT License
130 stars 10 forks source link

Play single line (as Enter do in Renoise) #71

Closed dusanmsk closed 3 years ago

dusanmsk commented 5 years ago

Hello,

could it be possible to add feature that pressing some (for example "Enter") key will play all notes on selected row? Or better - switch tracker to "audible" mode so arrow keys up/down will also play selected/all columns on current row? It is meant as some stepper "scrub" mode.

Tried it myself but failed to understand all the hackeytrackey code in depth. Maybe some defer method that will do play-wait-stop should be ok for this.

Thx

JoepVanlier commented 4 years ago

I've added play line under shift + space.

dusanmsk commented 4 years ago

But this is not exactly the same. When I press SHIFT+SPACE, song start playback from cursos position. When I press space again, playback is stopped but cursor is moved to last played position.

I meant not to use reaper command to start playback, but instead to send midi notes on selected pattern line to virtual midi output whenever that line is changed by pressing cursor up/down.

Something like:

It should be very useful during making fast riffs, you only need to enable this function temporary and navigate up/down in pattern and you instantly hear (in speed you are pressing arrows) what's exactly there.

I don't remember which tracker has this function but I am pretty sure I used it a lot 25 years ago.

JoepVanlier commented 3 years ago

Hey, sorry for the very belated response (more than a year D:).

How does this work for you? I'll wait with merging until I know it fits the bill :) https://raw.githubusercontent.com/JoepVanlier/Hackey-Trackey/scrub/Tracker/tracker.lua

PR here: https://github.com/JoepVanlier/Hackey-Trackey/pull/77

Enable the toggle "recording acts as scrub mode". This will set up the virtual keyboard such that you hear the lines as you pass over them.

JoepVanlier commented 3 years ago

Merged it as part of 2.82 https://github.com/JoepVanlier/Hackey-Trackey/commit/508ff25188091aeb1ae9d64d81cb7ff5de26e27c