Why 0 - 127?
-
- KVRAF
- 10597 posts since 13 Jun, 2004 from Alberto Balsam
How come in a lot of music software, the range of parameters often goes from zero to 127? What is the significance of this number?
-
- KVRist
- 92 posts since 6 Feb, 2005
- Rad Grandad
- 38041 posts since 6 Sep, 2003 from Downeast Maine
because 1+2+7 = 10
The highest form of knowledge is empathy, for it requires us to suspend our egos and live in another's world. It requires profound, purpose‐larger‐than‐the‐self kind of understanding.
-
- KVRAF
- 2460 posts since 3 Oct, 2002 from SF CA USA NA Earth
As mbell mentioned, it's the range of a 7-bit unsigned integer.The Chase wrote:How come in a lot of music software, the range of parameters often goes from zero to 127? What is the significance of this number?
We inherit the 7-bit range from MIDI, which sends messages as a series of 8-bit words; the top bit of each word is used to distinguish the start of a command (e.g. note on, note off, controller change) from the parameter data associated with the command. This leaves 7 bits for the range of a parameter.
128 distinct note values covers about 10 and a half octaves, the full 20Hz-20KHz range, so that works well. 128 different note velocities can hit half-decibel precision across 60dB of dynamic range. Those were considered sufficient. Pitch bend and other continuous controllers can optionally use two data words instead of one, giving 128 x 128 = 16384 steps (14 bits) of resolution.
Last edited by Borogove on Sat Jan 14, 2006 9:30 pm, edited 1 time in total.
- KVRian
- 1469 posts since 18 Sep, 2004 from Suffolk, UK
-
- KVRAF
- 2460 posts since 3 Oct, 2002 from SF CA USA NA Earth
- KVRian
- 1469 posts since 18 Sep, 2004 from Suffolk, UK
I guess my British humour is wasted here....Borogove wrote:The stuff that goes up to 128 probably starts at 1 instead of zero. Computers and computer programmers usually count from zero, lesser beings usually count from one.Lovesign wrote:But some stuff goes up to 128 ???
Last edited by Failed Muso on Sat Jan 14, 2006 9:36 pm, edited 1 time in total.
-
- KVRAF
- 2460 posts since 3 Oct, 2002 from SF CA USA NA Earth
-
- KVRAF
- 3723 posts since 17 Apr, 2002 from Scotland
in the spirit of this exchange.....
there are 10 types of people in the world
those who understand binary and those who don't.
I know it's old - but I still like it
there are 10 types of people in the world
those who understand binary and those who don't.
I know it's old - but I still like it
-
- KVRAF
- 7879 posts since 16 Apr, 2003 from -on the outside looking in
to press this theme further, I must say that, while the formulaic "blond/creed/nationality"j okes are pretty dumb, this one:
The Best Blond Joke Ever,
-had me rolling.
The Best Blond Joke Ever,
-had me rolling.
..what goes around comes around..
- KVRian
- 1469 posts since 18 Sep, 2004 from Suffolk, UK
-
- KVRian
- 740 posts since 27 Sep, 2005 from UK
..I'll have to take your word on thatHink wrote:because 1+2+7 = 10
- Rad Grandad
- 38041 posts since 6 Sep, 2003 from Downeast Maine
flippya2000 wrote:..I'll have to take your word on thatHink wrote:because 1+2+7 = 10but what is the significance of 10 prey tell? Something to do with binary no doubt - whatdya mean I'm wrong?
The highest form of knowledge is empathy, for it requires us to suspend our egos and live in another's world. It requires profound, purpose‐larger‐than‐the‐self kind of understanding.
- Suspended
- 17889 posts since 14 Jun, 2001 from Somewhere you're not!
Which in English is 2 to the power of 7.mbell wrote:A 7 bit unsigned integer can store the values from 0 to 127.
NOVAkILL : Legion GO, AMD Z1x, 16GB RAM, Win11 | Audient EVO 8 | Lumi Keys | Studio Pro 8
Korg Odyssey, bx-oberhausen, Proxima, PolyMax, GR8, JP6K, Union, Atomika,
Invader 2, Flow Motion, Olga, TRK 01, Thorn, Spire, VG Iron
Korg Odyssey, bx-oberhausen, Proxima, PolyMax, GR8, JP6K, Union, Atomika,
Invader 2, Flow Motion, Olga, TRK 01, Thorn, Spire, VG Iron




