Re: [Bluemusic-users] Re: Implementing Swing Functionality
Brought to you by:
kunstmusik
From: Steven Y. <ste...@gm...> - 2006-03-18 22:51:09
|
Hi Jonathan and Will, Thanks for pointing out that bit of code in Hydrogen. For swing, It seems it does a simple add to the note start time if not on certain beats, shifting up to dotted-eigth in value depending on swing value (I'm not sure that's all correct, I think I'll check out totall source code so I can use Eclipse to navigate through the source to see what the paterntick and paudiotick values refer to. As for humanizing time, this can be done already with the RandomAdd noteprocessor applied to P2, so I don't think anything else is necessary for doing that except maybe to document something like that? (This will be a bit easier to use in practice I think once I get per-layer and global noteprocessors in.) Thanks again guys and I'll continue to look for other implementations as we= ll. steven On 3/18/06, Will Light <fil...@gm...> wrote: > "Steven Yi" <ste...@gm...> writes: > > > Hi All, > > > > I had a request to implement a Swing NoteProcessor in blue, but I am > > not quite sure how musical swing is implemented in other programs. > > Just thinking off the top of my head, I imagine an editor for Swing to > > be something of a curve editor that one can edit how time is swung and > > how drastically it is done so, using a time versus time curve. I > > guess it'd be similar to how t-statements are applied, but on a cyclic > > basis (and perhaps using spline curves instead of linear segments). I > > guess too that it should have a setting for the duration over which to > > apply the time curve before repeating the curve (i.e. the swing > > happens per beat). Could someone recommend me a program that > > implements swing I can look at for reference, or know of any books or > > references to look at? > > > > Any help on this would be greatly appreciated! > > steven > > Steven, > I looked through the hydrogen code and found the lines pertaining to > swing and humanize timing, and I've gone ahead and attached the relevant > file, Hydrogen.cpp (pasting it in the message messed up the formatting). > The lines you'll want to look at are lines 1190 to 1200. > > Hope that helps, > -will > > > |