|
View:
New views
8 Messages
—
Rating Filter:
Alert me
|
|
|
Swell equation valuesHi Guys,
I have a situation where I need to set a threshhold value for the Swell controller midi messages to fluidsynth. i.e. I need to send values from 20 to 127, so the set value | div 3 | add 0.66 | mult volume 127 needs to change... I'm just too tired to work out what to change it too.... obviously adding 20 to the value will work for the minimum range, but would increase the max range too much... sigh. Any ideas? GrahamG ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ jOrgan-user mailing list jOrgan-user@... https://lists.sourceforge.net/lists/listinfo/jorgan-user |
|
|
Re: Swell equation valuesHi Graham,
here's my bet: set value | mult volume 127 | div 127 | mult 107 | add 20 Regards Sven Graham Goode wrote: > Hi Guys, > I have a situation where I need to set a threshhold value for the > Swell controller midi messages to fluidsynth. i.e. I need to send > values from 20 to 127, so the > set value | div 3 | add 0.66 | mult volume 127 > needs to change... I'm just too tired to work out what to change it > too.... obviously adding 20 to the value will work for the minimum > range, but would increase the max range too much... sigh. > Any ideas? > GrahamG > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > jOrgan-user mailing list > jOrgan-user@... > https://lists.sourceforge.net/lists/listinfo/jorgan-user > ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ jOrgan-user mailing list jOrgan-user@... https://lists.sourceforge.net/lists/listinfo/jorgan-user |
|
|
Re: Swell equation valuesHi Sven,
Thanks, I put that in and then realised that I actually needed it the other way around... from 0 to 107 (less 20), not 20 to 127. Eish... I'm gonna take a nap and then get back to it :-) GrahamG ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ jOrgan-user mailing list jOrgan-user@... https://lists.sourceforge.net/lists/listinfo/jorgan-user |
|
|
Re: Swell equation valuesHi Sven,
that's interesting: could you explain this to me in the "you can read this
as..." manner, please?
Many thanks
Bernd.
------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ jOrgan-user mailing list jOrgan-user@... https://lists.sourceforge.net/lists/listinfo/jorgan-user |
|
|
Re: Swell equation valuesHere's an easy way to remember...
First of all "div 3" is really the same as "mult 0.33". So rewrite your original computation as: set value | mult 0.33 | add 0.66 | mult volume 127 Now you can easily see that the mult number and the add number should always add up to 1.0. That way, when you change the threshold to 20, you just compute 20 divided by 127 = 0.16. Now, the 0.16 becomes the "add" value, and 1.0 - 0.16 = 0.84 becomes the "mult" value, thus... set value | mult 0.84 | add 0.16 | mult volume 127 CLW ------------------------------------------------------- Graham Goode wrote: > Hi Guys, > I have a situation where I need to set a threshhold value for the > Swell controller midi messages to fluidsynth. i.e. I need to send > values from 20 to 127, so the > set value | div 3 | add 0.66 | mult volume 127 > needs to change... I'm just too tired to work out what to change it > too.... obviously adding 20 to the value will work for the minimum > range, but would increase the max range too much... sigh. > Any ideas? > GrahamG > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > jOrgan-user mailing list > jOrgan-user@... > https://lists.sourceforge.net/lists/listinfo/jorgan-user > ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ jOrgan-user mailing list jOrgan-user@... https://lists.sourceforge.net/lists/listinfo/jorgan-user |
|
|
Re: Swell equation valuesWhy ever would you want the swell to go to 0 (silent), and be limited on
the fully open end to 107 ? This doesn't make sense for setting the "Engaged" message. It sounds more like you are looking for the computation for the CONTROLLER side (the "Change" message), where you have a MIDI controller that generates a minimum value of zero, but a MAXIMUM value of 107 at its physically fully open extent. CLW --------------------------------------------------------------------------- Graham Goode wrote: > Hi Sven, > Thanks, I put that in and then realised that I actually needed it the > other way around... from 0 to 107 (less 20), not 20 to 127. Eish... > I'm gonna take a nap and then get back to it :-) > GrahamG > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > jOrgan-user mailing list > jOrgan-user@... > https://lists.sourceforge.net/lists/listinfo/jorgan-user > ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ jOrgan-user mailing list jOrgan-user@... https://lists.sourceforge.net/lists/listinfo/jorgan-user |
|
|
Re: Swell equation valuesHi Guys,
I know it sounds counter intuitive... this is for an NRPN based swell that needs to be partially engaged for a low pass filter to be in effect: Engaging set 176 set 99 set 120 Engaging set 176 set 98 set 8 Engaging set 176 set 6 set [value] so, if I put it as set value | div 3 | add 0.55 | mult volume 80 I get the effect that I'm looking for.... Thanks for all the pointers :-) GrahamG ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ jOrgan-user mailing list jOrgan-user@... https://lists.sourceforge.net/lists/listinfo/jorgan-user |
|
|
Re: Swell equation valuesTypically, you have a physical expression pedal that does not always
generate a MIDI value in the ideal range of 0-127. Like, mine it may only generate values in the range 19 through 124 -- or more generally, in terms of mathematical variables: "lo" to "hi". The jOrgan MIDI "Change" message (for the INPUT side) must be computed in such a way that the value of "value" is computed to be in the range of 0.0 through 1.0. Thus, when the controller sends the "lo" value, you want that to generate 0, and when the controller sends its maximum value "hi", you want that to generate 1.0. And of course, you want linearly mappable values between 0.0 and 1.0 for all midi data2 values sent by the controller between its "lo" midi value and its "hi" midi value. So the jOrgan "Change" message Data2 value for this controller would be: sub [lo] | div [hi - lo] | get value The above computation scales the ACTUAL range of values of the physical expression pedal (MIDI controller) across the full MIDI range of 0 through 127. On the OUTPUT side -- the messages going to the Sound Source (Fluidsynth, etc.), you use the "Engaging" jOrgan Message. This value should range from some arbitrary MINIMUM value that you choose, and ALWAYS max out at 127. [Why would you EVER want to limit your "granularity" on the output side by selecting any max value less than 127? If the volume level is too high, just use your analog controls on your audio system to bring it down. Don't limit the MIDI range!] So the jOrgan "Engaging" message Data2 value has to be computed by mapping the input "value" from the controller (that has already been scaled by the "Change" message to be in the range of 0.0 through 1.0) into the desired output MIDI value range of [min] through 127: set value | mult [f] | add [r] | mult 127 where, r = [min] / 127 f = 1 - r --------------------------------------------------------- Lynn Walls wrote: > Why ever would you want the swell to go to 0 (silent), and be limited on > the fully open end to 107 ? > > This doesn't make sense for setting the "Engaged" message. > > It sounds more like you are looking for the computation for the > CONTROLLER side (the "Change" message), where you have a MIDI controller > that generates a minimum value of zero, but a MAXIMUM value of 107 at > its physically fully open extent. > > CLW > --------------------------------------------------------------------------- > > Graham Goode wrote: >> Hi Sven, >> Thanks, I put that in and then realised that I actually needed it the >> other way around... from 0 to 107 (less 20), not 20 to 127. Eish... >> I'm gonna take a nap and then get back to it :-) >> GrahamG >> >> ------------------------------------------------------------------------------ >> Come build with us! The BlackBerry(R) Developer Conference in SF, CA >> is the only developer event you need to attend this year. Jumpstart your >> developing skills, take BlackBerry mobile applications to market and stay >> ahead of the curve. Join us from November 9 - 12, 2009. Register now! >> http://p.sf.net/sfu/devconference >> _______________________________________________ >> jOrgan-user mailing list >> jOrgan-user@... >> https://lists.sourceforge.net/lists/listinfo/jorgan-user >> > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > jOrgan-user mailing list > jOrgan-user@... > https://lists.sourceforge.net/lists/listinfo/jorgan-user > ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ jOrgan-user mailing list jOrgan-user@... https://lists.sourceforge.net/lists/listinfo/jorgan-user |
| Free embeddable forum powered by Nabble | Forum Help |