Semitones & Cents
-
- KVRer
- Topic Starter
- 3 posts since 11 May, 2010
I am new to Sonicbirth and I am attempting to create a basic synthesizer. I am having trouble with my semitone and cent parameters. at the moment in my midi 'multi note envelope' I have 'Note' and 'Semitone' summed together going in 'C' on a (multiply)addition component, with cent going to 'A' and a 'Constant' value of 0.01 going to 'B', with the output of those going to 'f' on all my wave generators. However this is giving me a de-tuned sound as I increase the semitone slider value. I understand why this is happening, I don't know the correct method. Any help is greatly appreciated.
-
- KVRer
- 14 posts since 13 Jun, 2006
The note output gives you the frequency values of notes not the MIDI note numbers.
Use the following formula in an equation module.
i0*pow(2,(i1+i2)/12)
i0 = frequency value from the Note output
i1 = Semitone value (can be +/- any whole number)
i2 = Cent value (should be within +/-1)
Use the following formula in an equation module.
i0*pow(2,(i1+i2)/12)
i0 = frequency value from the Note output
i1 = Semitone value (can be +/- any whole number)
i2 = Cent value (should be within +/-1)
-
- KVRer
- Topic Starter
- 3 posts since 11 May, 2010
Thanks alot, thats solved it!