-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
I'd like to be able to somehow access the note properties when remapping events in cycle to make relative changes but I don't think there is a way (beside maybe writing a custom parser for value, but that doesn't sound right).
I feel like something similar to this should work
return cycle("a:#2"):map(function(context, value)
local n = note(value)
if n.notes[1] and n.notes[1].instrument then
return n:instrument(n.notes[1].instrument + 1)
else
return n
end
end)even nicer would be to have mapping functions for properties that would unwrap the nil for you and pass in the instrument etc.
return cycle("a:#2"):map(function(context, value)
-- supply a function to instrument to map it
return note(value):instrument(function(i) return i + 1 end)
end)Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels