On 05/16/2013 04:05 PM, Rui Pereira wrote:
> I'm looking for a way of mapping one keyboard to multiple tracks, in a way
> that allows me, at limit, to have a key per track.
>
> I don't think that rosegarden allows this in it's current state, but I'm
> not afraid to "look under the hood", and I am actually trying to develop
> some code for this. I understand the hierarchy (at least I think I do) of
> instrument-track-segment-event, and I was hoping I could capture the event
> (note from pressing a key) and then map it to whatever segment in whatever
> track I please.

   Rosegarden can currently filter events into separate tracks based on 
device and channel.  Having it filter based on note value shouldn't be 
too hard to implement (although I would hate to have to set the note 
filter value from a dropdown 127 times).

   RosegardenDocument::insertRecordedEvent() is the routine that 
performs the filtering.  It iterates over each recording segment and 
only inserts the event if it matches the filter criteria.

   You might run into problems with the enormous amount of CPU that 
rosegarden uses when recording.  I have a feeling that this might become 
significantly worse with 127 tracks and segments being drawn on the 
screen.  You might want to test this by setting up 127 tracks to record 
(no filtering) and then doing a recording (of something typical of what 
you plan to do).  Use "top" to monitor the CPU usage.  I would be very 
interested in the results.

Ted.

------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
Rosegarden-devel mailing list
[email protected] - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-devel

Reply via email to