## Re: [Rosegarden-user] Note velocity values when interpreting w.r.t text dynamics, etc

 Re: [Rosegarden-user] Note velocity values when interpreting w.r.t text dynamics, etc From: Glyn Adgie - 2008-01-28 19:58:40 ```D. Michael McIntyre wrote: > On Sunday 27 January 2008, Glyn Adgie wrote: > > >> intervals between successive dynamics varying between 5 and 20, so it is >> neither a linear nor a log function. Here is the mapping: >> > > Good question. I find I have absolutely no clue at all, and am probably > almost as curious about the answer as you are. Perhaps Chris will wander > along and explain how he came up with this map. > > Here's the entire thing, straight from the code: > > InterpretCommand::getVelocityForDynamic(std::string text) > { > int velocity = 100; > > // should do case-insensitive matching with whitespace > // removed. can surely be cleverer about this too! > > if (text == "ppppp") > velocity = 10; > else if (text == "pppp") > velocity = 20; > else if (text == "ppp") > velocity = 30; > else if (text == "pp") > velocity = 40; > else if (text == "p") > velocity = 60; > else if (text == "mp") > velocity = 80; > else if (text == "mf") > velocity = 90; > else if (text == "f") > velocity = 105; > else if (text == "ff") > velocity = 110; > else if (text == "fff") > velocity = 115; > else if (text == "ffff") > velocity = 120; > else if (text == "fffff") > velocity = 125; > > NOTATION_DEBUG << "InterpretCommand::getVelocityForDynamic: unrecognised > dynamic " << text << endl; > > } > > This code makes provision for very quiet and very loud dynamics that I have never seen in scores. Rosegarden does not give access to them, AFAIK. According to a composer friend of mine, such dynamics have been used by a few composers, e.g. Tchaikovsky and Berlioz. My friend said he saw "pppppp" in part of Tchaikovsky's "Pathetique" (sp?). This was for a bassoon, which, like the oboe, has a pretty limited dynamic range, i.e. loud and louder, so the mark is pretty much nonsense. Apparently, some conductors substitute a bass clarinet for this piece, as it has a much wider dynamic range than the bassoon. Chris has sent me some info about a professional master keyboard's velocity response curves. Looks useful. I will respond to that separately. Glyn ```