radiowaves So, if I connect CV input to CV output, they will not be same values?
it depends on the value of the corresponding pot. If it is at its midpoint, they should be almost exactly the same values, minus the scaling I mentioned above.
radiowaves And examples that came with bela, midi to cv conversion was [midi value / 127], however that is wrong as I just witnessed. Midi note 40 will be 0.314, but when I run this into my modules, they will start to recieve cv only when the value is over 0.5.
that example is aimed at converting
[ctlout] to CV. The range of ctlin/ctlout is 0 to 127, so by dividing /multiplying by 127 it gets remapped to 0 to 1, which is the in/out range of Bela's I/O. This is one reasonable approach (remap the full scale of MIDI to the full scale of Bela's I/O), but it's also an arbitrary one. There are other options that work better for a specific application.
You seem to want to be using it for MIDI notes and V/oct mapping, which requires to go through
[mtof] etc as explained above.
radiowaves but when I run this into my modules, they will start to receive cv only when the value is over 0.5.
This may be an unrelated issue. I mentioned above that Bela's outputs are -5V to +5V. As you describe it, your other modules only start reacting when the output value in Pd is 0.5 or more, that corresponds to 0V or more. So it may be that these modules only respond to positive voltages and consider the negative ones to be the same as 0V.
radiowaves Also I do not understand pot offsets:
If I have maximum cv value (gate) coming in, what does the pot do?
It depends on the voltages of the gate. Assume the gate is 0V when low and 5V when high. Then you'd expect to read a difference of 0.5 between the reading when it's low and the reading when it's high (assuming the input is not clipping). This is what you'd get:
- with the pot at the min, you read 0 when the gate is low and you read 0.5 when the gate is high.
- with the pot at the midpoint, you read 0.5 when the gate is low and you read 1 when the gate is high
- with the pot at the max, you alway read 1 (because the input is clipping)
[I think: I may be getting this backwards]
Note that when you have a gate signal input, you'd better use the digital inputs, which are always 0:5V.
I'd discourage this, I think it's more CPU intensive (or at least more spikey in CPU usage) than the one suggested above.