You could probably get more colors out of strings if you were to run Renoise under a color terminal and output (debugging) strings directly to stdout using ANSI escape sequences:
io.stdout:write("\27[33;1mThis is yellow!\n") io.stdout:write("\27[31;1mThis is red!\n") io.stdout:write("\27[35;1mThis is magenta!\n") io.stdout:write("\27[34;1mThis is blue!\n")
Thinking more Linux here though, don’t know about Windows
Good little piano ‘button’ keyboard btw Raul
Thanks 4Tey!I am using windows at all times and linux for boot with USB.So I do not have a proper machine to try Renoise under Linux or Mac.
…
I keep thinking things with colors.I have not seen the specific documentation, but there should be some way to detect that the selected instrument uses samples (not VSTi).Considering the keyzones.There should be a simple way to colorize gray (or active = false) the keys that do not have any associated samples.Disable non-serving keys…With this, in addition to adjusting the size of the piano, and being able to control the keys through MIDI (especially), USB keyboard and mouse, would be a frankly useful and attractive tool.
MIDI pressed and MIDI released to control the “note buttons”???I mean all the notes of the 10 octaves, the 120 notes.The virtual piano would control the 120 notes, but visually only the necessary octaves would appear. I think 3 octaves would be enough.
I have used to call a function:
renoise.tool():add_midi_mapping {
name = THE_NAME,
invoke = function(message)
if (message:is_trigger()) then
name_func()
end
end
}
MIDI is_trigger() is equal to button released… InRenoise.ScriptingTool.API.lua:
class "renoise.ScriptingTool.MidiMessage"
-- returns if action should be invoked
function is_trigger() -> boolean
-- check which properties are valid
function: is_switch() -> boolean
function: is_rel_value() -> boolean
function: is_abs_value() -> boolean
-- [0 - 127] for abs values, [-63 - 63] for relative values
-- valid when is_rel_value() or is_abs_value() returns true, else undefined
property: int_value
-- valid [true OR false] when :is_switch() returns true, else undefined
property: boolean_value
is_swith() act like a button, with pressed, and released?What I would like to build is a way to control the virtual keyboard with the MIDI keyboard, all notes.Since there are 120 notes, you really only need to deal with one note.The rest is repeat.My final idea is to build a virtual piano that can control notes with the midi keyboard, but also to be able to edit in the pattern editor the notes directly with the mouse on the virtual keyboard.
- With the mouse the sound can use the osc server.
- With the midi keyboard I understand that the sound should “go alone”.