On 05/09/2013 12:26 PM, Tom Breton (Tehom) wrote: > You've been using something like it for a couple of years now; meanwhile I > already added controller commands that overlap a lot with it (that's where > the "Controllers" menu comes from).
Tom: Looking back at my records, I see that I was using volume-controller ramps at least as far back as version 1.7.3. I recently switched from using volume controllers to using expression controllers, as that seemed more appropriate in this context. I originally wrote this modification simply because I needed it. I had no vision at the time of writing anything that could become part of the official package. Because my code has evolved in isolation, it is likely not directly applicable to the current setup. Feel free to steal anything that looks useful and trash the rest. I'm not committed to my particular way of doing things and will happily use anything that gives me the functionality I need. Finding no convenient way to graft this thing into the existing controllers mechanism, I followed the path of least resistance by temporarily tacking an extra item onto the "Controllers" menu. In my particular implementation of this feature, the location of the ramp is determined by selecting a series of visible events, which can be notes, rests, or both. Anything will do. The number of control events is determined by the number of steps required to cover the ramp range. I hit an a maximum step size of four, as that seemed to be about as far as I could go before the individual step transitions became apparent. A linear ramp positions the step events uniformly over the length of the ramp (and presupposes a fairly constant tempo). A logarithmic ramp uses exactly the same steps as the linear ramp but positions them differently, squashing them together at one end. I placed the command files in "src/commands/edit" since this is neutral territory between the notation- and matrix-editor command areas. In its current form this code probably provides more of a working demonstration of possibilities than something directly useful. As I said before, feel free to use, discard, or ignore completely anything in there. Tim Munro ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. This 200-page book is written by three acclaimed leaders in the field. The early access version is available now. Download your free book today! http://p.sf.net/sfu/neotech_d2d_may _______________________________________________ Rosegarden-devel mailing list [email protected] - use the link below to unsubscribe https://lists.sourceforge.net/lists/listinfo/rosegarden-devel
